|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--manifold.base.Glyph
This is a Glyph (view) corresponding to a model data element. It subscribes to the model and listens to the important state changes.
Copyright (c) 2000 Rutgers, The State University of New Jersey
| Field Summary | |
protected org.w3c.dom.Element |
model_
The model data element corresponding to this Glyph. |
static java.lang.String |
TRANSFORM
The transform property identifier |
protected Viewer |
viewer_
The viewer where this Glyph is rendered. |
protected boolean |
visible_
Variable telling if this glyph is visible or not. |
| Constructor Summary | |
Glyph()
|
|
| Method Summary | |
abstract void |
draw(Traversal t)
Method which draws the glyph in a viewer. |
org.w3c.dom.Element |
getModel()
Gets the model of this glyph. |
Viewer |
getViewer()
Gets the parent viewer of this glyph. |
boolean |
isVisible()
Determines whether this view is to be shown on the screen. |
abstract void |
pick(Traversal t)
Method for determining of a glyph is picked. |
void |
setModel(org.w3c.dom.Element model)
Sets the model of the glyph. |
void |
setViewer(Viewer viewer)
Sets the parent viewer of this glyph. |
void |
setVisible(boolean visible)
Sets the visible flag of this glyph. |
abstract void |
traverse(Traversal t)
Support for traversal of the scenegraph. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String TRANSFORM
protected org.w3c.dom.Element model_
protected Viewer viewer_
protected boolean visible_
| Constructor Detail |
public Glyph()
| Method Detail |
public void setModel(org.w3c.dom.Element model)
model - the modelpublic org.w3c.dom.Element getModel()
public void setViewer(Viewer viewer)
viewer - the viewerpublic Viewer getViewer()
public boolean isVisible()
public void setVisible(boolean visible)
visible - true if glyph is to be visible, else falsepublic abstract void traverse(Traversal t)
t - keeps the state of the traversalpublic abstract void draw(Traversal t)
t - keeps the state of the traversalpublic abstract void pick(Traversal t)
t - keeps the state of the traversal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||