Search this API

y.layout
Interface NodeLayout

All Known Implementing Classes:
DefaultNodeLayout, GenericGroupNodeRealizer, GenericNodeRealizer, Graph2DNodeRealizer, GroupNodeRealizer, ImageNodeRealizer, NodeRealizer, ProxyAutoBoundsNodeRealizer, ProxyShapeNodeRealizer, ShapeNodeRealizer, TableGroupNodeRealizer

public interface NodeLayout

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.


Method Summary
 double getHeight()
          Returns the height of the node.
 double getWidth()
          Returns the width of the node.
 double getX()
          Returns X-Coordinate of the upper left corner of the node.
 double getY()
          Returns Y-Coordinate of the upper left corner of the node.
 void setLocation(double x, double y)
          Sets the coordinates of the upper left corner of the node.
 void setSize(double width, double height)
          Sets the size of the node.
 

Method Detail

getX

double getX()
Returns X-Coordinate of the upper left corner of the node.


getY

double getY()
Returns Y-Coordinate of the upper left corner of the node.


getWidth

double getWidth()
Returns the width of the node.


getHeight

double getHeight()
Returns the height of the node.


setLocation

void setLocation(double x,
                 double y)
Sets the coordinates of the upper left corner of the node.

Parameters:
x - the x-coordinates of the upper left corner.
y - the y-coordinates of the upper left corner.

setSize

void setSize(double width,
             double height)
Sets the size of the node.

Parameters:
width - the width of the node.
height - the height of the node.

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.