y25.layout
Interface NodeLayout25D

All Superinterfaces:
NodeLayout
All Known Subinterfaces:
NodeRealizer25D
All Known Implementing Classes:
DummyNodeRealizer25D, ShapeNodeRealizer25D

public interface NodeLayout25D
extends NodeLayout

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

getDepth

public double getDepth()
Returns the depth of the node, which is its extent in the z-dimension.


setDepth

public void setDepth(double depth)
Sets the depth of the node, which is its extent in the z-dimension.


setSize

public void setSize(double width,
                    double height,
                    double depth)
Sets the size of the node in all three dimensions.


getRelativeBoundingBox

public BoundingBox getRelativeBoundingBox()
Returns the relative bounding box that encompasses the node.

"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.