mxIGraphLayoutpublic class mxStackLayout extends mxGraphLayout
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
border |
Border to be added if fill is true.
|
protected boolean |
fill |
Boolean indicating if dimension should be changed to fill out the parent
cell.
|
protected boolean |
horizontal |
Specifies the orientation of the layout.
|
protected boolean |
resizeParent |
If the parent should be resized to match the width/height of the
stack.
|
protected int |
spacing |
Specifies the spacing between the cells.
|
protected int |
wrap |
Value at which a new column or row should be created.
|
protected int |
x0 |
Specifies the horizontal origin of the layout.
|
protected int |
y0 |
Specifies the vertical origin of the layout.
|
graph, parent, useBoundingBox| Constructor | 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.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute(java.lang.Object parent) |
Executes the layout for the children of the specified parent.
|
mxRectangle |
getContainerSize() |
Hook for subclassers to return the container size.
|
boolean |
isHorizontal() |
|
void |
moveCell(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.
|
arrangeGroups, getConstraint, getConstraint, getGraph, getParentOffset, getVertexBounds, isEdgeIgnored, isUseBoundingBox, isVertexIgnored, isVertexMovable, setEdgePoints, setEdgeStyleEnabled, setOrthogonalEdge, setUseBoundingBox, setVertexLocationprotected boolean horizontal
protected int spacing
protected int x0
protected int y0
protected int border
protected boolean fill
protected boolean resizeParent
protected int wrap
public mxStackLayout(mxGraph graph)
public mxStackLayout(mxGraph graph, boolean horizontal)
public mxStackLayout(mxGraph graph, boolean horizontal, int spacing)
public mxStackLayout(mxGraph graph, boolean horizontal, int spacing, int x0, int y0, int border)
public boolean isHorizontal()
public void moveCell(java.lang.Object cell,
double x,
double y)
mxIGraphLayoutmoveCell in interface mxIGraphLayoutmoveCell in class mxGraphLayoutcell - Cell which is being moved.x - X-coordinate of the new cell location.y - Y-coordinate of the new cell location.public mxRectangle getContainerSize()
public void execute(java.lang.Object parent)
mxIGraphLayoutexecute in interface mxIGraphLayoutexecute in class mxGraphLayoutparent - Parent cell that contains the children to be layed out.Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.