public void setActivityGeometry(VActivity vactivity) { MActivity mactivity = (MActivity) vactivity.getBpmnElement(); Dimension ds = BpmnStylesheetColor.DEFAULT_ACTIVITY_SIZES.containsKey(mactivity.getActivityType()) ? BpmnStylesheetColor.DEFAULT_ACTIVITY_SIZES.get(mactivity.getActivityType()) : BpmnStylesheetColor.DEFAULT_ACTIVITY_SIZES.get(vactivity.getStyle()); mxGeometry geo = new mxGeometry(0, 0, ds.width, ds.height); vactivity.setGeometry(geo); if (BpmnStylesheetColor.COLLAPSED_SIZES.containsKey(vactivity.getStyle()) || BpmnStylesheetColor.COLLAPSED_SIZES.containsKey(mactivity.getActivityType())) { Dimension ads = (Dimension) (BpmnStylesheetColor.COLLAPSED_SIZES.get(vactivity.getStyle()) != null? BpmnStylesheetColor.COLLAPSED_SIZES.get(vactivity.getStyle()) : BpmnStylesheetColor.COLLAPSED_SIZES.get(mactivity.getActivityType())); vactivity.getGeometry().setAlternateBounds(new mxGeometry(0, 0, ads.width, ads.height)); } } }
geo.setAlternateBounds(new mxRectangle(altbounds.getX(), altbounds.getY(), altbounds.getWidth(), altbounds.getHeight()));
BpmnStylesheetColor.COLLAPSED_SIZES.get(vactivity.getStyle()) : BpmnStylesheetColor.COLLAPSED_SIZES.get(mactivity.getActivityType())); vactivity.getGeometry().setAlternateBounds( new mxGeometry(p.getX(), p.getY(),
setAlternateBounds((mxRectangle) alt.clone());
setAlternateBounds((mxRectangle) alt.clone());
mxGeometry newgeo = new mxGeometry(oldgeo.getX() + shift, oldgeo.getY() + shift, oldgeo.getWidth(), oldgeo.getHeight()); mxRectangle ab = oldgeo.getAlternateBounds() != null? new mxRectangle(oldgeo.getAlternateBounds()) : null; newgeo.setAlternateBounds(ab); genelem.setGeometry(newgeo);
vactivity.getGeometry().setAlternateBounds(new mxRectangle(alt.getX(), alt.getY(), ads.width, ads.height));
altgeo.setAlternateBounds(sp.getGeometry()); sp.setGeometry(altgeo); ((BpmnGraph) graphComponent.getGraph()).refreshCellView((mxICell) cell); altgeo.setAlternateBounds(sp.getGeometry()); sp.setGeometry(altgeo); ((BpmnGraph) graphComponent.getGraph()).refreshCellView((mxICell) cell);
geo.setAlternateBounds(new mxRectangle(geo.getX(), geo.getY(), bounds.getWidth(), bounds.getHeight()));
geo.setAlternateBounds(new mxRectangle(geo.getX(), geo.getY(), bounds.getWidth(), bounds.getHeight()));