Package ucar.unidata.view.sounding
Class Profile
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.unidata.view.sounding.Profile
- Direct Known Subclasses:
AirTemperatureProfile
,DewPointProfile
Supports a profile trace on a thermodynamic diagram.
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The name of the profile-field property.static final String
The name of the range-value property.Fields inherited from class ucar.visad.display.LineDrawing
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE
Fields inherited from class ucar.visad.display.DisplayableData
MANIPULABLE, renderer, VISIBLE
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Profile
(String name, FunctionType funcType) Constructs from a name for the displayable and a function type.protected
Constructs from another instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the profile-field.protected void
Handles a change to the data referenced by this instances's DataReference.boolean
Indicates if this instance is semantically identical to another object.Returns the pressure property.Returns the profile-field property.Returns the range-value property.int
hashCode()
Returns the hash code of this instance.void
Resets the vertical profile to the profile of the last setProfile().void
setPressure
(Real pressure) Sets the pressure property.void
setProfile
(Field field) Sets the profile field property.protected void
Updates the range-value.Methods inherited from class ucar.visad.display.LineDrawing
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA
Methods inherited from class ucar.visad.display.DisplayableData
addAction, cloneForDisplay, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toString
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFront
-
Field Details
-
RANGE_VALUE
The name of the range-value property.- See Also:
-
FIELD
The name of the profile-field property.- See Also:
-
-
Constructor Details
-
Profile
Constructs from a name for the displayable and a function type.- Parameters:
name
- The name for the displayable.funcType
- The type of the profile function.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.ClassCastException
- if the range isn't aRealType
-
Profile
Constructs from another instance.- Parameters:
that
- The other instance.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.NullPointerException
- if the argument isnull
.
-
-
Method Details
-
setProfile
Sets the profile field property. This method will cause a PropertyChangeEvent to be fired for the FIELD property.- Parameters:
field
- The profile field property.- Throws:
TypeException
- Argument has incorrect type.VisADException
- VisAD failure.RemoteException
- Java RMI failure.NullPointerException
- if the argument isnull
.
-
getProfile
Returns the profile-field property. NB: Does not return a copy.- Returns:
- The profile-field property.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setOriginalProfile
Resets the vertical profile to the profile of the last setProfile().- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
dataChange
Handles a change to the data referenced by this instances's DataReference. This method is invoked by the parent class when the data is either explicitly set or directly manipulated. This method fires a PropertyChangeEvent for the FIELD property with the Field value of the last setProfile(Field) invocation as the old value. It also causes a PropertyChangeEvent to be fired for the RANGE_VALUE property.- Overrides:
dataChange
in classDisplayableData
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
equals
Indicates if this instance is semantically identical to another object. -
hashCode
public int hashCode()Returns the hash code of this instance. -
setPressure
Sets the pressure property.- Parameters:
pressure
- The new value.- Throws:
TypeException
- if the pressure has the wrong type.VisADException
- VisAD failure.RemoteException
- Java RMI failure.NullPointerException
- if the argument isnull
.
-
getPressure
Returns the pressure property.- Returns:
- The value of the pressure property.
-
getRangeValue
Returns the range-value property.- Returns:
- The range-value property.
-
clear
public void clear()Clears the profile-field. -
updateRangeValue
Updates the range-value.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.NullPointerException
- if the profile isnull
.
-