Jazz API Documentation

edu.umd.cs.jazz
Class ZLeaf

java.lang.Object
  |
  +--edu.umd.cs.jazz.ZSceneGraphObject
        |
        +--edu.umd.cs.jazz.ZNode
              |
              +--edu.umd.cs.jazz.ZLeaf
All Implemented Interfaces:
java.io.Serializable, ZSerializable
Direct Known Subclasses:
ZVisualLeaf

public class ZLeaf
extends ZNode
implements ZSerializable, java.io.Serializable

ZLeaf is a basic leaf node that doesn't have any children.

See Also:
Serialized Form

Fields inherited from class edu.umd.cs.jazz.ZNode
findable_DEFAULT, listenerList, pickable_DEFAULT, savable_DEFAULT
 
Fields inherited from class edu.umd.cs.jazz.ZSceneGraphObject
bounds, objRefTable, volatileBounds_DEFAULT
 
Constructor Summary
ZLeaf()
          Constructs a new empty leaf node.
 
Method Summary
 java.lang.Object clone()
          Duplicates the current node by using the copy constructor.
 void duplicateObject(ZLeaf refNode)
          Copies all object information from the reference object into the current object.
 
Methods inherited from class edu.umd.cs.jazz.ZNode
addClientProperty, addMouseListener, addMouseMotionListener, dump, duplicateObject, editor, fireMouseEvent, getClientProperty, getGlobalBounds, getGlobalToLocalTransform, getLocalToGlobalTransform, getParent, getRoot, globalToLocal, globalToLocal, hasMouseListener, isAncestorOf, isDescendentOf, isFindable, isPickable, isSavable, localToGlobal, localToGlobal, lower, lowerTo, pick, putClientProperty, raise, raiseTo, removeMouseListener, removeMouseMotionListener, render, repaint, repaint, reparent, replaceWith, setEditorFactory, setFindable, setParent, setPickable, setSavable, setState, trimToSize, updateBounds, updateObjectReferences, updateVolatility, writeObject, writeObjectRecurse, writeReplace
 
Methods inherited from class edu.umd.cs.jazz.ZSceneGraphObject
computeBounds, duplicateObject, getBounds, getVolatileBounds, reshape, setVolatileBounds
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZLeaf

public ZLeaf()
Constructs a new empty leaf node.
Method Detail

duplicateObject

public void duplicateObject(ZLeaf refNode)
Copies all object information from the reference object into the current object. This method is called from the clone method. All ZSceneGraphObjects objects contained by the object being duplicated are duplicated, except parents which are set to null. This results in the sub-tree rooted at this object being duplicated.
Parameters:
refNode - The reference node to copy

clone

public java.lang.Object clone()
Duplicates the current node by using the copy constructor. The portion of the reference node that is duplicated is that necessary to reuse the node in a new place within the scenegraph, but the new node is not inserted into any scenegraph. The node must be attached to a live scenegraph (a scenegraph that is currently visible) or be registered with a camera directly in order for it to be visible.
Overrides:
clone in class ZNode
Returns:
A copy of this node.
See Also:
ZNode.updateObjectReferences(edu.umd.cs.jazz.util.ZObjectReferenceTable)

Jazz API Documentation