Search in sources :

Example 16 with SVGDimension

use of org.wso2.carbon.bpel.ui.bpel2svg.SVGDimension in project carbon-business-process by wso2.

the class SimpleActivityImpl method getDimensions.

/**
 * At the start: width=0, height=0
 *
 * @return dimensions of the  activity i.e. the final width and height after doing calculations
 * After Calculations: width= startIcon width + xSpacing , height= startIcon height + ySpacing
 */
@Override
public SVGDimension getDimensions() {
    if (dimensions == null) {
        int width = getStartIconWidth() + getXSpacing();
        int height = getStartIconHeight() + getYSpacing();
        // Sets the dimensions i.e. width and height
        dimensions = new SVGDimension(width, height);
    }
    return dimensions;
}
Also used : SVGDimension(org.wso2.carbon.bpel.ui.bpel2svg.SVGDimension)

Aggregations

SVGDimension (org.wso2.carbon.bpel.ui.bpel2svg.SVGDimension)16 ActivityInterface (org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface)10 NoSuchElementException (java.util.NoSuchElementException)1