public class EdgeLayoutDescriptor extends Object
EdgeLayoutDescriptor
provides routing details for an edge that are considered by
SeriesParallelLayout
.
Such an EdgeLayoutDescriptor
can either be specified for a single edge or shared by several edges. It is
assigned by registering a IDataProvider
with key
SeriesParallelLayout.EDGE_LAYOUT_DESCRIPTOR_DPKEY
. If no IDataProvider
is registered with this key, a default descriptor
is
used.
Constructor and Description |
---|
EdgeLayoutDescriptor()
Creates a new instance of
EdgeLayoutDescriptor with default settings. |
Modifier and Type | Method and Description |
---|---|
EdgeLayoutDescriptor |
createCopy()
Creates a copy of this
EdgeLayoutDescriptor instance. |
double |
getMinimumFirstSegmentLength()
Gets the minimum length for the first segment of the associated edge.
|
double |
getMinimumLastSegmentLength()
Gets the minimum length for the last segment of the associated edge.
|
double |
getMinimumLength()
Gets the minimum length for the associated edge.
|
void |
setMinimumFirstSegmentLength(double value)
Sets the minimum length for the first segment of the associated edge.
|
void |
setMinimumLastSegmentLength(double value)
Sets the minimum length for the last segment of the associated edge.
|
void |
setMinimumLength(double value)
Sets the minimum length for the associated edge.
|
public EdgeLayoutDescriptor()
EdgeLayoutDescriptor
with default settings.public EdgeLayoutDescriptor createCopy()
EdgeLayoutDescriptor
instance.EdgeLayoutDescriptor
instancepublic double getMinimumFirstSegmentLength()
The minimum first segment length needs to be non-negative.
IllegalArgumentException
- for negative minimum segment lengthssetMinimumFirstSegmentLength(double)
public double getMinimumLastSegmentLength()
The minimum last segment length needs to be non-negative.
IllegalArgumentException
- for negative minimum segment lengthssetMinimumLastSegmentLength(double)
public double getMinimumLength()
The minimum length needs to be non-negative.
IllegalArgumentException
- for negative edge lengthssetMinimumLength(double)
public void setMinimumFirstSegmentLength(double value)
The minimum first segment length needs to be non-negative.
IllegalArgumentException
- for negative minimum segment lengthsvalue
- the minimum first segment lengthgetMinimumFirstSegmentLength()
public void setMinimumLastSegmentLength(double value)
The minimum last segment length needs to be non-negative.
IllegalArgumentException
- for negative minimum segment lengthsvalue
- the minimum last segment lengthgetMinimumLastSegmentLength()
public void setMinimumLength(double value)
The minimum length needs to be non-negative.
IllegalArgumentException
- for negative edge lengthsvalue
- the minimum edge lengthgetMinimumLength()