Package com.founder.fix.fixflow.core.impl.flowgraphics.svg.to

Examples of com.founder.fix.fixflow.core.impl.flowgraphics.svg.to.SvgLaneTo


  private static String text_y="{text_y}";
 
  public String createComponent(SvgBaseTo svgTo) {
    String result = null;
    try {
      SvgLaneTo lane = (SvgLaneTo)svgTo;
     
      if(lane.isHorizontal()){
        comPath = "/svgcomponent/lane.xml";
      }
      else {
        comPath = "/svgcomponent/lane_h.xml";
      }
      InputStream in = SvgBench.class.getResourceAsStream(comPath);
      Document doc = XmlUtil.read(in);
      String str = doc.getRootElement().asXML();
      str = FlowSvgUtil.replaceAll(str, local_x, StringUtil.getString(lane.getX()));
      str = FlowSvgUtil.replaceAll(str, local_y, StringUtil.getString(lane.getY()));
      str = FlowSvgUtil.replaceAll(str, id, lane.getId());
      str = FlowSvgUtil.replaceAll(str, text, lane.getLabel());
      str = FlowSvgUtil.replaceAll(str, width, StringUtil.getString(lane.getWidth()));
      str = FlowSvgUtil.replaceAll(str, hight, StringUtil.getString(lane.getHeight()));
      if(lane.isHorizontal()){
        str = FlowSvgUtil.replaceAll(str, text_y, StringUtil.getString(lane.getHeight()/2));
      }
      else {
        str = FlowSvgUtil.replaceAll(str, text_x, StringUtil.getString(lane.getWidth()/2));
      }
     
      result = str;
    } catch (DocumentException e) {
      throw new FixFlowException("",e);
View Full Code Here


  private String subProcessToSVG(BPMNShape bpmnShape) {
    return CommonNodeToSVG(bpmnShape, new SvgSubProcessTo ());
  }

  private String laneToSVG(BPMNShape bpmnShape) {
    return laneToSVG(bpmnShape, new SvgLaneTo());
  }
View Full Code Here

  private String laneToSVG(BPMNShape bpmnShape) {
    return laneToSVG(bpmnShape, new SvgLaneTo());
  }
  private String participantToSVG(BPMNShape bpmnShape) {
    return participantToSVG(bpmnShape, new SvgLaneTo());
  }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.flowgraphics.svg.to.SvgLaneTo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.