ucar.unidata.idv.control
Class VerticalProfileInfo

java.lang.Object
  extended by ucar.unidata.idv.control.VerticalProfileInfo

public class VerticalProfileInfo
extends Object

Class VerticalProfileInfo holds information for the multiple vertical profiles

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

Constructor Summary
VerticalProfileInfo()
          Default Constructor
VerticalProfileInfo(VerticalProfileControl control)
          Constructor
 
Method Summary
 GridDataInstance getDataInstance()
          Get the data instance
 LineState getLineState()
          Get the LineState property.
 FieldImpl getProfile()
          Get the last profile
 FieldImpl getProfile(LatLonPoint llp)
          Get the profile we last used.
 int getSamplingMode()
          Get the SamplingMode property.
 Unit getUnit()
          Get the Unit property.
protected  void setDataInstance(GridDataInstance di)
          Set the data instance
 void setLineState(LineState value)
          Set the LineState property.
protected  void setProfile(FieldImpl profile, LatLonPoint llp)
          Set the profile we last used
 void setSamplingMode(int value)
          Set the SamplingMode property.
 void setUnit(Unit value)
          Set the Unit property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerticalProfileInfo

public VerticalProfileInfo()
Default Constructor


VerticalProfileInfo

public VerticalProfileInfo(VerticalProfileControl control)
Constructor

Parameters:
control - The control we're in. Just use it for getting the sampling mode
Method Detail

getUnit

public Unit getUnit()
Get the Unit property.

Returns:
The Unit

setUnit

public void setUnit(Unit value)
Set the Unit property.

Parameters:
value - The new value for Unit

getSamplingMode

public int getSamplingMode()
Get the SamplingMode property.

Returns:
The SamplingMode

setSamplingMode

public void setSamplingMode(int value)
Set the SamplingMode property.

Parameters:
value - The new value for SamplingMode

getDataInstance

public GridDataInstance getDataInstance()
Get the data instance

Returns:
The data instance

setDataInstance

protected void setDataInstance(GridDataInstance di)
Set the data instance

Parameters:
di - The data instance

setLineState

public void setLineState(LineState value)
Set the LineState property.

Parameters:
value - The new value for LineState

getLineState

public LineState getLineState()
Get the LineState property.

Returns:
The LineState

setProfile

protected void setProfile(FieldImpl profile,
                          LatLonPoint llp)
Set the profile we last used

Parameters:
profile - profile
llp - The point we sampled on

getProfile

public FieldImpl getProfile()
Get the last profile

Returns:
profile

getProfile

public FieldImpl getProfile(LatLonPoint llp)
Get the profile we last used. If The given earth location is not the same as the location of the last point we sampled on then null out the sample and return null.

Parameters:
llp - The point we want to sample on
Returns:
sample