|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.orthogonal.EdgeLayoutDescriptor
public class EdgeLayoutDescriptor
This class provides layout information for the edges of the graph.
EdgeLayoutDescriptor
is used by OrthogonalLayouter
, DirectedOrthogonalLayouter
and
OrthogonalGroupLayouter
to determine the routing details for the edges (e.g. the segment length).
An EdgeLayoutDescriptor
can be specified individually for each edge by using a
DataProvider
which maps from an Edge
to an EdgeLayoutDescriptor
instance.
The DataProvider
is
registered with the graph with keys OrthogonalLayouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY
for OrthogonalLayouter
,
DirectedOrthogonalLayouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY
for DirectedOrthogonalLayouter
and
OrthogonalGroupLayouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY
for OrthogonalGroupLayouter
.
OrthogonalLayouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY
,
DirectedOrthogonalLayouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY
,
OrthogonalGroupLayouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY
Constructor Summary | |
---|---|
EdgeLayoutDescriptor()
Creates a new instance of EdgeLayoutDescriptor with the default settings. |
Method Summary | |
---|---|
EdgeLayoutDescriptor |
createCopy()
Creates a copy of this EdgeLayoutDescriptor instance. |
double |
getMinimumFirstSegmentLength()
Returns the minimum length of the first segment of the edge path (at the source node). |
double |
getMinimumLastSegmentLength()
Returns the minimum length of the last segment of the edge path (at the target node). |
double |
getMinimumSegmentLength()
Returns the minimum segment length of an edge. |
void |
setMinimumFirstSegmentLength(double length)
Specifies the minimum length of the first segment of the edge path (at the source node). |
void |
setMinimumLastSegmentLength(double length)
Specifies the minimum length of the last segment of the edge path (at the target node). |
void |
setMinimumSegmentLength(double length)
Specifies the minimum segment length of an edge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EdgeLayoutDescriptor()
EdgeLayoutDescriptor
with the default settings.
Method Detail |
---|
public void setMinimumFirstSegmentLength(double length)
The minimum length must be greater than or equal to 0
.
OrthogonalLayouter.setGrid(int)
).
If the grid is larger than the specified minimum length, then the grid size defines the actual minimum.length
- the minimum length of the first segment
java.lang.IllegalArgumentException
- if the minimum length of the first segment is negativeMinimum first segment length 15 | Minimum first segment length 30 |
public double getMinimumFirstSegmentLength()
The minimum length must be greater than or equal to 0
.
OrthogonalLayouter.setGrid(int)
).
If the grid is larger than the specified minimum length, then the grid size defines the actual minimum.setMinimumFirstSegmentLength(double)
public void setMinimumLastSegmentLength(double length)
The minimum length must be greater than or equal to 0
.
OrthogonalLayouter.setGrid(int)
).
If the grid is larger than the specified minimum length, then the grid size defines the actual minimum.length
- the minimum length of the last segment
java.lang.IllegalArgumentException
- if the minimum length of the last segment is negativeMinimum last segment length 15 | Minimum last segment length 30 |
public double getMinimumLastSegmentLength()
The minimum length must be greater than or equal to 0
.
OrthogonalLayouter.setGrid(int)
).
If the grid is larger than the specified minimum length, then the grid size defines the actual minimum.setMinimumLastSegmentLength(double)
public void setMinimumSegmentLength(double length)
The minimum length must be greater than or equal to 0
.
OrthogonalLayouter.setGrid(int)
).
If the grid is larger than the specified minimum length, then the grid size defines the actual minimum.length
- the minimum segment length.
java.lang.IllegalArgumentException
- if the minimum length is negativeMinimum segment length 15 | Minimum segment length 30 |
public double getMinimumSegmentLength()
The minimum length must be greater than or equal to 0
.
OrthogonalLayouter.setGrid(int)
).
If the grid is larger than the specified minimum length, then the grid size defines the actual minimum.setMinimumSegmentLength(double)
public EdgeLayoutDescriptor createCopy()
EdgeLayoutDescriptor
instance.
EdgeLayoutDescriptor
instance
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |