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;
}
Aggregations