visad.java2d
Class DirectManipulationRendererJ2D

java.lang.Object
  extended by visad.DataRenderer
      extended by visad.java2d.RendererJ2D
          extended by visad.java2d.DirectManipulationRendererJ2D
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
BarbManipulationRendererJ2D, PickManipulationRendererJ2D

public class DirectManipulationRendererJ2D
extends RendererJ2D

DirectManipulationRendererJ2D is the VisAD class for direct manipulation rendering under Java2D.

This DataRenderer supports direct manipulation for Real, RealTuple and Field Data objects (Field data objects must have RealType or RealTupleType ranges and Gridded1DSet domain Sets); no RealType may be mapped to multiple spatial DisplayRealTypes; the RealType of a Real object must be mapped to XAxis, YAxis or YAxis; at least one of the RealType components of a RealTuple object must be mapped to XAxis, YAxis or YAxis; the domain RealType and at least one RealType range component of a Field object must be mapped to XAxis or YAxis


Field Summary
 
Fields inherited from class visad.DataRenderer
enabled, pickCrawlToCursor
 
Constructor Summary
DirectManipulationRendererJ2D()
          this DataRenderer supports direct manipulation for Real, RealTuple and Field Data objects (Field data objects must have RealType or RealTupleType ranges and Gridded1DSet domain Sets); no RealType may be mapped to multiple spatial DisplayRealTypes; the RealType of a Real object must be mapped to XAxis, YAxis or YAxis; at least one of the RealType components of a RealTuple object must be mapped to XAxis, YAxis or YAxis; the domain RealType and at least one RealType range component of a Field object must be mapped to XAxis, YAxis or YAxis
 
Method Summary
 void addPoint(float[] x)
           
 void checkDirect()
          set isDirectManipulation = true if this DataRenderer supports direct manipulation for its linked Data
 java.lang.Object clone()
           
 VisADGroup doTransform()
          create a VisADGroup scene graph for Data in links[0]
 VisADGroup getExtraBranch()
           
 boolean isLegalTextureMap()
           
 void setLinks(DataDisplayLink[] links, DisplayImpl d)
           
 
Methods inherited from class visad.java2d.RendererJ2D
clearBranch, clearScene, doAction, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowSetType, makeShadowTextType, makeShadowTupleType, toggle
 
Methods inherited from class visad.DataRenderer
addException, checkAction, checkClose, clearAVControls, clearExceptions, computeRanges, drag_direct, earthToSpatial, earthToSpatial, findRayManifoldIntersection, get_all_feasible, get_any_changed, get_any_transform_control, getBadScale, getDisplay, getDisplayCoordinateSystem, getDisplayRenderer, getEarthDimension, getEarthUnits, getEnabled, getExceptionVector, getIsDirectManipulation, getLastMouseModifiers, getLatLonIndices, getLatLonRange, getLink, getLinks, getPickCrawlToCursor, getRanges, getRealVectorTypes, getWhyNotDirect, isTransformControl, prepareAction, realCheckDirect, release_direct, removeLink, set_all_feasible, setDisplay, setDisplayRenderer, setEarthSpatialData, setEarthSpatialDisplay, setIsDirectManipulation, setLastMouseModifiers, setLatLonIndices, setLinks, setPickCrawlToCursor, setSpatialValues, spatialToEarth, spatialToEarth, stop_direct, suppressExceptions
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectManipulationRendererJ2D

public DirectManipulationRendererJ2D()
this DataRenderer supports direct manipulation for Real, RealTuple and Field Data objects (Field data objects must have RealType or RealTupleType ranges and Gridded1DSet domain Sets); no RealType may be mapped to multiple spatial DisplayRealTypes; the RealType of a Real object must be mapped to XAxis, YAxis or YAxis; at least one of the RealType components of a RealTuple object must be mapped to XAxis, YAxis or YAxis; the domain RealType and at least one RealType range component of a Field object must be mapped to XAxis, YAxis or YAxis

Method Detail

setLinks

public void setLinks(DataDisplayLink[] links,
                     DisplayImpl d)
              throws VisADException
Overrides:
setLinks in class RendererJ2D
Throws:
VisADException

checkDirect

public void checkDirect()
                 throws VisADException,
                        java.rmi.RemoteException
Description copied from class: DataRenderer
set isDirectManipulation = true if this DataRenderer supports direct manipulation for its linked Data

Overrides:
checkDirect in class DataRenderer
Throws:
VisADException
java.rmi.RemoteException

addPoint

public void addPoint(float[] x)
              throws VisADException
Overrides:
addPoint in class DataRenderer
Throws:
VisADException

getExtraBranch

public VisADGroup getExtraBranch()

doTransform

public VisADGroup doTransform()
                       throws VisADException,
                              java.rmi.RemoteException
create a VisADGroup scene graph for Data in links[0]

Specified by:
doTransform in class RendererJ2D
Throws:
VisADException
java.rmi.RemoteException

isLegalTextureMap

public boolean isLegalTextureMap()
Overrides:
isLegalTextureMap in class DataRenderer

clone

public java.lang.Object clone()
Specified by:
clone in class DataRenderer