use of cbit.vcell.graph.GeometryContextContainerShape in project vcell by virtualcell.
the class GraphContainerLayoutVCellClassical method refreshLayoutChildrenGeometryContextContainerShape.
public void refreshLayoutChildrenGeometryContextContainerShape(GeometryContextContainerShape shape) {
int currentX = 0;
int currentY = 0;
// position structureContainer shape
shape.getStructureContainer().getSpaceManager().setRelPos(currentX, currentY);
currentX += shape.getStructureContainer().getSpaceManager().getSize().width;
// position subvolumeContainer shape
shape.getGeometryContainer().getSpaceManager().setRelPos(currentX, currentY);
currentX += shape.getGeometryContainer().getSpaceManager().getSize().width;
for (Shape child : shape.getChildren()) {
child.refreshLayoutSelf();
refreshLayoutChildren(child);
}
}
Aggregations