|
|||||||||
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.OrthogonalRouter
public class OrthogonalRouter
Implements an orthogonal graph layout algorithm.
Constructor Summary | |
---|---|
OrthogonalRouter()
Initializes a new instance of the OrthogonalLayout class. |
Method Summary | |
---|---|
boolean |
arrange(Diagram diagram,
DiagramItemList items)
Applies the layout on the specified subset of items from the specified Diagram instance. |
int |
getBaseLayout()
Gets a value indicating whether to arrange nodes or use their current configuration. |
float |
getBendDistance()
Gets how far from its adjacent node a link should bend. |
int |
getDirection()
Gets the direction of the arranged diagram when BaseLayout is set to Layered. |
int |
getEndOrientation()
Gets the desired orientation of the last segments of routed links. |
float |
getGridSize()
Gets the distance between adjacent grid points when BaseLayout is set to Grid. |
float |
getLayerDistance()
Gets the desired distance between layer axis lines. |
float |
getNodeDistance()
Gets the desired distance between adjacent nodes in a layer. |
int |
getOrientation()
Gets the overall orientation of the arranged diagram when BaseLayout is set to Layered. |
boolean |
getPutEndPointsAtNodeBorders()
Gets a value indicating whether the end points of a link should be placed at the outlines of the nodes connected by that link. |
int |
getRandomSeed()
Gets the randomization seed to use for generating random node positions. |
DiagramNode |
getRoot()
Gets a node indicating which subgraph of the diagram must be laid out. |
boolean |
getSplitGraph()
Gets a value indicating whether unconnected subgraphs should be laid out independently from each other. |
int |
getStartOrientation()
Gets the desired orientation of the first segments of routed links. |
void |
setBaseLayout(int value)
Sets a value indicating whether to arrange nodes or use their current configuration. |
void |
setBendDistance(float value)
Sets how far from its adjacent node a link should bend. |
void |
setDirection(int value)
Sets the direction of the arranged diagram when BaseLayout is set to Layered. |
void |
setEndOrientation(int value)
Sets the desired orientation of the last segments of routed links. |
void |
setGridSize(float value)
Sets the distance between adjacent grid points when BaseLayout is set to Grid. |
void |
setLayerDistance(float value)
Sets the desired distance between layer axis lines. |
void |
setNodeDistance(float value)
Sets the desired distance between adjacent nodes in a layer. |
void |
setOrientation(int value)
Sets the overall orientation of the arranged diagram when BaseLayout is set to Layered. |
void |
setPutEndPointsAtNodeBorders(boolean value)
Sets a value indicating whether the end points of a link should be placed at the outlines of the nodes connected by that link. |
void |
setRandomSeed(int value)
Sets the randomization seed to use for generating random node positions. |
void |
setRoot(DiagramNode value)
Sets a node indicating which subgraph of the diagram must be laid out. |
void |
setSplitGraph(boolean value)
Sets a value indicating whether unconnected subgraphs should be laid out independently from each other. |
void |
setStartOrientation(int value)
Sets the desired orientation of the first segments of routed links. |
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 OrthogonalRouter()
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 getBaseLayout()
public void setBaseLayout(int value)
public float getBendDistance()
public void setBendDistance(float value)
public float getGridSize()
public void setGridSize(float value)
public int getRandomSeed()
public void setRandomSeed(int value)
public boolean getSplitGraph()
public void setSplitGraph(boolean value)
public DiagramNode getRoot()
public void setRoot(DiagramNode value)
public int getOrientation()
public void setOrientation(int value)
public int getDirection()
public void setDirection(int value)
public float getLayerDistance()
public void setLayerDistance(float value)
public float getNodeDistance()
public void setNodeDistance(float value)
public boolean getPutEndPointsAtNodeBorders()
public void setPutEndPointsAtNodeBorders(boolean value)
public int getStartOrientation()
public void setStartOrientation(int value)
public int getEndOrientation()
public void setEndOrientation(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |