|
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.SegmentGroup
public class SegmentGroup
Represents a group of segments of different edges that shall be combined at their common source or target.
Grouped edges have the same source or target group ID assigned in the DataProvider
registered with the
graph with PortConstraintKeys.SOURCE_GROUPID_KEY
or PortConstraintKeys.TARGET_GROUPID_KEY
keys.
SegmentGroup
contains the common location range
for the edge group
and provides a common segment info
representing the grouped segments.
Constructor Summary | |
---|---|
SegmentGroup(Interval commonLocationRange,
java.util.List segmentInfos)
Creates a new instance of SegmentGroup that contains the given segments and a range to place them. |
Method Summary | |
---|---|
Interval |
getCommonLocationRange()
Returns the common location range for the segments in this group. |
SegmentInfo |
getCommonSegmentInfo()
Returns the common SegmentInfo representing the grouped segments. |
java.util.List |
getSegmentInfos()
Returns the list of SegmentInfo s contained in this group. |
int |
hashCode()
Returns the hash code for this SegmentGroup . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SegmentGroup(Interval commonLocationRange, java.util.List segmentInfos)
SegmentGroup
that contains the given segments and a range to place them.
commonLocationRange
- the location range of the given SegmentInfo
ssegmentInfos
- the list containing the grouped SegmentInfo
sMethod Detail |
---|
public Interval getCommonLocationRange()
segments
in this group.
For vertical grouped segments, this interval describes the horizontal range where this segment can be placed. Horizontal grouped segments are placed in a vertical range.
public java.util.List getSegmentInfos()
SegmentInfo
s contained in this group.
SegmentInfo
s contained in this grouppublic SegmentInfo getCommonSegmentInfo()
SegmentInfo
representing the grouped segments.
The returned segment info is used for placing the common segment. The coordinates are applied to all edges in the bundle later.
public int hashCode()
SegmentGroup
.
hashCode
in class java.lang.Object
SegmentGroup
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |