|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.router.polyline.EdgeInfo
public class EdgeInfo
Encapsulates the information required to route an edge with a path routing algorithm.
ChannelBasedPathRouting
| Constructor Summary | |
|---|---|
EdgeInfo(Path path,
PathSearchConfiguration configuration)
Creates a new instance. |
|
| Method Summary | |
|---|---|
LineSegment[] |
calculateLineSegments()
Returns an array of LineSegments created from the calculated path points. |
YList |
calculatePathPoints()
Returns a list of YPoints containing the source port, bend and target port locations. |
Edge |
getEdge()
Returns the edge whose route is described by this info. |
EdgeCellInfo |
getEdgeCellInfo(CellEntrance entrance)
Returns the EdgeCellInfo of the given CellEntrance in the path. |
List |
getEdgeCellInfos()
Returns a list of EdgeCellInfos describing how the edge traverses each PartitionCell on its path. |
SegmentInfo |
getNextSegment(SegmentInfo segment)
Returns the segment info of the segment following the segment of the given segment info. |
SegmentInfo |
getPreviousSegment(SegmentInfo segment)
Returns the segment info of the segment preceding the segment of the given segment info. |
SegmentInfo |
getSegmentInfo(int segmentIndex)
Returns the segment info the the segment with the given index. |
YPoint |
getStrongSourcePort()
Returns the location of the strong source port the edge uses. |
YPoint |
getStrongTargetPort()
Returns the location of the strong target port the edge uses. |
boolean |
isFixed()
Determines whether the path of this edge is fixed or shall be routed by the path search
algorithm. |
int |
segmentCount()
Returns the number of segments of the edge. |
void |
setStrongSourcePort(YPoint portLocation)
Sets the location of the strong source port the edge uses and updates the first SegmentInfo to use this
fixed port location. |
void |
setStrongTargetPort(YPoint portLocation)
Sets the location of the strong target port the edge uses and updates the last SegmentInfo to use this
fixed port location. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EdgeInfo(Path path,
PathSearchConfiguration configuration)
path - The path that shall be used to route the edge.configuration - The configuration of the path search algorithm.| Method Detail |
|---|
public boolean isFixed()
edge is fixed or shall be routed by the path search
algorithm.
true if the path of this edge is fixed or shall be routed by the path
search algorithm, false otherwise.public Edge getEdge()
public List getEdgeCellInfos()
EdgeCellInfos describing how the edge traverses each PartitionCell on its path.
EdgeCellInfos describing how the edge traverses each PartitionCell on
its path.public EdgeCellInfo getEdgeCellInfo(CellEntrance entrance)
EdgeCellInfo of the given CellEntrance in the path.
entrance - The entrance to get the edge cell info for.
EdgeCellInfo of the given CellEntrance in the path.public SegmentInfo getSegmentInfo(int segmentIndex)
segmentIndex - The index of the edge segment to return the segment info for.
public SegmentInfo getPreviousSegment(SegmentInfo segment)
segment - The segmentInfo for which the previous segment info shall be returned.
public SegmentInfo getNextSegment(SegmentInfo segment)
segment - The segmentInfo for which the following segment info shall be returned.
public int segmentCount()
public String toString()
toString in class Objectpublic YPoint getStrongSourcePort()
null if no strong source port
has been set.setStrongSourcePort(y.geom.YPoint)public void setStrongSourcePort(YPoint portLocation)
SegmentInfo to use this
fixed port location.
IllegalArgumentException - If the first segment is already fixed and the given port location contradicts
the segments fixed location.portLocation - The strong source port location.getStrongSourcePort(),
AbstractSegmentInfo.setLocation(double),
SegmentInfo.setAtStrongPortConstraint(boolean)public YPoint getStrongTargetPort()
null if no strong target port
has been set.setStrongTargetPort(y.geom.YPoint)public void setStrongTargetPort(YPoint portLocation)
SegmentInfo to use this
fixed port location.
IllegalArgumentException - If the last segment is already fixed and the given port location contradicts
the segments fixed location.portLocation - The strong target port location.getStrongTargetPort(),
AbstractSegmentInfo.setLocation(double),
SegmentInfo.setAtStrongPortConstraint(boolean)public LineSegment[] calculateLineSegments()
LineSegments created from the calculated path points.
LineSegments created from the calculated path points.public YList calculatePathPoints()
YPoints containing the source port, bend and target port locations.
YPoints containing the source port, bend and target port locations.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||