Package ucar.visad.display
Class SelectRangeDisplayable
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.SelectRangeDisplayable
A class for support of a select range scalar map.
- Version:
- $Revision: 1.4 $
- Author:
- IDV Development Team
-
Field Summary
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault ctor.protected
Constructs from a SelectRangeDisplayable.SelectRangeDisplayable
(RealType rangeType) Create a select range displayable for the particular type. -
Method Summary
Modifier and TypeMethodDescriptionReturns a clone of this instance suitable for another VisAD display.Returns the RealType of the SelectRange parameter.boolean
Returns whether this Displayable has a valid range (i.e., lowSelectedRange and highSelectedRange are both not NaN'sfinal void
Adds theDataReference
s associated with this instance to the display.final void
Removes theDataReference
s associated with this instance from the display.void
setDisplayUnit
(Unit unit) Set the units for the displayed rangevoid
setRangeForSelect
(double low, double hi) Set the upper and lower limit of the range values associated with a color table.void
setSelectedRange
(double low, double hi) Set selected range with the range for selectvoid
setSelectRealType
(RealType realType) Sets the RealType of the select parameter.Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroy, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getAnimationSet, getColorUnit, getConstantMaps, getData, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, hasDataObject, isActive, isUnitCompatible, isVisible, logException, myAddConstantMaps, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColor, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setLineWidth, setManipulable, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setPointMode, setPointSize, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setUseFastRendering, setUseTimesInAnimation, setVisible, toFront
-
Constructor Details
-
SelectRangeDisplayable
Default ctor.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
SelectRangeDisplayable
Create a select range displayable for the particular type.- Parameters:
rangeType
- RealType for the select range- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
SelectRangeDisplayable
protected SelectRangeDisplayable(SelectRangeDisplayable that) throws VisADException, RemoteException Constructs from a SelectRangeDisplayable.- Parameters:
that
- a SelectRangeDisplayable.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
-
Method Details
-
setSelectRealType
Sets the RealType of the select parameter.- Parameters:
realType
- The RealType of the RGB parameter. May not benull
.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getSelectRealType
Returns the RealType of the SelectRange parameter.- Returns:
- The RealType of the select range parameter. May
be
null
.
-
myAddDataReferences
public final void myAddDataReferences()Adds the
DataReference
s associated with this instance to the display.This implementation does nothing.
- Specified by:
myAddDataReferences
in classDisplayable
-
myRemoveDataReferences
public final void myRemoveDataReferences()Removes the
DataReference
s associated with this instance from the display.This implementation does nothing.
- Specified by:
myRemoveDataReferences
in classDisplayable
-
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
-
setSelectedRange
Set selected range with the range for select- Overrides:
setSelectedRange
in classDisplayable
- Parameters:
low
- low select valuehi
- hi select value- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
setDisplayUnit
Set the units for the displayed range- Overrides:
setDisplayUnit
in classDisplayable
- Parameters:
unit
- Unit for display- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
setRangeForSelect
Set the upper and lower limit of the range values associated with a color table.- Parameters:
low
- the minimun valuehi
- the maximum value- Throws:
RemoteException
- Java RMI errorVisADException
- problem creating VisAD object
-
cloneForDisplay
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.- Specified by:
cloneForDisplay
in classDisplayable
- Returns:
- A semi-deep clone of this instance.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-