|
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.ZTransformGroup
|
+--edu.umd.cs.jazz.ZConstraintGroup
ZConstraintGroup is a transform group node that supports the application of a simple constraint to its children. Sub-classes must override the @link{#getTransform} and @link{#getTransformField} methods of @link{ZTransformGroup} to define the new transform. This class stores a reference to a camera so, for example, a sub-class could define a constraint dependent on the camera so that the children move whenever the camera view changes.
| Field Summary | |
protected ZCamera |
camera
The camera the constraint is related to |
| 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 | |
ZConstraintGroup()
Constructs a new constraint group. |
|
ZConstraintGroup(ZCamera camera)
Constructs a new constraint group with a specified camera. |
|
ZConstraintGroup(ZCamera camera,
ZNode child)
Constructs a new constraint group with a specified camera that decorates the specified child. |
|
ZConstraintGroup(ZNode child)
Constructs a new constraint group that decorates the specified child. |
|
| Method Summary | |
java.lang.Object |
clone()
Duplicates the current node by using the copy constructor. |
java.awt.geom.AffineTransform |
computeTransform()
Computes the constraint that defines the child to not move even as the camera view changes. |
void |
duplicateObject(ZConstraintGroup refNode)
Copies all object information from the reference object into the current object. |
void |
finalize()
Disposes of this constraint group when it is no longer used. |
ZCamera |
getCamera()
Get the camera that this node is related to. |
protected void |
init(ZCamera camera)
Internal method to help node construction. |
void |
setCamera(ZCamera camera)
Set the camera that this node is related to |
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. |
protected void |
updateTransform()
Internal method to recompute the constraint transform. |
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.ZTransformGroup |
addTransformListener,
animate,
animate,
animate,
animate,
computeBounds,
computeInverseTransform,
computeScale,
concatenate,
dump,
duplicateObject,
fireTransformEvent,
getInverseTransform,
getLocalToGlobalTransform,
getMatrix,
getRotation,
getScale,
getTransform,
getTranslateX,
getTranslateY,
getTranslation,
lerp,
lerp,
pick,
position,
position,
preConcatenate,
removeTransformListener,
render,
repaint,
rotate,
rotate,
rotate,
rotate,
scale,
scale,
scale,
scale,
setRotation,
setRotation,
setRotation,
setRotation,
setScale,
setScale,
setScale,
setScale,
setTransform,
setTransform,
setTranslateX,
setTranslateY,
setTranslation,
setTranslation,
transform,
transform,
translate,
translate |
| Methods inherited from class edu.umd.cs.jazz.ZGroup |
addChild,
addGroupListener,
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,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected ZCamera camera
| Constructor Detail |
public ZConstraintGroup()
setCamera(edu.umd.cs.jazz.ZCamera)public ZConstraintGroup(ZCamera camera)
camera - The camera the node is related to.public ZConstraintGroup(ZNode child)
child - The child that should go directly below this node.
public ZConstraintGroup(ZCamera camera,
ZNode child)
camera - The camera the node is related to.child - The child that should go directly below this node.| Method Detail |
public void finalize()
protected void init(ZCamera camera)
public void duplicateObject(ZConstraintGroup refNode)
refNode - The reference node to copypublic java.lang.Object clone()
ZNode.updateObjectReferences(edu.umd.cs.jazz.util.ZObjectReferenceTable)public java.awt.geom.AffineTransform computeTransform()
protected void updateTransform()
public ZCamera getCamera()
public void setCamera(ZCamera camera)
camera - The new camera
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 | |||||||||