Search this API

y.layout.router.polyline
Class SegmentGroup

java.lang.Object
  extended by y.layout.router.polyline.SegmentGroup

public class SegmentGroup
extends Object

Represents a group of segments of different edges, that shall be combined at the common source or target side.

Grouped edges have the same source or target group id assigned in the data provider registered at the graph with the PortConstraintKeys.SOURCE_GROUPID_KEY or PortConstraintKeys.TARGET_GROUPID_KEY key.

The segment group contains the common location range for the edge group and provides a common segment info representing the grouped segment infos.


Constructor Summary
SegmentGroup(Interval commonLocationRange, List segmentInfos)
          Creates a new segment group.
 
Method Summary
 Interval getCommonLocationRange()
          Returns the common location range for the segment infos in this group.
 SegmentInfo getCommonSegmentInfo()
          Returns the common segment info representing the grouped segment infos.
 List getSegmentInfos()
          Returns the segment infos contained in this group.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentGroup

public SegmentGroup(Interval commonLocationRange,
                    List segmentInfos)
Creates a new segment group.

Parameters:
commonLocationRange - The location range of the segment infos.
segmentInfos - A list containing the grouped segment infos.
Method Detail

getCommonLocationRange

public Interval getCommonLocationRange()
Returns the common location range for the segment infos in this group.

Returns:
The common location range for the segment infos in this group.

getSegmentInfos

public List getSegmentInfos()
Returns the segment infos contained in this group.

Returns:
The segment infos contained in this group.

getCommonSegmentInfo

public SegmentInfo getCommonSegmentInfo()
Returns the common segment info representing the grouped segment infos.

Returns:
The common segment info representing the grouped segment infos.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.