|
Jazz API Documentation | |||||||||
| 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.ZLeaf
|
+--edu.umd.cs.jazz.ZVisualLeaf
ZVisualLeaf is a leaf node that has a visual component that can be rendered.
| 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 | |
ZVisualLeaf()
Constructs a new empty visual leaf node. |
|
ZVisualLeaf(ZVisualComponent newVisualComponent)
Constructs a new visual leaf node with the specified visual component. |
|
| Method Summary | |
java.lang.Object |
clone()
Duplicates the current node by using the copy constructor. |
protected void |
computeBounds()
Recomputes and caches the bounds for this node. |
void |
duplicateObject(ZVisualLeaf refNode)
Copies all object information from the reference object into the current object. |
ZVisualComponent |
getVisualComponent()
Return the visual component associated with this leaf, or null if none. |
ZBounds |
getVisualComponentBounds()
Return a copy of the bounds of this node's visual component in local coordinates. |
ZBounds |
getVisualComponentGlobalBounds()
Return a copy of the bounds of this node's visual component in global coordinates. |
boolean |
pick(java.awt.geom.Rectangle2D rect,
ZSceneGraphPath path)
Returns this node if the visual component referenced by this node is under the specified rectangle. |
void |
render(ZRenderContext renderContext)
Renders this node which results in the node's visual component getting painted. |
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 |
setVisualComponent(ZVisualComponent newVisualComponent)
Set the visual component associated with this leaf node. |
protected void |
updateVolatility()
Internal method to compute and cache the volatility of a node, to recursively call the parents to compute volatility. |
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.ZLeaf |
duplicateObject |
| Methods inherited from class edu.umd.cs.jazz.ZSceneGraphObject |
duplicateObject,
getBounds,
getVolatileBounds,
reshape,
setVolatileBounds |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ZVisualLeaf()
public ZVisualLeaf(ZVisualComponent newVisualComponent)
newVisualComponent - The new visual component that this leaf displays.| Method Detail |
public void duplicateObject(ZVisualLeaf refNode)
refNode - The reference node to copypublic java.lang.Object clone()
ZNode.updateObjectReferences(edu.umd.cs.jazz.util.ZObjectReferenceTable)public void setVisualComponent(ZVisualComponent newVisualComponent)
newVisualComponent - The new visual component for this node.public final ZVisualComponent getVisualComponent()
protected void updateVolatility()
ZSceneGraphObject.setVolatileBounds(boolean),
ZSceneGraphObject.getVolatileBounds()public void render(ZRenderContext renderContext)
The transform, clip, and composite will be set appropriately when this object is rendered. It is up to this object to restore the transform, clip, and composite of the Graphics2D if this node changes any of them. However, the color, font, and stroke are unspecified by Jazz. This object should set those things if they are used, but they do not need to be restored.
renderContext - The graphics context to use for rendering.protected void computeBounds()
public boolean pick(java.awt.geom.Rectangle2D rect,
ZSceneGraphPath path)
rect - Coordinates of pick rectangle in local coordinatesmag - The magnification of the camera being picked within.public ZBounds getVisualComponentBounds()
public ZBounds getVisualComponentGlobalBounds()
public void writeObject(ZObjectOutputStream out)
throws java.io.IOException
out - The stream that this object writes into
public void writeObjectRecurse(ZObjectOutputStream out)
throws java.io.IOException
out - The stream that this object writes into
public void setState(java.lang.String fieldType,
java.lang.String fieldName,
java.lang.Object fieldValue)
fieldType - The fully qualified type of the fieldfieldName - The name of the fieldfieldValue - The value of the field
|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||