com.mxgraph.layout
Class mxStackLayout
- java.lang.Object
-
- com.mxgraph.layout.mxGraphLayout
-
- com.mxgraph.layout.mxStackLayout
-
- All Implemented Interfaces:
- mxIGraphLayout
public class mxStackLayout extends mxGraphLayout
-
-
Constructor Summary
Constructors Constructor and Description mxStackLayout(mxGraph graph)Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.mxStackLayout(mxGraph graph, boolean horizontal)Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.mxStackLayout(mxGraph graph, boolean horizontal, int spacing)Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.mxStackLayout(mxGraph graph, boolean horizontal, int spacing, int x0, int y0, int border)Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecute(java.lang.Object parent)Executes the layout for the children of the specified parent.mxRectanglegetContainerSize()Hook for subclassers to return the container size.booleanisHorizontal()voidmoveCell(java.lang.Object cell, double x, double y)Notified 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
-
-
-
-
Constructor Detail
-
mxStackLayout
public mxStackLayout(mxGraph graph)
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
-
mxStackLayout
public mxStackLayout(mxGraph graph, boolean horizontal)
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
-
mxStackLayout
public mxStackLayout(mxGraph graph, boolean horizontal, int spacing)
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
-
mxStackLayout
public mxStackLayout(mxGraph graph, boolean horizontal, int spacing, int x0, int y0, int border)
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
-
-
Method Detail
-
isHorizontal
public boolean isHorizontal()
-
moveCell
public void moveCell(java.lang.Object cell, double x, double y)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
public mxRectangle getContainerSize()
Hook for subclassers to return the container size.
-
execute
public void execute(java.lang.Object parent)
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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG