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

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


  private static String cricle ="{cricle}";
 
  public String createComponent(SvgBaseTo svgTo) {
    String result = null;
    try {
      SvgEndTo endTo = (SvgEndTo)svgTo;
      InputStream in = SvgBench.class.getResourceAsStream(comPath);
      Document doc = XmlUtil.read(in);
      String str = doc.getRootElement().asXML();
      str = FlowSvgUtil.replaceAll(str, local_x, StringUtil.getString(endTo.getX()));
      str = FlowSvgUtil.replaceAll(str, local_y, StringUtil.getString(endTo.getY()));
      str = FlowSvgUtil.replaceAll(str, id, endTo.getId());
      str = FlowSvgUtil.replaceAll(str, text, endTo.getLabel());
//      str = FlowSvgUtil.replaceAll(str, cricle, StringUtil.getString((endTo.getHeight()-5)/2));
      str = FlowSvgUtil.replaceAll(str, text_local, StringUtil.getString(endTo.getHeight()/2+14));
      result = str;
    } catch (DocumentException e) {
      throw new FixFlowException("",e);
    }
   
View Full Code Here


        if(eventDefinition instanceof ErrorEventDefinition){
          return CommonNodeToSVG(bpmnShape, new SvgEndErrorEventTo());
        }
      }
     
      return CommonNodeToSVG(bpmnShape, new SvgEndTo());
     
    }
   
    return CommonNodeToSVG(bpmnShape, new SvgEndTo());
  }
View Full Code Here

TOP

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

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.