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

This class stores information about the part of an item segment that lies inside a specified partition cell.

 
Your browser does not support SVG content.

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

Constructor Detail

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 belongs
segmentIndex - the index of the segment to which this info belongs
direction - the direction to which the segment of this info points
locationRange - the range within which the common location of this segment has to lie
minExtension - the minimum 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 within which this part of the edge segment lies
Method Detail

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

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