public class SegmentGroup extends Object
Grouped edges have the same source or target group ID assigned in the IDataProvider
registered with the graph with PortConstraintKeys.SOURCE_GROUP_ID_DPKEY or PortConstraintKeys.TARGET_GROUP_ID_DPKEY
keys.
The SegmentGroup contains the common location range for the edge group and
provides a common segment info representing the grouped segments.
| Constructor and Description |
|---|
SegmentGroup(Interval commonLocationRange,
List<Object> segmentInfos)
Creates a new instance of
SegmentGroup that contains the given segments and a range to place them. |
| Modifier and Type | Method and Description |
|---|---|
Interval |
getCommonLocationRange()
Gets the common location range for the
segments in this group. |
SegmentInfo |
getCommonSegmentInfo()
Gets the common
SegmentInfo representing the grouped segments. |
List<Object> |
getSegmentInfos()
Gets the list of
SegmentInfos contained in this group. |
int |
hashCode()
Returns the hash code for this
SegmentGroup. |
public SegmentGroup(Interval commonLocationRange, List<Object> segmentInfos)
SegmentGroup that contains the given segments and a range to place them.commonLocationRange - the location range of the given SegmentInfossegmentInfos - the list containing the grouped SegmentInfospublic 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 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 List<Object> getSegmentInfos()
SegmentInfos contained in this group.SegmentInfos contained in this grouppublic int hashCode()
SegmentGroup.hashCode in class ObjectSegmentGroup