|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeLayout
A NodeLayout
encapsulates the layout information for a node.
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 the x-coordinate of the upper-left corner of the node. |
double |
getY()
Returns the 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 |
---|
double getX()
The location of the node is described by the coordinates of the upper-left corner of the node.
double getY()
The location of the node is described by the coordinates of the upper-left corner of the node.
double getWidth()
The width of the node is the horizontal distance the node spans.
double getHeight()
The height of the node is the vertical distance the node spans.
void setLocation(double x, double y)
x
- the new x-coordinate of the nodey
- the new y-coordinate of the nodevoid setSize(double width, double height)
width
- the new width of the nodeheight
- the new height of the node
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |