|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.router.polyline.EdgeLayoutDescriptor
public class EdgeLayoutDescriptor
This class is used by EdgeRouter
to determine the routing details of the graph's edges.
EdgeRouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY
Field Summary | |
---|---|
static byte |
MONOTONIC_BOTH
Constant that specifies monotonic path restrictions for edges. |
static byte |
MONOTONIC_HORIZONTAL
Constant that specifies monotonic path restrictions for edges. |
static byte |
MONOTONIC_NONE
Constant that specifies monotonic path restrictions for edges. |
static byte |
MONOTONIC_VERTICAL
Constant that specifies monotonic path restrictions for edges. |
Constructor Summary | |
---|---|
EdgeLayoutDescriptor()
Creates a new instance of an EdgeLayoutDescriptor using the default values. |
Method Summary | |
---|---|
EdgeLayoutDescriptor |
createCopy()
Creates a copy of this instance. |
double |
getMinimalEdgeToEdgeDistance()
Returns the minimal distance between a pair of edges. |
double |
getMinimalFirstSegmentLength()
Returns the minimal length of the first segment (at the source). |
double |
getMinimalLastSegmentLength()
Returns the minimal length of the last segment (at the target). |
double |
getMinimalNodeCornerDistance()
Returns the minimal distance the edge shall keep from node corners when entering or leaving the node. |
byte |
getMonotonicPathRestriction()
Returns the monotonic path restrictions for this edge. |
PenaltySettings |
getPenaltySettings()
Returns the penalty settings that should be used for this edge. |
void |
setMinimalEdgeToEdgeDistance(double distance)
Sets the minimal distance between a pair of edges. |
void |
setMinimalFirstSegmentLength(double length)
Sets the minimal length of the first segment (at the source). |
void |
setMinimalLastSegmentLength(double length)
Sets the minimal length of the last segment (at the target). |
void |
setMinimalNodeCornerDistance(double distance)
Sets the minimal distance the edge shall keep from node corners when entering or leaving the node. |
void |
setMonotonicPathRestriction(byte restriction)
Sets the monotonic path restrictions for this edge. |
void |
setPenaltySettings(PenaltySettings penaltySettings)
Sets the penalty settings that should be used for this edge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte MONOTONIC_NONE
setMonotonicPathRestriction(byte)
,
getMonotonicPathRestriction()
,
Constant Field Valuespublic static final byte MONOTONIC_VERTICAL
setMonotonicPathRestriction(byte)
,
getMonotonicPathRestriction()
,
Constant Field Valuespublic static final byte MONOTONIC_HORIZONTAL
setMonotonicPathRestriction(byte)
,
getMonotonicPathRestriction()
,
Constant Field Valuespublic static final byte MONOTONIC_BOTH
setMonotonicPathRestriction(byte)
,
getMonotonicPathRestriction()
,
Constant Field ValuesConstructor Detail |
---|
public EdgeLayoutDescriptor()
Method Detail |
---|
public void setMinimalFirstSegmentLength(double length)
5.0
.
The value must be >= 0
, otherwise the default value will be assigned.
Note: the resulting segment length also depends on the given grid
spacing
, i.e., segment length >= (int) Math.ceil(length / grid spacing)
.
length
- The minimal length of the first segmentsetMinimalLastSegmentLength(double)
public double getMinimalFirstSegmentLength()
5.0
.
getMinimalLastSegmentLength()
public void setMinimalLastSegmentLength(double length)
10.0
. The
value must be >= 0
, otherwise the default value will be assigned.
Note: the resulting segment length also depends on the given grid
spacing
, i.e., segment length >= (int) Math.ceil(length / grid spacing)
.
length
- The minimal length of the last segmentsetMinimalFirstSegmentLength(double)
public double getMinimalLastSegmentLength()
10.0
.
getMinimalFirstSegmentLength()
public double getMinimalEdgeToEdgeDistance()
3.0
.
public void setMinimalEdgeToEdgeDistance(double distance)
3.0
.The value must
be >= 0
, otherwise the default value will be assigned.
distance
- The minimal distance between a pair of edges.public double getMinimalNodeCornerDistance()
3.0
.
public void setMinimalNodeCornerDistance(double distance)
3.0
. The value must be >= 0
, otherwise the default value will be
assigned.
distance
- The minimal distance the edge shall keep from node corners when entering or leaving the node.public byte getMonotonicPathRestriction()
MONOTONIC_HORIZONTAL
, MONOTONIC_VERTICAL
, MONOTONIC_BOTH
, or MONOTONIC_NONE
.
Default is MONOTONIC_NONE
.
public void setMonotonicPathRestriction(byte restriction)
MONOTONIC_HORIZONTAL
, MONOTONIC_VERTICAL
, MONOTONIC_BOTH
, or MONOTONIC_NONE
.
restriction
- The monotonic path restrictions for this edge.public PenaltySettings getPenaltySettings()
public void setPenaltySettings(PenaltySettings penaltySettings)
penaltySettings
- The penalty settings that should be used for this edge.public EdgeLayoutDescriptor createCopy()
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |