Packagecom.yworks.yfiles.layout
Interfacepublic interface NodeLayout
Implementors DefaultNodeLayout

This interface describes the layout information for a node in the drawing of a graph. The layout information consists of the size and position of the node.



Public Properties
 PropertyDefined By
  height : Number
[read-only] Returns the height of the node.
NodeLayout
  width : Number
[read-only] Returns the width of the node.
NodeLayout
  x : Number
[read-only] Returns X-Coordinate of the upper left corner of the node.
NodeLayout
  y : Number
[read-only] Returns Y-Coordinate of the upper left corner of the node.
NodeLayout
Public Methods
 MethodDefined By
  
setLocation(x:Number, y:Number):void
Sets the coordinates of the upper left corner of the node.
NodeLayout
  
setSize(width:Number, height:Number):void
Sets the size of the node.
NodeLayout
Property Detail
heightproperty
height:Number  [read-only]

Returns the height of the node.


Implementation
    public function get height():Number
widthproperty 
width:Number  [read-only]

Returns the width of the node.


Implementation
    public function get width():Number
xproperty 
x:Number  [read-only]

Returns X-Coordinate of the upper left corner of the node.


Implementation
    public function get x():Number
yproperty 
y:Number  [read-only]

Returns Y-Coordinate of the upper left corner of the node.


Implementation
    public function get y():Number
Method Detail
setLocation()method
public function setLocation(x:Number, y:Number):void

Sets the coordinates of the upper left corner of the node.

Parameters

x:Number — the x-coordinates of the upper left corner.
 
y:Number — the y-coordinates of the upper left corner.

setSize()method 
public function setSize(width:Number, height:Number):void

Sets the size of the node.

Parameters

width:Number — the width of the node.
 
height:Number — the height of the node.