|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.jazz.ZSceneGraphObject | +--edu.umd.cs.jazz.ZNode | +--edu.umd.cs.jazz.ZGroup | +--edu.umd.cs.jazz.ZLayerGroup
ZLayerGroup is used exclusively to specify the portion of the scenegraph that a camera can see. It has no other function.
Warning: Serialized and ZSerialized objects of this class will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.
ZCamera
, Serialized FormFields inherited from class edu.umd.cs.jazz.ZGroup |
children, childrenFindable_DEFAULT, childrenPickable_DEFAULT, hasOneChild_DEFAULT |
Fields inherited from class edu.umd.cs.jazz.ZNode |
findable_DEFAULT, pickable_DEFAULT, savable_DEFAULT, selectable_DEFAULT |
Fields inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
bounds, listenerList, volatileBounds, volatileBounds_DEFAULT |
Constructor Summary | |
ZLayerGroup()
Constructs a new ZLayerGroup. |
|
ZLayerGroup(ZNode child)
Constructs a new layer group node with the specified node as a child of the new group. |
Method Summary | |
protected java.lang.Object |
duplicateObject()
Returns a clone of this object. |
ZCamera[] |
getCameras()
Return a copy of the array of cameras looking onto this layer. |
protected ZCamera[] |
getCamerasReference()
Internal method to return a reference to the actual cameras looking onto this layer. |
int |
getNumCameras()
Return the number of cameras of this group node. |
void |
repaint()
Repaint causes the portions of the surfaces that this object appears in to be marked as needing painting, and queues events to cause those areas to be painted. |
void |
repaint(ZBounds repaintBounds)
Method to pass repaint methods up the tree, and to any cameras looking here. |
void |
repaint(ZSceneGraphObject obj,
java.awt.geom.AffineTransform at,
ZBounds clipBounds)
Method to pass repaint methods up the tree, and to any cameras looking here. |
void |
trimToSize()
Trims the capacity of the array that stores the cameras list points to the actual number of points. |
protected void |
updateObjectReferences(ZObjectReferenceTable objRefTable)
Called to update internal object references after a clone operation by ZSceneGraphObject.clone() . |
Methods inherited from class edu.umd.cs.jazz.ZNode |
addClientProperty, addNodeListener, editor, getClientProperty, getGlobalBounds, getGlobalToLocalTransform, getLocalToGlobalTransform, getParent, getRoot, globalToLocal, globalToLocal, hasNodeListener, isAncestorOf, isDescendentOf, isFindable, isPickable, isSavable, isSelectable, localToGlobal, localToGlobal, lower, lowerTo, percolateEventUpSceneGraph, putClientProperty, raise, raiseTo, remove, reparent, replaceWith, setEditorFactory, setFindable, setParent, setPickable, setSavable, setSelectable, updateBounds, writeReplace |
Methods inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
addMouseListener, addMouseMotionListener, clone, fireEvent, fireMouseEvent, getBounds, getBoundsReference, getListenerList, hasLisenerOfType, hasMouseListener, processMouseEvent, removeEventListener, removeMouseListener, removeMouseMotionListener, reshape, setBounds, setVolatileBounds |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.umd.cs.jazz.io.ZSerializable |
setState, writeObject, writeObjectRecurse |
Constructor Detail |
public ZLayerGroup()
public ZLayerGroup(ZNode child)
child
- Child of the new group node.Method Detail |
protected java.lang.Object duplicateObject()
duplicateObject
in class ZGroup
ZSceneGraphObject.duplicateObject()
protected void updateObjectReferences(ZObjectReferenceTable objRefTable)
ZSceneGraphObject.clone()
.updateObjectReferences
in class ZNode
ZSceneGraphObject.updateObjectReferences(edu.umd.cs.jazz.util.ZObjectReferenceTable)
public void trimToSize()
trimToSize
in class ZGroup
public ZCamera[] getCameras()
protected ZCamera[] getCamerasReference()
public int getNumCameras()
public void repaint()
Scenegraph objects should call repaint when their internal state has changed and they need to be redrawn on the screen.
Important note : Scenegraph objects should call reshape() instead of repaint() if the internal state change effects the bounds of the shape in any way (e.g. changing penwidth, selection, transform, adding points to a line, etc.)
repaint
in class ZNode
ZSceneGraphObject.reshape()
public void repaint(ZBounds repaintBounds)
repaint
in class ZNode
repaintBounds
- The bounds to repaintpublic void repaint(ZSceneGraphObject obj, java.awt.geom.AffineTransform at, ZBounds clipBounds)
repaint
in class ZNode
obj
- The object to repaintat
- The affine transformclipBounds
- The bounds to clip to when repainting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |