edu.umd.cs.jazz.scenegraph
Class ZRootNode
java.lang.Object
|
+--edu.umd.cs.jazz.scenegraph.ZNode
|
+--edu.umd.cs.jazz.scenegraph.ZRootNode
- public class ZRootNode
- extends ZNode
ZRootNode exteneds ZNode overiding several methods of ZNode to ensure that ZRootNode is
always in the root position of a Scenegraph.
| Fields inherited from class edu.umd.cs.jazz.scenegraph.ZNode |
alpha,
alpha_DEFAULT,
cacheVolatile,
cameras,
children,
compBoundsDirty,
compBoundsDirty_DEFAULT,
globalBounds,
globalBoundsDirty,
globalBoundsDirty_DEFAULT,
globalCompBounds,
hidden,
hidden_DEFAULT,
isVolatile,
maxMag,
maxMag_DEFAULT,
minMag,
minMag_DEFAULT,
parent,
properties,
save,
save_DEFAULT,
transform,
visualComponent |
|
Method Summary |
java.awt.geom.AffineTransform |
computeGlobalCoordinateFrame()
Overrides ZNode.computeGlobalCoordinateFrame() to end the traversal. |
ZRootNode |
findRoot()
Overrides ZNode.findRoot() to end the traversal. |
protected void |
lowerInternal()
Overrides ZNode.lowerInternal() to throw an ZOperationNotAllowedException if an
attempt to lower the ZRootNode is made. |
protected void |
lowerToInternal(ZNode afterNode)
Overrides ZNode.raiseInternal() to throw an ZOperationNotAllowedException if an
attempt to lower the ZRootNode is made. |
protected void |
raiseInternal()
Overrides ZNode.raiseInternal() to throw an ZOperationNotAllowedException if an
attempt to raise the ZRootNode is made. |
protected void |
raiseToInternal(ZNode afterNode)
Overrides ZNode.raiseInternal() to throw an ZOperationNotAllowedException if an
attempt to raise the ZRootNode is made. |
protected void |
setParent(ZNode parent)
Overrides ZNode.setParent() to throw an ZOperationNotAllowedException if an
attempt to set the parent of a ZRootNode is made. |
| Methods inherited from class edu.umd.cs.jazz.scenegraph.ZNode |
addChild,
addProperty,
addProperty,
clearVisualComponent,
clone,
computeGlobalBounds,
computeGlobalCompBounds,
createComposite,
damage,
damage,
findAllCameras,
findCameras,
findNode,
findNodes,
findVisualComponent,
getAlpha,
getCameras,
getChildren,
getCompBounds,
getGlobalBounds,
getGlobalCompBounds,
getHidden,
getMaxMag,
getMinMag,
getObjs,
getParent,
getProperties,
getProperty,
getSave,
getSelectedChildren,
getTransform,
getVisualComponent,
helpFindAllCameras,
isAncestor,
isDescendent,
isHidden,
isVolatile,
lower,
lower,
lowerTo,
paint,
pick,
raise,
raise,
raiseTo,
removeChild,
reparent,
selectAll,
setAlpha,
setHidden,
setMaxMag,
setMinMag,
setSave,
setState,
setTransform,
setVisualComponent,
setVolatile,
swap,
unselectAll,
updateBounds,
updateChildBounds,
updateGlobalBounds,
updateGlobalCompBounds,
updateVolatility,
writeObject,
writeObjectRecurse,
writeReplace |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ZRootNode
public ZRootNode()
findRoot
public ZRootNode findRoot()
- Overrides ZNode.findRoot() to end the traversal. Finds the
scenegraph root by returning this object.
- Returns:
- The root node of this scenegraph.
- Overrides:
- findRoot in class ZNode
setParent
protected void setParent(ZNode parent)
throws ZOperationNotAllowedException
- Overrides ZNode.setParent() to throw an ZOperationNotAllowedException if an
attempt to set the parent of a ZRootNode is made.
- Parameters:
parent - parameter is not used.- Overrides:
- setParent in class ZNode
raiseInternal
protected void raiseInternal()
throws ZOperationNotAllowedException
- Overrides ZNode.raiseInternal() to throw an ZOperationNotAllowedException if an
attempt to raise the ZRootNode is made.
- Overrides:
- raiseInternal in class ZNode
raiseToInternal
protected void raiseToInternal(ZNode afterNode)
throws ZOperationNotAllowedException
- Overrides ZNode.raiseInternal() to throw an ZOperationNotAllowedException if an
attempt to raise the ZRootNode is made.
- Parameters:
afterNode - parameter is not used.- Overrides:
- raiseToInternal in class ZNode
lowerInternal
protected void lowerInternal()
throws ZOperationNotAllowedException
- Overrides ZNode.lowerInternal() to throw an ZOperationNotAllowedException if an
attempt to lower the ZRootNode is made.
- Overrides:
- lowerInternal in class ZNode
lowerToInternal
protected void lowerToInternal(ZNode afterNode)
throws ZOperationNotAllowedException
- Overrides ZNode.raiseInternal() to throw an ZOperationNotAllowedException if an
attempt to lower the ZRootNode is made.
- Parameters:
afterNode - parameter is not used.- Overrides:
- lowerToInternal in class ZNode
computeGlobalCoordinateFrame
public java.awt.geom.AffineTransform computeGlobalCoordinateFrame()
- Overrides ZNode.computeGlobalCoordinateFrame() to end the traversal. Builds the
concatenation of transforms that exist between this node and the
rootNode. In the case of the rootNode, this is just the identity transform.
- Returns:
- A new identity transform.
- Overrides:
- computeGlobalCoordinateFrame in class ZNode