y.layout.router.polyline
Class CellSegmentInfo
java.lang.Object
y.layout.router.polyline.AbstractSegmentInfo
y.layout.router.polyline.CellSegmentInfo
public class CellSegmentInfo
- extends AbstractSegmentInfo
This class stores information about the part of an item segment that lies inside a specified
partition cell
.
-
-
Methods inherited from class y.layout.router.polyline.AbstractSegmentInfo |
getLocation, getLocationRange, getMaxExtension, getMinExtension, getPreferredAlignment, getSegmentGroup, getSegmentIndex, isFixed, isVertical, setLocation, setPreferredAlignment, setSegmentGroup, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CellSegmentInfo
public CellSegmentInfo(java.lang.Object item,
int segmentIndex,
Direction direction,
Interval locationRange,
Interval minExtension,
Interval maxExtension,
PartitionCell cell)
- Creates a new
CellSegmentInfo
instance.
- Parameters:
item
- the item 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 part is known to intersectmaxExtension
- the maximum interval in extension direction this segment part will spancell
- the partition cell within which this part of the edge segment lies
getDirection
public Direction getDirection()
- Returns the direction to which the segment of this info points.
- Overrides:
getDirection
in class AbstractSegmentInfo
- Returns:
- the direction to which the segment of this info points
getCell
public PartitionCell getCell()
- Returns the
partition cell
within which this part of the edge segment lies.
- Returns:
- the
partition cell
within which this part of the edge segment lies