Search this API

y.layout.router.polyline
Class CellSegmentInfo

java.lang.Object
  extended by y.layout.router.polyline.AbstractSegmentInfo
      extended by 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.


Field Summary
 
Fields inherited from class y.layout.router.polyline.AbstractSegmentInfo
ALIGNMENT_ANY, ALIGNMENT_MAX, ALIGNMENT_MIN
 
Constructor Summary
CellSegmentInfo(Edge edge, int segmentIndex, Direction direction, Interval locationRange, Interval minExtension, Interval maxExtension, PartitionCell cell)
          Creates a new instance.
 
Method Summary
 PartitionCell getCell()
          Returns the partition cell this part of the edge segment lies in.
 Direction getDirection()
          Returns the direction this segment part points to.
 
Methods inherited from class y.layout.router.polyline.AbstractSegmentInfo
getEdge, 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
 

Constructor Detail

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.
Method Detail

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.

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