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

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


  private static String comPath = "/svgcomponent/complexGateway.xml";
 
  public String createComponent(SvgBaseTo svgTo) {
    String result = null;
    try {
      SvgComplexGatewayTo cGateTo = (SvgComplexGatewayTo)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(cGateTo.getX()+2));
      str = FlowSvgUtil.replaceAll(str, local_y, StringUtil.getString(cGateTo.getY()+2));
      str = FlowSvgUtil.replaceAll(str, id, cGateTo.getId());
      str = FlowSvgUtil.replaceAll(str, text, cGateTo.getLabel());
      result = str;
    } catch (DocumentException e) {
      throw new FixFlowException("",e);
    }
    return result;
View Full Code Here


    if (getBaseElement(bpmnShape.getBpmnElement()) instanceof ParallelGateway) {
      return CommonNodeToSVG(bpmnShape, new SvgParallelGatewayTo());
    }
    if (getBaseElement(bpmnShape.getBpmnElement()) instanceof ComplexGateway) {
      return CommonNodeToSVG(bpmnShape, new SvgComplexGatewayTo());
    }
    if (getBaseElement(bpmnShape.getBpmnElement()) instanceof ExclusiveGateway) {
      return CommonNodeToSVG(bpmnShape, new SvgExclusiveGatewayTo());
    }
    if (getBaseElement(bpmnShape.getBpmnElement()) instanceof InclusiveGateway) {
View Full Code Here

TOP

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

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.