manifold.base
Class Glyph

java.lang.Object
  |
  +--manifold.base.Glyph
Direct Known Subclasses:
FGlyph

public abstract class Glyph
extends java.lang.Object

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

Since:
manifold %Version%
Version:
%Revision%

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

TRANSFORM

public static final java.lang.String TRANSFORM
The transform property identifier

See Also:
Constant Field Values

model_

protected org.w3c.dom.Element model_
The model data element corresponding to this Glyph.


viewer_

protected Viewer viewer_
The viewer where this Glyph is rendered.


visible_

protected boolean visible_
Variable telling if this glyph is visible or not.

Constructor Detail

Glyph

public Glyph()
Method Detail

setModel

public void setModel(org.w3c.dom.Element model)
Sets the model of the glyph.

Parameters:
model - the model

getModel

public org.w3c.dom.Element getModel()
Gets the model of this glyph.

Returns:
the model

setViewer

public void setViewer(Viewer viewer)
Sets the parent viewer of this glyph.

Parameters:
viewer - the viewer

getViewer

public Viewer getViewer()
Gets the parent viewer of this glyph.

Returns:
the viewer

isVisible

public boolean isVisible()
Determines whether this view is to be shown on the screen.

Returns:
true if glyph is visible, else false

setVisible

public void setVisible(boolean visible)
Sets the visible flag of this glyph.

Parameters:
visible - true if glyph is to be visible, else false

traverse

public abstract void traverse(Traversal t)
Support for traversal of the scenegraph.

Parameters:
t - keeps the state of the traversal

draw

public abstract void draw(Traversal t)
Method which draws the glyph in a viewer. Called upon a draw traversal of the scenegraph.

Parameters:
t - keeps the state of the traversal

pick

public abstract void pick(Traversal t)
Method for determining of a glyph is picked. Called upon a pick traversal of the scenegraph.

Parameters:
t - keeps the state of the traversal


Copyright (c) 2003 Rutgers, The State University of New Jersey