public class OrthogonalRouter extends AbstractLayout
Constructor and Description |
---|
OrthogonalRouter()
Initializes a new instance of the OrthogonalLayout class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Direction |
getDirection()
Gets the direction of the arranged diagram when BaseLayout
is set to Layered.
|
Orientation |
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.
|
com.mindfusion.common.Orientation |
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.
|
Orientation |
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(Direction value)
Sets the direction of the arranged diagram when BaseLayout
is set to Layered.
|
void |
setEndOrientation(Orientation 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(com.mindfusion.common.Orientation 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(Orientation value)
Sets the desired orientation of the first segments of routed links.
|
arrange, getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public OrthogonalRouter()
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 com.mindfusion.common.Orientation getOrientation()
public void setOrientation(com.mindfusion.common.Orientation value)
public Direction getDirection()
public void setDirection(Direction 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 Orientation getStartOrientation()
public void setStartOrientation(Orientation value)
public Orientation getEndOrientation()
public void setEndOrientation(Orientation value)