|
|||||||||
| 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.ZDummyVisualComponent
ZDummyVisualComponent is the default Visual Component to all ZNodes. It serves as a placeholder until a ZNode has a real visual component. Using ZDummyVisualComponent allows us to 'decouple` ZNodes and Visual Components because a ZNode need not check if it contains a Visual Component before performing some operation on it (i.e. pick, paint, etc). There will always be a Visual Component (even if it's only a Dummy that does nothing). Also, the ZDummyVisualComponent is a singleton type object. Do not call the constructor directly. Use the getInstance method
| Field Summary | |
protected static ZDummyVisualComponent |
instance
Hang onto the one and only instance allowed to be created. |
| Fields inherited from class edu.umd.cs.jazz.scenegraph.ZVisualComponent |
cacheVolatile,
findable,
findable_DEFAULT,
isVolatile,
localBounds,
localBoundsDirty,
parent,
pickable,
pickable_DEFAULT,
selected |
| Constructor Summary | |
ZDummyVisualComponent()
Do not call this method directly. |
|
| Method Summary | |
void |
damage()
always a noop |
ZNode |
findNode()
|
java.lang.Object |
getAppData()
Always returns false |
static ZDummyVisualComponent |
getInstance()
Returns the one and only ZDummyVisualComponent |
ZBounds |
getLocalBounds()
always a noop |
float |
getMaxMag()
always return 0 |
float |
getMinMag()
always returns 0 |
ZScenegraphObject |
getParent()
always return null |
boolean |
isPickable()
always return false |
boolean |
isSelected()
always return false |
boolean |
isVolatile()
Always returns false |
void |
paint(ZRenderContext renderContext)
always a noop |
boolean |
pick(java.awt.geom.Point2D pt)
always a noop |
void |
select(ZCamera camera)
always a noop |
void |
setAppData(java.lang.Object data)
Always a noop |
void |
setMaxMag(float maxMag)
always a noop |
void |
setMinMag(float minMag)
always a noop |
void |
setParent(ZScenegraphObject parent)
always a noop |
void |
setPickable(boolean pickable)
always a noop |
void |
setSelected(boolean b)
always a noop |
void |
setVisualComponent(ZVisualComponent child)
always a noop |
void |
setVolatile(boolean v)
Always a noop |
void |
unselect()
always a noop |
void |
updateBounds()
always a noop |
void |
updateChildBounds()
always a noop |
void |
updateLocalBounds()
always a noop |
| Methods inherited from class edu.umd.cs.jazz.scenegraph.ZVisualComponent |
clone,
computeLocalBounds,
damage,
findVisualComponent,
isFindable,
pick,
pickBounds,
select,
setFindable,
setSelected,
setState,
toString,
updateVolatility,
writeObject,
writeObjectRecurse |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected static ZDummyVisualComponent instance
| Constructor Detail |
public ZDummyVisualComponent()
throws ZOperationNotAllowedException
getInstance()| Method Detail |
public static ZDummyVisualComponent getInstance()
public ZNode findNode()
public boolean isVolatile()
public void setVolatile(boolean v)
v - public java.lang.Object getAppData()
public void setAppData(java.lang.Object data)
data - public float getMinMag()
public void setMinMag(float minMag)
minMag - public float getMaxMag()
public void setMaxMag(float maxMag)
maxMag - public boolean isSelected()
public void setSelected(boolean b)
b - public ZScenegraphObject getParent()
public void setParent(ZScenegraphObject parent)
parent - public boolean isPickable()
public void setPickable(boolean pickable)
pickable - public void select(ZCamera camera)
public void unselect()
public void paint(ZRenderContext renderContext)
g2 - public void damage()
public void updateBounds()
public void updateChildBounds()
public void updateLocalBounds()
public ZBounds getLocalBounds()
public boolean pick(java.awt.geom.Point2D pt)
pt - public void setVisualComponent(ZVisualComponent child)
child -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||