|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindfusion.diagramming.AbstractLayout
com.mindfusion.diagramming.SwimlaneLayout
public class SwimlaneLayout
Implements an algorithm which arranges nodes in lanes.
Constructor Summary | |
---|---|
SwimlaneLayout()
Initializes a new instance of the SwimlaneLayout class
with the default settings. |
Method Summary | |
---|---|
boolean |
arrange(Diagram diagram,
DiagramItemList items)
Applies the layout on the specified subset of items from the specified Diagram instance. |
boolean |
getCollapseEmptyLanes()
Get or sets a value indicating whether lanes without associated nodes will shrink to zero size. |
boolean |
getCompactNodes()
Gets a value indicating whether the nodes within individual lanes are compacted. |
int |
getDirection()
Gets the direction of the arranged diagram. |
boolean |
getKeepLaneSizes()
Gets a value indicating whether the layout will attempt to preserve the original sizes of the lanes in the supplied grid. |
float |
getLaneDistance()
Gets the spacing between adjacent lanes in the final layout. |
float |
getNodeDistance()
Gets the spacing between adjacent nodes within a lane in the final layout. |
int |
getOrientation()
Gets a the orientation of the arranged graph. |
SwimlaneGrid |
getSwimlaneGrid()
Gets the object through which the layout can manipulate the swimlane grid. |
void |
setCollapseEmptyLanes(boolean value)
Set or sets a value indicating whether lanes without associated nodes will shrink to zero size. |
void |
setCompactNodes(boolean value)
Sets a value indicating whether the nodes within individual lanes are compacted. |
void |
setDirection(int value)
Sets the direction of the arranged diagram. |
void |
setKeepLaneSizes(boolean value)
Sets a value indicating whether the layout will attempt to preserve the original sizes of the lanes in the supplied grid. |
void |
setLaneDistance(float value)
Sets the spacing between adjacent lanes in the final layout. |
void |
setNodeDistance(float value)
Sets the spacing between adjacent nodes within a lane in the final layout. |
void |
setOrientation(int value)
Sets a the orientation of the arranged graph. |
void |
setSwimlaneGrid(SwimlaneGrid value)
Sets the object through which the layout can manipulate the swimlane grid. |
Methods inherited from class com.mindfusion.diagramming.AbstractLayout |
---|
arrange, getAnchoring, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwimlaneLayout()
SwimlaneLayout
class
with the default settings.
Method Detail |
---|
public boolean arrange(Diagram diagram, DiagramItemList items)
arrange
in class AbstractLayout
diagram
- The Diagram that should be arranged.items
- A collection of nodes and links from diagram that define
the subgraph to arrange.
public int getDirection()
public void setDirection(int value)
Orientation.Horizontal
,
Direction.Straight
stands
for "left to right" and Direction.Reversed
for "right to left". If the orientation is set to
Orientation.Vertical
,
Direction.Straight
stands
for "top to bottom" and Direction.Reversed
for "bottom to top".
public int getOrientation()
Orientation
constants.public void setOrientation(int value)
value
- One of the Orientation
constants.public SwimlaneGrid getSwimlaneGrid()
public void setSwimlaneGrid(SwimlaneGrid value)
public float getLaneDistance()
public void setLaneDistance(float value)
public float getNodeDistance()
public void setNodeDistance(float value)
public boolean getCollapseEmptyLanes()
setLaneDistance(float)
.
public void setCollapseEmptyLanes(boolean value)
setLaneDistance(float)
.
To be able to shrink the lanes of a lane grid to zero size, the MinHeaderSize
property of the lane grid must be set to an appropriate value.
public boolean getCompactNodes()
public void setCompactNodes(boolean value)
public boolean getKeepLaneSizes()
public void setKeepLaneSizes(boolean value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |