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

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


   
  }

  private String textAnnotationToSVG(BPMNShape bpmnShape, BaseElement bpmnElement) {
    // TODO Auto-generated method stub
    return textAnnotationToSVG(bpmnShape, new SvgAnnotationTo());
  }
View Full Code Here


  private static String path = "{path}";
 
  public String createComponent(SvgBaseTo svgTo) {
    String result = null;
    try {
      SvgAnnotationTo annoTo = (SvgAnnotationTo)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(annoTo.getX()));
      str = FlowSvgUtil.replaceAll(str, local_y, StringUtil.getString(annoTo.getY()));
      str = FlowSvgUtil.replaceAll(str, id, annoTo.getId());
      str = FlowSvgUtil.replaceAll(str, text, annoTo.getLabel());
      StringBuffer sb = new StringBuffer();
      sb.append(" M19 0  L0 0  L0 ");
      sb.append(annoTo.getHeight());
      sb.append("  L19 ");
      sb.append(annoTo.getHeight());
      str = FlowSvgUtil.replaceAll(str, path, sb.toString());
      result = str;
    } catch (DocumentException e) {
      throw new FixFlowException("",e);
    }
View Full Code Here

TOP

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

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.