Packagecom.yworks.yfiles.layout
Interfacepublic interface GraphLayout
Implementors DefaultGraphLayout, LayoutGraph, LayoutGraphAdapter

This interface defines the layout information of a graph.



Public Methods
 MethodDefined By
  
Returns the bounding box of the graph layout.
GraphLayout
  
getEdgeLabelLayout(edge:Object):Vector.<Object>
Returns an array of layout information for all edge labels belonging to the given edge.
GraphLayout
  
Returns the layout information for a given edge.
GraphLayout
  
getNodeLabelLayout(node:Object):Vector.<Object>
Returns an array of layout information for all node labels belonging to the given node.
GraphLayout
  
Returns the layout information for a given node.
GraphLayout
Method Detail
getBoundingBox()method
public function getBoundingBox():Rectangle

Returns the bounding box of the graph layout. That is the smallest rectangular area that contains all defined layout elements. If there are no elements in this graph layout, the resulting rectangle will have negative width and height.

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

Returns an array of layout information for all edge labels belonging to the given edge.

Parameters

edge:Object

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

Returns the layout information for a given edge.

Parameters

edge:Object

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

Returns an array of layout information for all node labels belonging to the given node.

Parameters

node:Object

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

Returns the layout information for a given node.

Parameters

node:Object

Returns
NodeLayout