y.layout.router.polyline
Class CellSegmentInfo
java.lang.Object
y.layout.router.polyline.AbstractSegmentInfo
y.layout.router.polyline.CellSegmentInfo
public class CellSegmentInfo
- extends AbstractSegmentInfo
Stores information about the part of an edge segment that lies inside a specified PartitionCell
.
Methods inherited from class y.layout.router.polyline.AbstractSegmentInfo |
getEdge, getLocation, getLocationRange, getMaxExtension, getMinExtension, getPreferredAlignment, getSegmentGroup, getSegmentIndex, isFixed, isVertical, setLocation, setPreferredAlignment, setSegmentGroup, toString |
CellSegmentInfo
public CellSegmentInfo(Edge edge,
int segmentIndex,
Direction direction,
Interval locationRange,
Interval minExtension,
Interval maxExtension,
PartitionCell cell)
- Creates a new instance.
- Parameters:
edge
- The edge the segment of this info belongs to.segmentIndex
- The index of the segment this info belongs to.direction
- The direction the segment points to.locationRange
- The range the common location of this segment has to be inside.minExtension
- The minimal interval in extension direction this segment part is known to intersect.maxExtension
- The maximum interval in extension direction this segment part will span.cell
- The partition cell this part of the edge segment lies inside.
getDirection
public Direction getDirection()
- Returns the direction this segment part points to.
- Overrides:
getDirection
in class AbstractSegmentInfo
- Returns:
- The direction this segment part points to.
getCell
public PartitionCell getCell()
- Returns the partition cell this part of the edge segment lies in.
- Returns:
- The partition cell this part of the edge segment lies in.