Packagecom.yworks.yfiles.layout.hierarchic
Classpublic class AsIsLayerer
InheritanceAsIsLayerer Inheritance YObject Inheritance Object
Implements OldLayerer, Layerer

This layerer implementation assigns layers by analyzing already existing node coordinates. Nodes whose bounding boxes intersect a common y-coordinate are assigned to the same layer.



Public Properties
 PropertyDefined By
  maximumNodeSize : Number
Specifies the maximum size of a node that is used to calculate layer overlaps.
AsIsLayerer
  minimumNodeSize : Number
Specifies the minimum size of a node that is used to calculate layer overlaps.
AsIsLayerer
  nodeHalo : Number
Getter: Gets the size of the halo around a node or the insets respectively that are used to calculate layer overlaps.
AsIsLayerer
  nodeScalingFactor : Number
Specifies the scaling factor that is used to scale the nodes' height.
AsIsLayerer
Public Methods
 MethodDefined By
  
AsIsLayerer(init:Boolean = true)
AsIsLayerer
  
AsIsLayerer
  
assignNodeLayer(g:LayoutGraph, layerMap:NodeMap, reversedEdges:EdgeList):int
AsIsLayerer
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
AsIsLayerer
 Inherited
hashCode():int
YObject
  
[static]
AsIsLayerer
Protected Methods
 MethodDefined By
  
getMax(graph:LayoutGraph, node:Node):Number
Callback used to calculate the lower (max) value of a node.
AsIsLayerer
  
getMin(graph:LayoutGraph, node:Node):Number
Callback used to calculate the upper (min) value of a node.
AsIsLayerer
  
AsIsLayerer
Property Detail
maximumNodeSizeproperty
maximumNodeSize:Number

Specifies the maximum size of a node that is used to calculate layer overlaps. This can be used for more fuzzy layering. The default is Double.MAX_VALUE which results in no restriction being set.


Implementation
    public function get maximumNodeSize():Number
    public function set maximumNodeSize(value:Number):void

Throws
IllegalArgumentException — if the specified value is less than 0.

See also

minimumNodeSizeproperty 
minimumNodeSize:Number

Specifies the minimum size of a node that is used to calculate layer overlaps. This can be used for more fuzzy layering. The default is 0.0d which results in no restriction being set.


Implementation
    public function get minimumNodeSize():Number
    public function set minimumNodeSize(value:Number):void

Throws
IllegalArgumentException — if the specified value is less than 0.

See also

nodeHaloproperty 
nodeHalo:Number

Getter: Gets the size of the halo around a node or the insets respectively that are used to calculate layer overlaps. The default is 0.0d which results in no modification

Setter: Sets the size of the halo around a node or the insets respectively that are used to calculate layer overlaps. This can be used for more fuzzy layering.


Implementation
    public function get nodeHalo():Number
    public function set nodeHalo(value:Number):void
nodeScalingFactorproperty 
nodeScalingFactor:Number

Specifies the scaling factor that is used to scale the nodes' height. Nodes are being scaled from their center. This can be used for more fuzzy layering. The default is 1.0d which results in no scaling.


Implementation
    public function get nodeScalingFactor():Number
    public function set nodeScalingFactor(value:Number):void

Throws
IllegalArgumentException — if the specified value is less than 0.
Constructor Detail
AsIsLayerer()Constructor
public function AsIsLayerer(init:Boolean = true)



Parameters
init:Boolean (default = true)
Method Detail
assignLayers()method
public function assignLayers(graph:LayoutGraph, layers:Layers, ldp:LayoutDataProvider):void

Parameters

graph:LayoutGraph
 
layers:Layers
 
ldp:LayoutDataProvider

assignNodeLayer()method 
public function assignNodeLayer(g:LayoutGraph, layerMap:NodeMap, reversedEdges:EdgeList):int

Parameters

g:LayoutGraph
 
layerMap:NodeMap
 
reversedEdges:EdgeList

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

Returns
Class
getMax()method 
protected function getMax(graph:LayoutGraph, node:Node):Number

Callback used to calculate the lower (max) value of a node.

Parameters

graph:LayoutGraph
 
node:Node

Returns
Number
getMin()method 
protected function getMin(graph:LayoutGraph, node:Node):Number

Callback used to calculate the upper (min) value of a node.

Parameters

graph:LayoutGraph
 
node:Node

Returns
Number
initAsIsLayerer()method 
protected final function initAsIsLayerer():void

newAsIsLayerer()method 
public static function newAsIsLayerer():AsIsLayerer

Returns
AsIsLayerer