|
||||||||||
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.ZClipGroup
ZClipGroup applies a clip to the current ZRenderContext before rendering its children. This clip is specified by a ZShape. The clip can optionaly be set to visible. This means that the ZShape used to specify the clip will be drawn before the ZClipGroup's children are drawn. This has the effect of giving the clip a background. The clip can also be optionaly set to pickable.
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.
Field Summary | |
protected ZShape |
clip
|
protected boolean |
isClipPickable
|
protected boolean |
isClipVisible
|
Fields 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 | |
ZClipGroup()
ZClipGroup constructor comment. |
|
ZClipGroup(ZNode child)
ZClipGroup constructor comment. |
Method Summary | |
protected void |
computeBounds()
Recomputes and caches the bounds for this node. |
protected java.lang.Object |
duplicateObject()
Returns a clone of this object. |
ZShape |
getClip()
ZClipGroup constructor comment. |
boolean |
isClipPickable()
Used to query if the clip is pickable or not. |
boolean |
isClipVisible()
Used to query if the clip is visible or not. |
boolean |
pick(java.awt.geom.Rectangle2D rect,
ZSceneGraphPath path)
Pick is overiden so that we can take the clip into consideration when picking. |
void |
render(ZRenderContext renderContext)
ZClipGroup constructor comment. |
void |
setClip(ZShape aClip)
Set the current clip to a ZShape. |
void |
setClipPickable(boolean aBoolean)
If the clip is set to pickable, then if we fail to pick any children we next see if we can pick the ZShape that defines the clip. |
void |
setClipVisible(boolean aBoolean)
If a the clip is set to visible then then ZShape used to define the clip will be drawn after the clip has been applied to the ZRenderContext, but before the children have been drawn. |
void |
setState(java.lang.String fieldType,
java.lang.String fieldName,
java.lang.Object fieldValue)
Set some state of this object as it gets read back in. |
void |
writeObject(ZObjectOutputStream out)
Write out all of this object's state. |
void |
writeObjectRecurse(ZObjectOutputStream out)
Specify which objects this object references in order to write out the scenegraph properly |
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, repaint, repaint, repaint, reparent, replaceWith, setEditorFactory, setFindable, setParent, setPickable, setSavable, setSelectable, updateBounds, updateObjectReferences, 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 |
Field Detail |
protected ZShape clip
protected boolean isClipVisible
protected boolean isClipPickable
Constructor Detail |
public ZClipGroup()
public ZClipGroup(ZNode child)
child
- edu.umd.cs.jazz.ZNodeMethod Detail |
public boolean isClipVisible()
public void setClipVisible(boolean aBoolean)
public boolean isClipPickable()
public void setClipPickable(boolean aBoolean)
protected void computeBounds()
ZGroup
computeBounds
in class ZGroup
public ZShape getClip()
child
- edu.umd.cs.jazz.ZNodeprotected java.lang.Object duplicateObject()
duplicateObject
in class ZGroup
ZSceneGraphObject.duplicateObject()
public boolean pick(java.awt.geom.Rectangle2D rect, ZSceneGraphPath path)
pick
in class ZGroup
edu.umd.cs.jazz.ZGroup
rect
- Coordinates of pick rectangle in local coordinatespath
- The path through the scenegraph to the picked node. Modified by this call.ZDrawingSurface.pick(int, int)
public void render(ZRenderContext renderContext)
render
in class ZGroup
child
- edu.umd.cs.jazz.ZNodepublic void setClip(ZShape aClip)
public void setState(java.lang.String fieldType, java.lang.String fieldName, java.lang.Object fieldValue)
setState
in class ZGroup
fieldType
- The fully qualified type of the fieldfieldName
- The name of the fieldfieldValue
- The value of the fieldpublic void writeObject(ZObjectOutputStream out) throws java.io.IOException
writeObject
in class ZGroup
out
- The stream that this object writes intopublic void writeObjectRecurse(ZObjectOutputStream out) throws java.io.IOException
writeObjectRecurse
in class ZGroup
out
- The stream that this object writes into
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |