gumbo.graphic.space
Interface TranslationNode

All Superinterfaces:
Graphic, SpaceNode, TransformNode
All Known Subinterfaces:
AxisLayoutGraphic, RigidTransformNode
All Known Implementing Classes:
SwingShape, SwingSpaceNode

public interface TranslationNode
extends TransformNode

A transform node that specifically supports geometric translation. As a point the translation defines the position of the transformed space origin in the untransformed space. Equivalently, as a vector the translation specifies the absolute offset of the transformed space relative to the untransformed space.

Version:
$Revision: 1.1 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.

Method Summary
 Point3 getGraphicTranslation(Point3 retVal)
          Gets the geometric translation of this transform node.
 void setGraphicTranslation(Point3 trans)
          Sets the geometric translation of this transform node.
 
Methods inherited from interface gumbo.graphic.space.TransformNode
getGraphicTransform, isSpaceTransforming
 
Methods inherited from interface gumbo.graphic.space.SpaceNode
getGraphicSpaceTree
 
Methods inherited from interface gumbo.graphic.Graphic
getGraphic
 

Method Detail

setGraphicTranslation

public void setGraphicTranslation(Point3 trans)
Sets the geometric translation of this transform node. If the node is spatially constrained, some or all of the transformation may be ignored.

Parameters:
trans - Value of the transformation. Never null.

getGraphicTranslation

public Point3 getGraphicTranslation(Point3 retVal)
Gets the geometric translation of this transform node. If the graphic is spatially constrained, it will be reflected in the return value.

Parameters:
retVal - Return value object. The translation. Never null.
Returns:
Reference to retVal. Never null.