|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.AbstractLayout com.mindfusion.diagramming.OrthogonalLayout
public class OrthogonalLayout
Implements an orthogonal graph layout algorithm. Each link is drawn as a chain of alternating horizontal and vertical segments. Nodes are placed in a way that facilitates few links bends and crossings.
Constructor Summary | |
---|---|
OrthogonalLayout()
Initializes a new instance of the OrthogonalLayout 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 |
getDirected()
Gets a value indicating whether the graph being laid out is directed. |
float |
getMinLaneSize()
Gets a value indicating the minimum size of a lane. |
float |
getPadding()
Gets a value indicating how much space to leave between nodes in adjacent lanes. |
boolean |
getRefine()
Gets a value indicating whether to refine the layout. |
void |
setDirected(boolean directed)
Sets a value indicating whether the graph being laid out is directed. |
void |
setMinLaneSize(float value)
Sets a value indicating the minimum size of a lane. |
void |
setPadding(float padding)
Sets a value indicating how much space to leave between nodes in adjacent lanes. |
void |
setRefine(boolean refine)
Sets a value indicating whether to refine the layout. |
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 OrthogonalLayout()
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 float getMinLaneSize()
public void setMinLaneSize(float value)
value
- public float getPadding()
public void setPadding(float padding)
padding
- public boolean getRefine()
public void setRefine(boolean refine)
refine
- public boolean getDirected()
public void setDirected(boolean directed)
directed
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |