|
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.AbstractSegmentInfo
y.layout.router.polyline.SegmentInfo
public class SegmentInfo
A SegmentInfo holds information about the possible location of an orthogonal edge segment.
Most notably, it stores the direction of the segment and the
interval that restricts the location of the segment.
![]() |
![]() |
| Field Summary |
|---|
| Fields inherited from class y.layout.router.polyline.AbstractSegmentInfo |
|---|
ALIGNMENT_ANY, ALIGNMENT_MAX, ALIGNMENT_MIN |
| Constructor Summary | |
|---|---|
SegmentInfo(Edge edge,
int segmentIndex,
Direction direction,
Interval locationRange,
Interval minExtension,
Interval maxExtension,
java.util.List cellSegmentInfos)
Creates a new instance of SegmentInfo with the given information. |
|
SegmentInfo(Edge edge,
int segmentIndex,
LineSegment segment)
Creates a new instance of SegmentInfo using a LineSegment to describe the edge segment. |
|
| Method Summary | |
|---|---|
int |
cellSegmentInfoCount()
Returns the number of CellSegmentInfo of this segment info. |
CellSegmentInfo |
getCellSegmentInfo(int index)
Returns the CellSegmentInfo at the given index of this segment info. |
Edge |
getEdge()
Returns the edge to which the segment of this info belongs. |
boolean |
isAtStrongPortConstraint()
Returns whether or not this edge segment has the restriction of a strong PortConstraint. |
void |
setAtStrongPortConstraint(boolean atStrongPortConstraint)
Specifies whether or not this edge segment has the restriction of a strong PortConstraint. |
void |
setSegmentGroup(SegmentGroup segmentGroup)
Specifies the segment group for this segment info and its associated CellSegmentInfos. |
| Methods inherited from class y.layout.router.polyline.AbstractSegmentInfo |
|---|
getDirection, getLocation, getLocationRange, getMaxExtension, getMinExtension, getPreferredAlignment, getSegmentGroup, getSegmentIndex, isFixed, isVertical, setLocation, setPreferredAlignment, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SegmentInfo(Edge edge,
int segmentIndex,
Direction direction,
Interval locationRange,
Interval minExtension,
Interval maxExtension,
java.util.List cellSegmentInfos)
SegmentInfo with the given information.
edge - the edge to which the segment of this info belongssegmentIndex - the index of the segment to which this info belongsdirection - the direction to which the segment of this info pointslocationRange - the range within which the common location of this segment has to lieminExtension - the minimum interval in extension direction this segment is known to intersectmaxExtension - the maximum interval in extension direction this segment will spancellSegmentInfos - the list of CellSegmentInfo objects upon which this segment info is built
public SegmentInfo(Edge edge,
int segmentIndex,
LineSegment segment)
SegmentInfo using a LineSegment to describe the edge segment.
edge - the edge to which the segment of this info belongssegmentIndex - the index of the segment to which this info belongssegment - a line segment describing the edge segment| Method Detail |
|---|
public Edge getEdge()
public int cellSegmentInfoCount()
CellSegmentInfo of this segment info.
CellSegmentInfo of this segment infopublic CellSegmentInfo getCellSegmentInfo(int index)
CellSegmentInfo at the given index of this segment info.
index - the index of the CellSegmentInfo to return
CellSegmentInfo at the given index of this segment infopublic void setSegmentGroup(SegmentGroup segmentGroup)
segment group for this segment info and its associated CellSegmentInfos.
The location ranges are adjusted to use the SegmentGroup.getCommonLocationRange().
setSegmentGroup in class AbstractSegmentInfosegmentGroup - the segment group to which this segment info shall belongSegmentGrouppublic boolean isAtStrongPortConstraint()
PortConstraint.
true if this edge segment has the restriction of a strong PortConstraint,
false otherwisepublic void setAtStrongPortConstraint(boolean atStrongPortConstraint)
PortConstraint.
atStrongPortConstraint - true if this edge segment has the restriction of a strong
PortConstraint, false otherwise
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||