ucar.visad.display
Class GridValueDisplayable

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.visad.display.StationModelDisplayable
              extended by ucar.visad.display.GridValueDisplayable
All Implemented Interfaces:
GridDisplayable

public class GridValueDisplayable
extends StationModelDisplayable
implements GridDisplayable

Class for displaying grid point values as text

Version:
$Revision: 1.15 $
Author:
IDV Development Team

Field Summary
 
Fields inherited from class ucar.visad.display.StationModelDisplayable
OFFSET_SCALE
 
Fields inherited from class ucar.visad.display.DisplayableData
LINE_WIDTH, MANIPULABLE, VISIBLE
 
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
 
Constructor Summary
  GridValueDisplayable()
          Default constructor
protected GridValueDisplayable(GridValueDisplayable that)
          Constructs from another instance.
  GridValueDisplayable(String name)
          Construct with the given name.
 
Method Summary
 Displayable cloneForDisplay()
          Clone this Displayable so it can go into a different display.
 void loadData(FieldImpl field)
          Set the data into the Displayable
 void setColoredByAnother(boolean yesno)
          Set whether this GridDisplayable should have the data colored by another parameter.
 
Methods inherited from class ucar.visad.display.StationModelDisplayable
destroy, getScale, getShouldUseAltitude, getStationModel, hasSelectedRange, setRangeForSelect, setScale, setSelectedRange, setShouldUseAltitude, setStationData, setStationModel, setStationModel
 
Methods inherited from class ucar.visad.display.DisplayableData
addAction, dataChange, getActive, getAnimationSet, getData, getDataRenderer, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setLineWidth, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, toString
 
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColor, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setUseTimesInAnimation, toFront
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GridValueDisplayable

public GridValueDisplayable()
                     throws VisADException,
                            RemoteException
Default constructor

Throws:
VisADException - necessary VisAD object couldn't be created
RemoteException - remote error

GridValueDisplayable

public GridValueDisplayable(String name)
                     throws VisADException,
                            RemoteException
Construct with the given name.

Parameters:
name - name must contain no spaces.
Throws:
VisADException - necessary VisAD object couldn't be created
RemoteException - remote error

GridValueDisplayable

protected GridValueDisplayable(GridValueDisplayable that)
                        throws RemoteException,
                               VisADException
Constructs from another instance.

Parameters:
that - The other instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

cloneForDisplay

public Displayable cloneForDisplay()
                            throws RemoteException,
                                   VisADException
Clone this Displayable so it can go into a different display.

Overrides:
cloneForDisplay in class StationModelDisplayable
Returns:
clone of this object
Throws:
RemoteException - Java RMI error
VisADException - VisAD error

loadData

public void loadData(FieldImpl field)
              throws VisADException,
                     RemoteException
Set the data into the Displayable

Specified by:
loadData in interface GridDisplayable
Parameters:
field - a VisAD FlatField with a 2D nature
Throws:
VisADException - from construction of VisAd objects
RemoteException - from construction of VisAD objects

setColoredByAnother

public void setColoredByAnother(boolean yesno)
Set whether this GridDisplayable should have the data colored by another parameter. This implementation is a no-op.

Specified by:
setColoredByAnother in interface GridDisplayable
Parameters:
yesno - true if colored by another