|
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.ZGroup
|
+--edu.umd.cs.jazz.ZFadeGroup
ZFadeGroup is a group node that has control over transparency of itself (and sub-tree), and its minimum and maximum magnification.
| Field Summary | |
static float |
alpha_DEFAULT
|
static float |
maxMag_DEFAULT
|
static float |
minMag_DEFAULT
|
| Fields inherited from class edu.umd.cs.jazz.ZGroup |
childrenFindable_DEFAULT,
childrenPickable_DEFAULT,
hasOneChild_DEFAULT |
| 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 | |
ZFadeGroup()
Constructs a new empty fade group node. |
|
ZFadeGroup(ZNode child)
Constructs a new fade group node with the specified node as a child of the new group. |
|
| Method Summary | |
java.lang.Object |
clone()
Duplicates the current node by using the copy constructor. |
void |
duplicateObject(ZFadeGroup refNode)
Copies all object information from the reference object into the current object. |
float |
getAlpha()
Set the alpha value (opacity) for this node. |
protected java.awt.Composite |
getComposite(java.awt.Composite currentComposite,
float currentMag)
Internal method to compute and access an alpha Composite given the current rendering composite, and the current magnification. |
float |
getMaxMag()
Get the maximum magnification for this node. |
float |
getMinMag()
Get the minimumn magnification for this node. |
boolean |
isVisible(float mag)
Determines if this fade node is visible at the specified magnification. |
boolean |
pick(java.awt.geom.Rectangle2D rect,
ZSceneGraphPath path)
Returns the first object under the specified rectangle (if there is one) in the subtree rooted with this as searched in reverse (front-to-back) order. |
void |
render(ZRenderContext renderContext)
Renders this node which results in the node's visual component getting rendered, followed by its children getting rendered. |
void |
setAlpha(float alpha)
Set the alpha value (opacity) for this node. |
void |
setMaxMag(float maxMag)
Set the maximumn magnification for this node. |
void |
setMinMag(float minMag)
Set the minimumn magnification for this node. |
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.ZGroup |
addChild,
addGroupListener,
computeBounds,
dump,
duplicateObject,
fireGroupEvent,
getChild,
getChildren,
getChildrenFindable,
getChildrenIterator,
getChildrenPickable,
getNumChildren,
hasOneChild,
indexOf,
insertAbove,
lower,
lowerTo,
raise,
raiseTo,
remove,
removeChild,
removeGroupListener,
setChildrenFindable,
setChildrenPickable,
setHasOneChild,
trimToSize,
updateVolatility |
| 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 |
| Field Detail |
public static final float alpha_DEFAULT
public static final float minMag_DEFAULT
public static final float maxMag_DEFAULT
| Constructor Detail |
public ZFadeGroup()
public ZFadeGroup(ZNode child)
child - Child of the new group node.| Method Detail |
public void duplicateObject(ZFadeGroup refNode)
refNode - The reference node to copypublic java.lang.Object clone()
In particular, the visual component associated with this group gets duplicated along with the subtree.
ZNode.updateObjectReferences(edu.umd.cs.jazz.util.ZObjectReferenceTable)public float getAlpha()
public void setAlpha(float alpha)
alpha - The new alpha value for this node.public float getMinMag()
public void setMinMag(float minMag)
minMag - The new minimumn magnification for this node.public float getMaxMag()
public void setMaxMag(float maxMag)
maxMag - The new maximumn magnification for this node.public boolean isVisible(float mag)
mag - The magnification to check at
protected java.awt.Composite getComposite(java.awt.Composite currentComposite,
float currentMag)
currentComposite - The composite in the current render contextcurrentMag - The magnification of the current rendering camerapublic 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.
public boolean pick(java.awt.geom.Rectangle2D rect,
ZSceneGraphPath path)
If childrenPickable is false, then this will never return a child as the picked node. Instead, this node will be returned if any children are picked, or if this node's visual component is picked. Else, it will return null.
rect - Coordinates of pick rectangle in local coordinatesmag - The magnification of the camera being picked within.
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 | |||||||||