|
|||||||||
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.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. |
boolean |
getMinimizeLinkBends()
|
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 |
setMinimizeLinkBends(boolean value)
Sets a value indicating whether the layout should attempt to minimize link bends. |
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
- A float value specifying the minimum lane size; the default is 10.public float getPadding()
public void setPadding(float padding)
padding
- A float value specifying the padding between lanes; the default is 15.public boolean getRefine()
true
to make local refinements in the layout grid; otherwise false
.public void setRefine(boolean refine)
refine
- true
to make local refinements in the layout grid; otherwise false
.public boolean getDirected()
true
to treat the graph as directed, otherwise false
.public void setDirected(boolean directed)
directed
- true
to treat the graph as directed, otherwise false
.public boolean getMinimizeLinkBends()
public void setMinimizeLinkBends(boolean value)
value
- true to minimize link bends, otherwise false. The default value is true.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |