Packagecom.yworks.yfiles.layout.router.polyline
Classpublic class PartitionCell
InheritancePartitionCell Inheritance YObject Inheritance Object

Represents a rectangular part of the com.yworks.yfiles.layout.router.polyline.Partition as result of the decomposition process. Each instance of PartitionCell provides a data store ( putData(), getData() and removeData()) that could be used to bind additional information to it, e.g. what element of the graph is covered by this PartitionCell.

See also

com.yworks.yfiles.layout.router.polyline.PartitionCellKeys
com.yworks.yfiles.layout.router.polyline.Partition
putData()
getData()
removeData()


Public Properties
 PropertyDefined By
  bounds : YRectangle
[read-only] Returns the bounds the partition cell.
PartitionCell
  height : Number
[read-only] Returns the height of this partition cell.
PartitionCell
  id : int
[read-only] Returns a unique identifier of this partition cell.
PartitionCell
  maxX : Number
[read-only] Returns the x value of the right border of this partition cell.
PartitionCell
  maxY : Number
[read-only] Returns the y value of the lower border of this partition cell.
PartitionCell
  minX : Number
[read-only] Returns the x value of the left border of this partition cell.
PartitionCell
  minY : Number
[read-only] Returns the y value of the upper border of this partition cell.
PartitionCell
  partition : Partition
[read-only] Returns the partition (com.yworks.yfiles.layout.router.polyline.DynamicObstacleDecomposition) to which this partition cell belongs.
PartitionCell
  width : Number
[read-only] Returns the width of this partition cell.
PartitionCell
Public Methods
 MethodDefined By
  
PartitionCell(bounds:YRectangle, partition:Partition, init:Boolean = true)
Creates a new partition cell of the given partition with location and size of the given rectangle.
PartitionCell
  
clearData():void
Clears all additional data.
PartitionCell
  
Returns an com.yworks.yfiles.layout.router.polyline.OrthogonalInterval that defines location, size and orientation of the given border.
PartitionCell
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
PartitionCell
  
getData(key:Object):Object
Returns additional data to which the given key is mapped for this partition cell.
PartitionCell
 Inherited
hashCode():int
YObject
  
[static] Creates a new partition cell of the given partition with location and size of the given rectangle.
PartitionCell
  
newPartitionCell2(x:Number, y:Number, width:Number, height:Number, partition:Partition):PartitionCell
[static] Creates a new partition cell of the given partition with the given bounds.
PartitionCell
  
putData(key:Object, data:Object):Object
Stores additional data to which the given key is mapped for this partition cell.
PartitionCell
  
removeData(key:Object):Object
Removes additional data to which the given key is mapped for this partition cell.
PartitionCell
Protected Methods
 MethodDefined By
  
initPartitionCell1(bounds:YRectangle, partition:Partition):void
Initializes this object.
PartitionCell
  
initPartitionCell2(x:Number, y:Number, width:Number, height:Number, partition:Partition):void
Initializes this object.
PartitionCell
Property Detail
boundsproperty
bounds:YRectangle  [read-only]

Returns the bounds the partition cell.


Implementation
    public function get bounds():YRectangle
heightproperty 
height:Number  [read-only]

Returns the height of this partition cell.


Implementation
    public function get height():Number
idproperty 
id:int  [read-only]

Returns a unique identifier of this partition cell.


Implementation
    public function get id():int
maxXproperty 
maxX:Number  [read-only]

Returns the x value of the right border of this partition cell.


Implementation
    public function get maxX():Number
maxYproperty 
maxY:Number  [read-only]

Returns the y value of the lower border of this partition cell.


Implementation
    public function get maxY():Number
minXproperty 
minX:Number  [read-only]

Returns the x value of the left border of this partition cell.


Implementation
    public function get minX():Number
minYproperty 
minY:Number  [read-only]

Returns the y value of the upper border of this partition cell.


Implementation
    public function get minY():Number
partitionproperty 
partition:Partition  [read-only]

Returns the partition (com.yworks.yfiles.layout.router.polyline.DynamicObstacleDecomposition) to which this partition cell belongs.


Implementation
    public function get partition():Partition

See also

widthproperty 
width:Number  [read-only]

Returns the width of this partition cell.


Implementation
    public function get width():Number
Constructor Detail
PartitionCell()Constructor
public function PartitionCell(bounds:YRectangle, partition:Partition, init:Boolean = true)

Creates a new partition cell of the given partition with location and size of the given rectangle.

Parameters
bounds:YRectangle — The bounds of the partition cell.
 
partition:Partition — The partition to which the partition cell belongs.
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.

See also

Method Detail
clearData()method
public function clearData():void

Clears all additional data.

See also

createBorderInterval()method 
public function createBorderInterval(border:PartitionCell_PartitionCellBorder):OrthogonalInterval

Returns an com.yworks.yfiles.layout.router.polyline.OrthogonalInterval that defines location, size and orientation of the given border. The values defining the border are

Parameters

border:PartitionCell_PartitionCellBorder — A border of this partition cell.

Returns
OrthogonalInterval — An com.yworks.yfiles.layout.router.polyline.OrthogonalInterval that defines location, size and orientation of the given border.

See also

getClass()method 
override public function getClass():Class

Returns
Class
getData()method 
public function getData(key:Object):Object

Returns additional data to which the given key is mapped for this partition cell.

Parameters

key:Object — The Key with which the given data is to be associated.

Returns
Object — The additional data to which the given key is mapped, or null if there was no mapping for key.

See also

initPartitionCell1()method 
protected final function initPartitionCell1(bounds:YRectangle, partition:Partition):void

Initializes this object. See the documentation of the corresponding factory method newPartitionCell1() for details.

Parameters

bounds:YRectangle
 
partition:Partition

See also

initPartitionCell2()method 
protected final function initPartitionCell2(x:Number, y:Number, width:Number, height:Number, partition:Partition):void

Initializes this object. See the documentation of the corresponding factory method newPartitionCell2() for details.

Parameters

x:Number
 
y:Number
 
width:Number
 
height:Number
 
partition:Partition

See also

newPartitionCell1()method 
public static function newPartitionCell1(bounds:YRectangle, partition:Partition):PartitionCell

Creates a new partition cell of the given partition with location and size of the given rectangle.

Parameters

bounds:YRectangle — The bounds of the partition cell.
 
partition:Partition — The partition to which the partition cell belongs.

Returns
PartitionCell

See also

newPartitionCell2()method 
public static function newPartitionCell2(x:Number, y:Number, width:Number, height:Number, partition:Partition):PartitionCell

Creates a new partition cell of the given partition with the given bounds.

Parameters

x:Number — The x-coordinate of upper left corner of the partition cell.
 
y:Number — The y-coordinate of upper left corner of the partition cell.
 
width:Number — The width of the partition cell.
 
height:Number — The height of the partition cell.
 
partition:Partition — The partition to which the partition cell belongs.

Returns
PartitionCell
putData()method 
public function putData(key:Object, data:Object):Object

Stores additional data to which the given key is mapped for this partition cell.

Parameters

key:Object — The key with which the given data is to be associated.
 
data:Object — The additional data.

Returns
Object — The previous data associated with key, or null if there was no mapping for key.

See also

removeData()method 
public function removeData(key:Object):Object

Removes additional data to which the given key is mapped for this partition cell.

Parameters

key:Object — The Key with which the given data is to be associated.

Returns
Object — The additional data to which the given key is mapped, or null if there was no mapping for key.

See also