|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.DataRenderer
visad.java2d.RendererJ2D
public abstract class RendererJ2D
RendererJ2D is the VisAD abstract super-class for graphics rendering algorithms under Java2D. These transform Data objects into 2-D depictions in a Display window.
RendererJ2D is not Serializable and should not be copied between JVMs.
| Field Summary |
|---|
| Fields inherited from class visad.DataRenderer |
|---|
enabled, pickCrawlToCursor |
| Constructor Summary | |
|---|---|
RendererJ2D()
|
|
| Method Summary | |
|---|---|
void |
clearBranch()
clear part of Display scene graph generated by this DataRenderer |
void |
clearScene()
clear any scene graph created by this DataRenderer, and clear all instance variables |
boolean |
doAction()
re-transform if needed; return false if not done |
abstract VisADGroup |
doTransform()
create a VisADGroup scene graph for Data in links; this can put Behavior objects in the scene graph for DataRenderer classes that implement direct manipulation widgets; may reduce work by only changing scene graph for Data and Controls that have changed: 1. use boolean[] changed to determine which Data objects have changed 2. if Data has not changed, then use Control.checkTicks loop like in prepareAction to determine which Control-s have changed |
ShadowType |
makeShadowFunctionType(FunctionType type,
DataDisplayLink link,
ShadowType parent)
factory method for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowFunctionType; ShadowType trees are constructed that 'shadow' the MathType trees of Data to be depicted, via recursive calls to buildShadowType() methods of MathType sub-classes, to DataRenderer.makeShadow*Type() methods, to Shadow*Type constructors, then back to buildShadowType() methods; the recursive call chain is initiated by DataDisplayLink.prepareData() calls to buildShadowType() methods of MathType sub-classes; |
ShadowType |
makeShadowRealTupleType(RealTupleType type,
DataDisplayLink link,
ShadowType parent)
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealTupleType; ShadowType trees are constructed that 'shadow' the MathType trees of Data to be depicted, via recursive calls to buildShadowType() methods of MathType sub-classes, to DataRenderer.makeShadow*Type() methods, to Shadow*Type constructors, then back to buildShadowType() methods; the recursive call chain is initiated by DataDisplayLink.prepareData() calls to buildShadowType() methods of MathType sub-classes; |
ShadowType |
makeShadowRealType(RealType type,
DataDisplayLink link,
ShadowType parent)
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealType; ShadowType trees are constructed that 'shadow' the MathType trees of Data to be depicted, via recursive calls to buildShadowType() methods of MathType sub-classes, to DataRenderer.makeShadow*Type() methods, to Shadow*Type constructors, then back to buildShadowType() methods; the recursive call chain is initiated by DataDisplayLink.prepareData() calls to buildShadowType() methods of MathType sub-classes; |
ShadowType |
makeShadowSetType(SetType type,
DataDisplayLink link,
ShadowType parent)
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowSetType; ShadowType trees are constructed that 'shadow' the MathType trees of Data to be depicted, via recursive calls to buildShadowType() methods of MathType sub-classes, to DataRenderer.makeShadow*Type() methods, to Shadow*Type constructors, then back to buildShadowType() methods; the recursive call chain is initiated by DataDisplayLink.prepareData() calls to buildShadowType() methods of MathType sub-classes; |
ShadowType |
makeShadowTextType(TextType type,
DataDisplayLink link,
ShadowType parent)
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowTextType; ShadowType trees are constructed that 'shadow' the MathType trees of Data to be depicted, via recursive calls to buildShadowType() methods of MathType sub-classes, to DataRenderer.makeShadow*Type() methods, to Shadow*Type constructors, then back to buildShadowType() methods; the recursive call chain is initiated by DataDisplayLink.prepareData() calls to buildShadowType() methods of MathType sub-classes; |
ShadowType |
makeShadowTupleType(TupleType type,
DataDisplayLink link,
ShadowType parent)
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowTupleType; ShadowType trees are constructed that 'shadow' the MathType trees of Data to be depicted, via recursive calls to buildShadowType() methods of MathType sub-classes, to DataRenderer.makeShadow*Type() methods, to Shadow*Type constructors, then back to buildShadowType() methods; the recursive call chain is initiated by DataDisplayLink.prepareData() calls to buildShadowType() methods of MathType sub-classes; |
void |
setLinks(DataDisplayLink[] links,
DisplayImpl d)
set DataDisplayLinks for linked Data, and set associated DisplayImpl |
void |
toggle(boolean on)
Sets the visibility of the data being rendered by this instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RendererJ2D()
| Method Detail |
|---|
public void setLinks(DataDisplayLink[] links,
DisplayImpl d)
throws VisADException
DataRenderer
setLinks in class DataRendererlinks - array of DataDisplayLinks to setd - associated DisplayImpl to set
VisADException - a VisAD error occurredpublic void toggle(boolean on)
DataRenderer
toggle in class DataRendereron - Whether or not to render the data.
public ShadowType makeShadowFunctionType(FunctionType type,
DataDisplayLink link,
ShadowType parent)
throws VisADException,
RemoteException
DataRenderer
makeShadowFunctionType in class DataRenderertype - FunctionType that returned ShadowType will shadowlink - DataDisplayLink linking Data to be depictedparent - parent in ShadowType tree structure
VisADException - a VisAD error occurred
RemoteException - an RMI error occurred
public ShadowType makeShadowRealTupleType(RealTupleType type,
DataDisplayLink link,
ShadowType parent)
throws VisADException,
RemoteException
DataRenderer
makeShadowRealTupleType in class DataRenderertype - FunctionType that returned ShadowType will shadowlink - DataDisplayLink linking Data to be depictedparent - parent in ShadowType tree structure
VisADException - a VisAD error occurred
RemoteException - an RMI error occurred
public ShadowType makeShadowRealType(RealType type,
DataDisplayLink link,
ShadowType parent)
throws VisADException,
RemoteException
DataRenderer
makeShadowRealType in class DataRenderertype - FunctionType that returned ShadowType will shadowlink - DataDisplayLink linking Data to be depictedparent - parent in ShadowType tree structure
VisADException - a VisAD error occurred
RemoteException - an RMI error occurred
public ShadowType makeShadowSetType(SetType type,
DataDisplayLink link,
ShadowType parent)
throws VisADException,
RemoteException
DataRenderer
makeShadowSetType in class DataRenderertype - FunctionType that returned ShadowType will shadowlink - DataDisplayLink linking Data to be depictedparent - parent in ShadowType tree structure
VisADException - a VisAD error occurred
RemoteException - an RMI error occurred
public ShadowType makeShadowTextType(TextType type,
DataDisplayLink link,
ShadowType parent)
throws VisADException,
RemoteException
DataRenderer
makeShadowTextType in class DataRenderertype - FunctionType that returned ShadowType will shadowlink - DataDisplayLink linking Data to be depictedparent - parent in ShadowType tree structure
VisADException - a VisAD error occurred
RemoteException - an RMI error occurred
public ShadowType makeShadowTupleType(TupleType type,
DataDisplayLink link,
ShadowType parent)
throws VisADException,
RemoteException
DataRenderer
makeShadowTupleType in class DataRenderertype - FunctionType that returned ShadowType will shadowlink - DataDisplayLink linking Data to be depictedparent - parent in ShadowType tree structure
VisADException - a VisAD error occurred
RemoteException - an RMI error occurred
public boolean doAction()
throws VisADException,
RemoteException
doAction in class DataRendererVisADException - a VisAD error occurred
RemoteException - an RMI error occurredpublic void clearBranch()
DataRenderer
clearBranch in class DataRendererpublic void clearScene()
DataRenderer
clearScene in class DataRenderer
public abstract VisADGroup doTransform()
throws VisADException,
RemoteException
VisADException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||