|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--edu.umd.cs.jazz.scenegraph.ZVisualComponent
|
+--edu.umd.cs.jazz.scenegraph.ZVisualComponentDecorator
|
+--edu.umd.cs.jazz.scenegraph.ZSelectionDecorator
ZSelectionDecorator is a ZVisualComponent decorator that indicates that this component chain is selected. It shows it is selected by surrounding its children with a 1 pixel wide line. Note: ZSelectionDecorator should be top in the Visual Component chain OR any VC's above it should override the default select method in ZVisualComponent.
ZVisualComponentDecorator| Field Summary | |
protected ZCamera |
camera
The camera the component is selected within |
protected java.awt.Color |
penColor
Pen color of the selection rectangle |
| Fields inherited from class edu.umd.cs.jazz.scenegraph.ZVisualComponentDecorator |
child |
| Fields inherited from class edu.umd.cs.jazz.scenegraph.ZVisualComponent |
cacheVolatile,
findable,
findable_DEFAULT,
isVolatile,
localBounds,
localBoundsDirty,
parent,
pickable,
pickable_DEFAULT,
selected |
| Constructor Summary | |
ZSelectionDecorator()
Constructs a new ZSelectionDecorator. |
|
ZSelectionDecorator(ZCamera camera)
Constructs a new ZSelectionDecorator. |
|
| Method Summary | |
protected void |
computeLocalBounds()
|
protected float |
computeMag()
Internal method to compute magnification of selected component. |
ZCamera |
getCamera()
Get the camera that is used to calculate the thickness of the selection visual. |
java.awt.Color |
getPenColor()
Get the pen color of the selection visual |
void |
paint(ZRenderContext renderContext)
Paints the selected object and then paints the selection indicator on top of the child. |
void |
select(ZVisualComponent vc)
Select the specified child visual component by inserting this as a selection decorator. |
void |
setCamera(ZCamera camera)
Specify the camera that is used to calculate the thickness of the selection visual. |
void |
setPenColor(java.awt.Color color)
Specify the pen color of the selection visual |
void |
unselect()
Unselect the visual component under this selection decorator by removing this. |
ZSerializable |
writeReplace()
Selection should not be saved - thus if this decorator is saved, it just skips over itself, and saves the child instead. |
| Methods inherited from class edu.umd.cs.jazz.scenegraph.ZVisualComponentDecorator |
clone,
getChild,
insertAbove,
pick,
remove,
setChild,
setState,
setVisualComponent,
toString,
writeObject,
writeObjectRecurse |
| Methods inherited from class edu.umd.cs.jazz.scenegraph.ZVisualComponent |
damage,
damage,
findNode,
findVisualComponent,
getLocalBounds,
getParent,
isFindable,
isPickable,
isSelected,
isVolatile,
pickBounds,
select,
select,
setFindable,
setParent,
setPickable,
setSelected,
setVolatile,
updateBounds,
updateChildBounds,
updateLocalBounds,
updateVolatility |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected java.awt.Color penColor
protected ZCamera camera
| Constructor Detail |
public ZSelectionDecorator()
setCamera(edu.umd.cs.jazz.scenegraph.ZCamera)public ZSelectionDecorator(ZCamera camera)
camera - The primary camera the object is being selected within. Used to compute selection rectangle thickness| Method Detail |
public void select(ZVisualComponent vc)
public void unselect()
public java.awt.Color getPenColor()
public void setPenColor(java.awt.Color color)
color - The new pen colorpublic ZCamera getCamera()
public void setCamera(ZCamera camera)
camera - The new camerapublic void paint(ZRenderContext renderContext)
g2 - The graphics context to paint into.protected void computeLocalBounds()
protected float computeMag()
public ZSerializable writeReplace()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||