Search in sources :

Example 1 with GeometryContextContainerShape

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);
    }
}
Also used : SubVolumeContainerShape(cbit.vcell.graph.SubVolumeContainerShape) SpeciesContextShape(cbit.vcell.graph.SpeciesContextShape) MembraneShape(cbit.vcell.graph.MembraneShape) ReactionStepShape(cbit.vcell.graph.ReactionStepShape) GeometryContextStructureShape(cbit.vcell.graph.GeometryContextStructureShape) FeatureShape(cbit.vcell.graph.FeatureShape) StructureMappingStructureShape(cbit.vcell.graph.StructureMappingStructureShape) ContainerContainerShape(cbit.vcell.graph.ContainerContainerShape) ReactionContainerShape(cbit.vcell.graph.ReactionContainerShape) GeometryContextContainerShape(cbit.vcell.graph.GeometryContextContainerShape) GeometryContextGeometryShape(cbit.vcell.graph.GeometryContextGeometryShape) StructureShape(cbit.vcell.graph.StructureShape) GeometryClassLegendShape(cbit.vcell.graph.GeometryClassLegendShape) BioPaxShape(cbit.vcell.client.desktop.biomodel.pathway.shapes.BioPaxShape) Point(java.awt.Point)

Aggregations

BioPaxShape (cbit.vcell.client.desktop.biomodel.pathway.shapes.BioPaxShape)1 ContainerContainerShape (cbit.vcell.graph.ContainerContainerShape)1 FeatureShape (cbit.vcell.graph.FeatureShape)1 GeometryClassLegendShape (cbit.vcell.graph.GeometryClassLegendShape)1 GeometryContextContainerShape (cbit.vcell.graph.GeometryContextContainerShape)1 GeometryContextGeometryShape (cbit.vcell.graph.GeometryContextGeometryShape)1 GeometryContextStructureShape (cbit.vcell.graph.GeometryContextStructureShape)1 MembraneShape (cbit.vcell.graph.MembraneShape)1 ReactionContainerShape (cbit.vcell.graph.ReactionContainerShape)1 ReactionStepShape (cbit.vcell.graph.ReactionStepShape)1 SpeciesContextShape (cbit.vcell.graph.SpeciesContextShape)1 StructureMappingStructureShape (cbit.vcell.graph.StructureMappingStructureShape)1 StructureShape (cbit.vcell.graph.StructureShape)1 SubVolumeContainerShape (cbit.vcell.graph.SubVolumeContainerShape)1 Point (java.awt.Point)1