NetToolspecificType subPToolSpec = newNet.addNewToolspecific();
subPToolSpec.setTool("WoPeD");
subPToolSpec.setVersion("1.0");
// graphics
GraphicsSimpleType iGraphicsNet = subPToolSpec.addNewBounds();
if (subProcessLayout.getSavedSize() != null)
{
DimensionType dim = iGraphicsNet.addNewDimension();
dim.setX(new BigDecimal(subProcessLayout.getSavedSize().getWidth()));
dim.setY(new BigDecimal(subProcessLayout.getSavedSize().getHeight()));
}
if (subProcessLayout.getSavedLocation() != null)
{
PositionType location = iGraphicsNet.addNewPosition();
location.setX(new BigDecimal(subProcessLayout.getSavedLocation().getX()));
location.setY(new BigDecimal(subProcessLayout.getSavedLocation().getY()));
}
// Store the width of the tree view
subPToolSpec.setTreeWidthRight(subProcessLayout.getTreeViewWidthRight());