public interface INodeLayout
INodeLayout
encapsulates the layout information for a node.
The layout information consists of the size and position of the node.
Modifier and Type | Method and Description |
---|---|
double |
getHeight()
Gets the height of the node.
|
double |
getWidth()
Gets the width of the node.
|
double |
getX()
Gets the x-coordinate of the upper-left corner of the node.
|
double |
getY()
Gets 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.
|
double getHeight()
The height of the node is the vertical distance the node spans.
double getWidth()
The width of the node is the horizontal distance the node spans.
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.
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