|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides 2.5D layout information for nodes.
Additionally to all the 2D layout information that is inherited from
NodeLayout
, this interface introduces the "depth" of a node,
which is its extent in the z-dimension (as opposed to its width and height
which are its extent in the x- and y-dimension respectively).
Method Summary | |
double |
getDepth()
Returns the depth of the node, which is its extent in the z-dimension. |
BoundingBox |
getRelativeBoundingBox()
Returns the relative bounding box that encompasses the node. |
void |
setDepth(double depth)
Sets the depth of the node, which is its extent in the z-dimension. |
void |
setSize(double width,
double height,
double depth)
Sets the size of the node in all three dimensions. |
Methods inherited from interface y.layout.NodeLayout |
getHeight, getWidth, getX, getY, setLocation, setSize |
Method Detail |
public double getDepth()
public void setDepth(double depth)
public void setSize(double width, double height, double depth)
public BoundingBox getRelativeBoundingBox()
"Relative" means, that the z-position of the node is treated as the
origin. For example, if a node is located at position (x,y,z) = (4,5,80)
and has a width, height and depth of 4 then the relative bounding box is
defined by the two points bb_min = (2, 3, -2)
and
bb_max = (6, 7, 2)
. Simply put, the z-position of the
node is just irrelevant.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |