Package com.mxgraph.layout
Class mxPartitionLayout
java.lang.Object
com.mxgraph.layout.mxGraphLayout
com.mxgraph.layout.mxPartitionLayout
- All Implemented Interfaces:
mxIGraphLayout
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intInteger that specifies the absolute inset in pixels for the parent that contains the children.protected booleanBoolean indicating the direction in which the space is partitioned.protected booleanBoolean that specifies if vertices should be resized.protected intInteger that specifies the absolute spacing in pixels between the children.Fields inherited from class com.mxgraph.layout.mxGraphLayout
graph, parent, useBoundingBox -
Constructor Summary
ConstructorsConstructorDescriptionmxPartitionLayout(mxGraph graph) Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.mxPartitionLayout(mxGraph graph, boolean horizontal) Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.mxPartitionLayout(mxGraph graph, boolean horizontal, int spacing) Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.mxPartitionLayout(mxGraph graph, boolean horizontal, int spacing, int border) Constructs a new stack layout layout for the specified graph, spacing, orientation and offset. -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the layout for the children of the specified parent.Hook for subclassers to return the container size.voidNotified when a cell is being moved in a parent that has automatic layout to update the cell state (eg.Methods inherited from class com.mxgraph.layout.mxGraphLayout
arrangeGroups, getConstraint, getConstraint, getGraph, getParentOffset, getVertexBounds, isEdgeIgnored, isUseBoundingBox, isVertexIgnored, isVertexMovable, setEdgePoints, setEdgeStyleEnabled, setOrthogonalEdge, setUseBoundingBox, setVertexLocation
-
Field Details
-
horizontal
protected boolean horizontalBoolean indicating the direction in which the space is partitioned. Default is true. -
spacing
protected int spacingInteger that specifies the absolute spacing in pixels between the children. Default is 0. -
border
protected int borderInteger that specifies the absolute inset in pixels for the parent that contains the children. Default is 0. -
resizeVertices
protected boolean resizeVerticesBoolean that specifies if vertices should be resized. Default is true.
-
-
Constructor Details
-
mxPartitionLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset. -
mxPartitionLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset. -
mxPartitionLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset. -
mxPartitionLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
-
-
Method Details
-
moveCell
Description copied from interface:mxIGraphLayoutNotified when a cell is being moved in a parent that has automatic layout to update the cell state (eg. index) so that the outcome of the layout will position the vertex as close to the point (x, y) as possible.- Specified by:
moveCellin interfacemxIGraphLayout- Overrides:
moveCellin classmxGraphLayout- Parameters:
cell- Cell which is being moved.x- X-coordinate of the new cell location.y- Y-coordinate of the new cell location.
-
getContainerSize
Hook for subclassers to return the container size. -
execute
Description copied from interface:mxIGraphLayoutExecutes the layout for the children of the specified parent.- Specified by:
executein interfacemxIGraphLayout- Overrides:
executein classmxGraphLayout- Parameters:
parent- Parent cell that contains the children to be layed out.
-