mxIGraphLayoutpublic class mxPartitionLayout extends mxGraphLayout
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
border |
Integer that specifies the absolute inset in pixels for the parent that
contains the children.
|
protected boolean |
horizontal |
Boolean indicating the direction in which the space is partitioned.
|
protected boolean |
resizeVertices |
Boolean that specifies if vertices should be resized.
|
protected int |
spacing |
Integer that specifies the absolute spacing in pixels between the
children.
|
graph, parent, useBoundingBox| Constructor | Description |
|---|---|
mxPartitionLayout(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.
|
| 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.
|
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 border
protected boolean resizeVertices
public mxPartitionLayout(mxGraph graph)
public mxPartitionLayout(mxGraph graph, boolean horizontal)
public mxPartitionLayout(mxGraph graph, boolean horizontal, int spacing)
public mxPartitionLayout(mxGraph graph, boolean horizontal, int spacing, int border)
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.