Packagecom.yworks.yfiles.layout
Classpublic class DefaultGraphLayout
InheritanceDefaultGraphLayout Inheritance YObject Inheritance Object
Implements GraphLayout

This class is a default implementation of the simple GraphLayout interface.



Public Methods
 MethodDefined By
  
DefaultGraphLayout(init:Boolean = true)
DefaultGraphLayout
 Inherited
equals(o:Object):Boolean
YObject
  
Returns the bounding box of this graph layout This is the smallest rectangle containing the entire layout.
DefaultGraphLayout
  
getClass():Class
[override]
DefaultGraphLayout
  
getEdgeLabelLayout(edge:Object):Vector.<Object>
Returns the edge label layouts associated with the given edge.
DefaultGraphLayout
  
Returns the layout information associated with the given edge object.
DefaultGraphLayout
  
getNodeLabelLayout(node:Object):Vector.<Object>
Returns the node label layouts associated with the given node.
DefaultGraphLayout
  
Returns the layout information associated with the given node object.
DefaultGraphLayout
 Inherited
hashCode():int
YObject
  
[static]
DefaultGraphLayout
  
setEdgeLabelLayout(edge:Object, layout:Vector.<Object>):void
Sets the edge label layouts associated with the given edge.
DefaultGraphLayout
  
setEdgeLayout(edge:Object, layout:EdgeLayout):void
Sets the layout information associated with the given edge object.
DefaultGraphLayout
  
setNodeLabelLayout(node:Object, layout:Vector.<Object>):void
Sets the node label layouts associated with the given node.
DefaultGraphLayout
  
setNodeLayout(node:Object, layout:NodeLayout):void
Sets the layout information associated with the given node object.
DefaultGraphLayout
Protected Methods
 MethodDefined By
  
Initializes this object.
DefaultGraphLayout
Constructor Detail
DefaultGraphLayout()Constructor
public function DefaultGraphLayout(init:Boolean = true)

Parameters
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.
Method Detail
getBoundingBox()method
public function getBoundingBox():Rectangle

Returns the bounding box of this graph layout This is the smallest rectangle containing the entire layout. If the layout does not contain any node layout information (and therefore no edge layout information either), the bounding box will have negative width and/or height.

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

Returns
Class
getEdgeLabelLayout()method 
public function getEdgeLabelLayout(edge:Object):Vector.<Object>

Returns the edge label layouts associated with the given edge.

Parameters

edge:Object

Returns
Vector.<Object>
getEdgeLayout()method 
public function getEdgeLayout(edge:Object):EdgeLayout

Returns the layout information associated with the given edge object.

Parameters

edge:Object

Returns
EdgeLayout
getNodeLabelLayout()method 
public function getNodeLabelLayout(node:Object):Vector.<Object>

Returns the node label layouts associated with the given node.

Parameters

node:Object

Returns
Vector.<Object>
getNodeLayout()method 
public function getNodeLayout(node:Object):NodeLayout

Returns the layout information associated with the given node object.

Parameters

node:Object

Returns
NodeLayout
initDefaultGraphLayout()method 
protected final function initDefaultGraphLayout():void

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

See also

newDefaultGraphLayout()method 
public static function newDefaultGraphLayout():DefaultGraphLayout

Returns
DefaultGraphLayout
setEdgeLabelLayout()method 
public function setEdgeLabelLayout(edge:Object, layout:Vector.<Object>):void

Sets the edge label layouts associated with the given edge.

Parameters

edge:Object
 
layout:Vector.<Object>

setEdgeLayout()method 
public function setEdgeLayout(edge:Object, layout:EdgeLayout):void

Sets the layout information associated with the given edge object.

Parameters

edge:Object
 
layout:EdgeLayout

setNodeLabelLayout()method 
public function setNodeLabelLayout(node:Object, layout:Vector.<Object>):void

Sets the node label layouts associated with the given node.

Parameters

node:Object
 
layout:Vector.<Object>

setNodeLayout()method 
public function setNodeLayout(node:Object, layout:NodeLayout):void

Sets the layout information associated with the given node object.

Parameters

node:Object
 
layout:NodeLayout