visad.bom.annotations
Class ScreenAnnotator
- java.lang.Object
-
- visad.bom.annotations.ScreenAnnotator
-
- Direct Known Subclasses:
- ScreenAnnotatorJ3D
public abstract class ScreenAnnotator extends java.lang.ObjectTake descriptions of geometry primatives in Screen Coordinates and draw them onto a VisAD display directly. The objects should then stay on the same screen position. Enables thing like scale bars, tables, logos, etc to be independent of data manipulation tranformations.
-
-
Constructor Summary
Constructors Constructor and Description ScreenAnnotator()Default constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidadd(java.lang.Object object)Add the object to the list of items to be drawn.voidclear()Remove all items from the list of things to draw.abstract voiddraw()Traverses all the data objects in the list and transforms them into viewable objects and then arranges to make them visible.abstract voidmakeVisible(boolean on)Set the visibility flag.voidremove(java.lang.Object object)Remove the object from the list of items to be drawn.
-
-
-
Method Detail
-
makeVisible
public abstract void makeVisible(boolean on)
Set the visibility flag.- Parameters:
on-trueto display,falseto undisplay.
-
draw
public abstract void draw() throws VisADExceptionTraverses all the data objects in the list and transforms them into viewable objects and then arranges to make them visible.- Throws:
VisADException- if if any problem creating the picture.
-
add
public void add(java.lang.Object object)
Add the object to the list of items to be drawn.- Parameters:
object- add this item to the list of things to draw.
-
remove
public void remove(java.lang.Object object)
Remove the object from the list of items to be drawn.- Parameters:
object- remove this item from the list of things to draw.
-
clear
public void clear()
Remove all items from the list of things to draw. to draw.
-
-
DMelt 3.0 © DataMelt by jWork.ORG