|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.hierarchic.incremental.EdgeLayoutDescriptor
public class EdgeLayoutDescriptor
This class is used by HierarchicLayouter
during the various
phases to determine the routing details of the graph's edges.
Note: not all of these values will be used for all kinds of edges and
any kind of algorithm.
This class is designed as a class to allow for future additions of new getter
methods.
HierarchicLayouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY
,
NodeLayoutDescriptor
Constructor Summary | |
---|---|
EdgeLayoutDescriptor()
Creates a new instance of an EdgeLayoutDescriptor using the default values. |
Method Summary | |
---|---|
double |
getMinimumDistance()
Returns the preferred minimum distance of the edge to obstacles. |
double |
getMinimumFirstSegmentLength()
Returns the minimum length of the first segment (at the source). |
double |
getMinimumLastSegmentLength()
Returns the minimum length of the last segment (at the target). |
double |
getMinimumLength()
Returns the minimum length of the edge if the edge does not contain any This is used for polyline routing. |
double |
getMinimumSlope()
Returns the minimum slope this edge's mid-segments should have if the edge is routed polygonal in vertical layouts. |
double |
getMinOctilinearSegmentLength()
Returns the minimum length of octilinear segments for this edge. |
RoutingStyle |
getRoutingStyle()
Returns the routing style for this edge. |
boolean |
isOrthogonallyRouted()
Deprecated. Replaced by getRoutingStyle() . |
boolean |
isSourcePortOptimizationEnabled()
Returns whether source port optimization is enabled, i.e. whether the algorithm should try to find a better source PortConstraint
if the current constraint is null or PortConstraint.ANY_SIDE . |
boolean |
isTargetPortOptimizationEnabled()
Returns whether target port optimization is enabled, i.e. whether the algorithm should try to find a better target PortConstraint
if the current constraint is null or PortConstraint.ANY_SIDE . |
void |
setMinimumDistance(double distance)
Sets the preferred minimum distance to obstacles. |
void |
setMinimumFirstSegmentLength(double length)
Sets the minimum length of the first segment (at the source). |
void |
setMinimumLastSegmentLength(double length)
Sets the minimum length of the last segment (at the target). |
void |
setMinimumLength(double length)
Sets the minimum length of the edge. |
void |
setMinimumSlope(double slope)
Sets the minimum slope this edge's mid-segments should have if the edge is routed polygonal in vertical layouts. |
void |
setMinOctilinearSegmentLength(double minOctilinearSegmentLength)
Specifies the minimum length of octilinear segments for this edge. |
void |
setOrthogonallyRouted(boolean orthogonal)
Deprecated. Replaced by setRoutingStyle(RoutingStyle) . |
void |
setRoutingStyle(RoutingStyle routingStyle)
Specifies the routing style for this edge. |
void |
setSourcePortOptimizationEnabled(boolean enable)
Determines whether source port optimization is enabled, i.e. whether the algorithm should try to find a better source PortConstraint
if the current constraint is null or PortConstraint.ANY_SIDE . |
void |
setTargetPortOptimizationEnabled(boolean enable)
Determines whether target port optimization is enabled, i.e. whether the algorithm should try to find a better target PortConstraint
if the current constraint is null or PortConstraint.ANY_SIDE . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EdgeLayoutDescriptor()
Method Detail |
---|
public void setMinimumFirstSegmentLength(double length)
0.0d
the first segment does not need to be
orthogonal.
length
- the minimum length of the first orthogonally routed segmentpublic double getMinimumFirstSegmentLength()
0.0d
the first segment does not need to be
orthogonal.
Default is 10.0d
.
public void setMinimumLastSegmentLength(double length)
0.0d
the last segment does not need to be
orthogonal.
length
- the minimum length of the last orthogonally routed segmentpublic double getMinimumLastSegmentLength()
0.0d
the last segment does not need to be
orthogonal.
Default is 15.0d
.
public void setMinimumLength(double length)
length
- the minimum height of the mid segmentpublic double getMinimumLength()
20.0d
.
public void setMinimumDistance(double distance)
distance
- the minimum distance to obstaclespublic double getMinimumDistance()
10.0d
.
public void setMinimumSlope(double slope)
Default is 0.3d
.
slope
- the minimum slope of the mid-segments.public double getMinimumSlope()
Default is 0.3d
.
public boolean isSourcePortOptimizationEnabled()
PortConstraint
if the current constraint is null
or PortConstraint.ANY_SIDE
.
Default is false
, which will result in ports being placed at the side of
the node which lies closest to the target of the edge in terms of layering.
public void setSourcePortOptimizationEnabled(boolean enable)
PortConstraint
if the current constraint is null
or PortConstraint.ANY_SIDE
.
enable
- whether to enable port constraint optimization for the source portpublic boolean isTargetPortOptimizationEnabled()
PortConstraint
if the current constraint is null
or PortConstraint.ANY_SIDE
.
Default is false
, which will result in ports being placed at the side of
the node which lies closest to the source of the edge in terms of layering.
public void setTargetPortOptimizationEnabled(boolean enable)
PortConstraint
if the current constraint is null
or PortConstraint.ANY_SIDE
.
enable
- whether to enable port constraint optimization for the source portpublic void setOrthogonallyRouted(boolean orthogonal)
setRoutingStyle(RoutingStyle)
.
false
.
This does not affect the routing of bus-like structures.
orthogonal
- whether to route this edge orthogonallypublic boolean isOrthogonallyRouted()
getRoutingStyle()
.
false
.
This does not affect the routing of bus-like structures.
public RoutingStyle getRoutingStyle()
RoutingStyle
public void setRoutingStyle(RoutingStyle routingStyle)
routingStyle
- the routing style for this edge.RoutingStyle
public double getMinOctilinearSegmentLength()
Default is 20.0d
.
getRoutingStyle()
public void setMinOctilinearSegmentLength(double minOctilinearSegmentLength)
Default is 20.0d
.
minOctilinearSegmentLength
- the minimum length of octilinear segment.setRoutingStyle(RoutingStyle)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |