/** * Initializes a new instance of the InvokeImpl class using the specified string i.e. the token * * @param token */ public InvokeImpl(String token) { super(token); // Set Start and End Icons and their Sizes startIconPath = BPEL2SVGFactory.getInstance().getIconPath(this.getClass().getName()); endIconPath = BPEL2SVGFactory.getInstance().getEndIconPath(this.getClass().getName()); }
/** * Initializes a new instance of the InvokeImpl class using the specified omElement * * @param omElement which matches the Invoke tag */ public InvokeImpl(OMElement omElement) { super(omElement); // Set Start and End Icons and their Sizes startIconPath = BPEL2SVGFactory.getInstance().getIconPath(this.getClass().getName()); endIconPath = BPEL2SVGFactory.getInstance().getEndIconPath(this.getClass().getName()); }
public SourceImpl(OMElement omElement, ActivityInterface parent) { super(omElement); setParent(parent); // Set Icon and Size startIconPath = BPEL2SVGFactory.getInstance().getIconPath(this.getClass().getName()); endIconPath = BPEL2SVGFactory.getInstance().getEndIconPath(this.getClass().getName()); }
public SourceImpl(OMElement omElement) { super(omElement); // Set Icon and Size startIconPath = BPEL2SVGFactory.getInstance().getIconPath(this.getClass().getName()); endIconPath = BPEL2SVGFactory.getInstance().getEndIconPath(this.getClass().getName()); }
/** * Initializes a new instance of the CatchAllImpl class using the specified omElement * * @param omElement which matches the CatchAll tag */ public CatchAllImpl(OMElement omElement) { super(omElement); // Assigns the name of the activity to be displayed when drawing the process name = "CATCHALL"; displayName = "Catch All"; // Set Start and End Icons and their Sizes startIconPath = BPEL2SVGFactory.getInstance().getIconPath(this.getClass().getName()); endIconPath = BPEL2SVGFactory.getInstance().getEndIconPath(this.getClass().getName()); }
/** * Initializes a new instance of the CompensationHandlerImpl class using the specified omElement * * @param omElement which matches the CompensationHandler tag */ public CompensationHandlerImpl(OMElement omElement) { super(omElement); // Assigns the name of the activity to be displayed when drawing the process name = "COMPENSATIONHANDLER"; displayName = "Compensation Handler"; // Set Start and End Icons and their Sizes startIconPath = BPEL2SVGFactory.getInstance().getIconPath(this.getClass().getName()); endIconPath = BPEL2SVGFactory.getInstance().getEndIconPath(this.getClass().getName()); }
public ProcessImpl(OMElement omElement) { super(omElement); // Set Icon and Size startIconPath = org.wso2.carbon.bpel.ui.bpel2svg.BPEL2SVGFactory.getInstance() .getIconPath(this.getClass().getName()); endIconPath = org.wso2.carbon.bpel.ui.bpel2svg.BPEL2SVGFactory.getInstance() .getEndIconPath(this.getClass().getName()); endIconHeight = startIconHeight; endIconWidth = startIconWidth; }
public SVGDocument getSVGDocument() { LayoutManager layoutManager = org.wso2.carbon.bpel.ui.bpel2svg.BPEL2SVGFactory.getInstance().getLayoutManager(); // Build Specific Code // attention--------- getSVGFileHeader(); doc = (SVGDocument) dom.createDocument(svgNS, "svg", null); root = doc.getDocumentElement(); int iHeight = getDimensions().getHeight(); int iWidth = getDimensions().getWidth(); root.setAttributeNS(null, "height", Integer.toString(iHeight)); root.setAttributeNS(null, "width", Integer.toString(iWidth)); root.appendChild(getDefs(doc)); root.appendChild(getBoxDefinition(doc)); root.appendChild(getImageDefinition(doc)); // Process Sub Activities root.appendChild(getSubActivitiesSVGString(doc)); root.appendChild(getEndImageDefinition(doc)); // Add Arrow root.appendChild(getArrows(doc)); root.appendChild(getLinkArrows(doc)); // waruna // Add End Tag // getSCGFileFooter(); //this isn't used return doc; // To change body of implemented methods use File | Settings | File Templates. }
@Override public Element getSVGString(SVGDocument document) { LayoutManager layoutManager = org.wso2.carbon.bpel.ui.bpel2svg.BPEL2SVGFactory.getInstance().getLayoutManager(); // Build Specific Code // attention--------- getSVGFileHeader(); doc = (SVGDocument) dom.createDocument(svgNS, "svg", null); root = doc.getDocumentElement(); root.setAttributeNS(null, "height", "1000"); root.appendChild(getDefs(doc)); root.appendChild(getBoxDefinition(doc)); root.appendChild(getImageDefinition(doc)); // Process Sub Activities root.appendChild(getSubActivitiesSVGString(doc)); root.appendChild(getEndImageDefinition(doc)); // Add Arrow root.appendChild(getArrows(doc)); // Add End Tag // getSCGFileFooter(); //this isn't used return root; }