ucar.visad.display
Class StationModelDisplayable

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.visad.display.StationModelDisplayable
Direct Known Subclasses:
GridValueDisplayable, StationLocationDisplayable

public class StationModelDisplayable
extends DisplayableData

Class for displaying a station model plot

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

Field Summary
static float OFFSET_SCALE
          Scale for offset
 
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
  StationModelDisplayable()
          Default constructor;
  StationModelDisplayable(StationModel model)
          Construct a StationModelDisplayable using the specified model.
protected StationModelDisplayable(StationModelDisplayable that)
          Clone constructor to create another instance.
  StationModelDisplayable(StationModel model, JythonManager jythonManager)
          Construct a StationModelDisplayable using the specified model.
  StationModelDisplayable(String name)
          Construct a StationModelDisplayable with the specified name
  StationModelDisplayable(String name, JythonManager jythonManager)
          Construct a StationModelDisplayable with the specified name
  StationModelDisplayable(String name, StationModel stationModel)
          Construct a StationModelDisplayable using the specified model and name.
  StationModelDisplayable(String name, StationModel stationModel, JythonManager jythonManager)
          Construct a StationModelDisplayable using the specified model and name.
 
Method Summary
 Displayable cloneForDisplay()
          Returns a clone of this instance suitable for another VisAD display.
protected  void destroy()
          Called when the displayable is removed from a display master
 float getScale()
          Get the scale of the ShapeControl.
 boolean getShouldUseAltitude()
          Get the ShouldUseAltitude property.
 StationModel getStationModel()
          Get the station model used by this displayable.
 boolean hasSelectedRange()
          Returns whether this Displayable has a valid range (i.e., lowSelectedRange and highSelectedRange are both not NaN's
 void setRangeForSelect(double low, double hi)
          Set the upper and lower limit of the range values associated with a color table.
 void setScale(float newScale)
          Set the scale of the ShapeControl.
 void setSelectedRange(double low, double hi)
          Set selected range with the range for select
 void setShouldUseAltitude(boolean value)
          Set the ShouldUseAltitude property.
 void setStationData(FieldImpl stationData)
          Set the station data to display using the StationModel.
 void setStationModel(StationModel model)
          Set the station ob model for this object
 void setStationModel(StationModel model, boolean update)
          Set the station ob model for this object
 
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
 

Field Detail

OFFSET_SCALE

public static final float OFFSET_SCALE
Scale for offset

See Also:
Constant Field Values
Constructor Detail

StationModelDisplayable

public StationModelDisplayable()
                        throws VisADException,
                               RemoteException
Default constructor;

Throws:
VisADException - unable to create specified VisAD objects
RemoteException - unable to create specified remote objects

StationModelDisplayable

public StationModelDisplayable(String name)
                        throws VisADException,
                               RemoteException
Construct a StationModelDisplayable with the specified name

Parameters:
name - name of displayable and StationModel
Throws:
VisADException - unable to create specified VisAD objects
RemoteException - unable to create specified remote objects

StationModelDisplayable

public StationModelDisplayable(String name,
                               JythonManager jythonManager)
                        throws VisADException,
                               RemoteException
Construct a StationModelDisplayable with the specified name

Parameters:
name - name of displayable and StationModel
jythonManager - The JythonManager for evaluating embedded expressions
Throws:
VisADException - unable to create specified VisAD objects
RemoteException - unable to create specified remote objects

StationModelDisplayable

public StationModelDisplayable(StationModel model)
                        throws VisADException,
                               RemoteException
Construct a StationModelDisplayable using the specified model.

Parameters:
model - StationModel to use for data depiction
Throws:
VisADException - unable to create specified VisAD objects
RemoteException - unable to create specified remote objects

StationModelDisplayable

public StationModelDisplayable(StationModel model,
                               JythonManager jythonManager)
                        throws VisADException,
                               RemoteException
Construct a StationModelDisplayable using the specified model.

Parameters:
model - StationModel to use for data depiction
jythonManager - The JythonManager for evaluating embedded expressions
Throws:
VisADException - unable to create specified VisAD objects
RemoteException - unable to create specified remote objects

StationModelDisplayable

public StationModelDisplayable(String name,
                               StationModel stationModel)
                        throws VisADException,
                               RemoteException
Construct a StationModelDisplayable using the specified model and name.

Parameters:
name - name of for this displayable data reference
stationModel - StationModel to use for data depiction
Throws:
VisADException - unable to create specified VisAD objects
RemoteException - unable to create specified remote objects

StationModelDisplayable

public StationModelDisplayable(String name,
                               StationModel stationModel,
                               JythonManager jythonManager)
                        throws VisADException,
                               RemoteException
Construct a StationModelDisplayable using the specified model and name.

Parameters:
name - name of for this displayable data reference
stationModel - StationModel to use for data depiction
jythonManager - The JythonManager for evaluating embedded expressions
Throws:
VisADException - unable to create specified VisAD objects
RemoteException - unable to create specified remote objects

StationModelDisplayable

protected StationModelDisplayable(StationModelDisplayable that)
                           throws VisADException,
                                  RemoteException
Clone constructor to create another instance.

Parameters:
that - object to clone from.
Throws:
RemoteException - a remote error
VisADException - a VisAD error
Method Detail

setStationData

public void setStationData(FieldImpl stationData)
                    throws VisADException,
                           RemoteException
Set the station data to display using the StationModel.

Parameters:
stationData - Field of station observations.
Throws:
VisADException - unable to create specified VisAD objects
RemoteException - unable to create specified remote objects

cloneForDisplay

public Displayable cloneForDisplay()
                            throws RemoteException,
                                   VisADException
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.

Overrides:
cloneForDisplay in class DisplayableData
Returns:
A semi-deep clone of this instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setStationModel

public void setStationModel(StationModel model)
                     throws VisADException,
                            RemoteException
Set the station ob model for this object

Parameters:
model - StationModel to use
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setStationModel

public void setStationModel(StationModel model,
                            boolean update)
                     throws VisADException,
                            RemoteException
Set the station ob model for this object

Parameters:
model - StationModel to use
update - update data using new model
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getStationModel

public StationModel getStationModel()
Get the station model used by this displayable.

Returns:
the station model

destroy

protected void destroy()
                throws RemoteException,
                       VisADException
Called when the displayable is removed from a display master

Overrides:
destroy in class DisplayableData
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setScale

public void setScale(float newScale)
              throws VisADException,
                     RemoteException
Set the scale of the ShapeControl. Usually done to set the initial scale.

Parameters:
newScale - scale to use.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getScale

public float getScale()
Get the scale of the ShapeControl.

Returns:
current scale;

setShouldUseAltitude

public void setShouldUseAltitude(boolean value)
                          throws VisADException,
                                 RemoteException
Set the ShouldUseAltitude property.

Parameters:
value - The new value for ShouldUseAltitude
Throws:
RemoteException - On badness
VisADException - On badness

getShouldUseAltitude

public boolean getShouldUseAltitude()
Get the ShouldUseAltitude property.

Returns:
The ShouldUseAltitude

setSelectedRange

public void setSelectedRange(double low,
                             double hi)
                      throws VisADException,
                             RemoteException
Set selected range with the range for select

Overrides:
setSelectedRange in class Displayable
Parameters:
low - low select value
hi - hi select value
Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object

setRangeForSelect

public void setRangeForSelect(double low,
                              double hi)
                       throws VisADException,
                              RemoteException
Set the upper and lower limit of the range values associated with a color table.

Parameters:
low - the minimun value
hi - the maximum value
Throws:
RemoteException - Java RMI error
VisADException - problem creating VisAD object

hasSelectedRange

public boolean hasSelectedRange()
Returns whether this Displayable has a valid range (i.e., lowSelectedRange and highSelectedRange are both not NaN's

Returns:
true if range has been set