public class ProbeRowInfo
extends java.lang.Object
Constructor and Description |
---|
ProbeRowInfo()
ctor
|
ProbeRowInfo(ProbeControl control)
ctor
|
ProbeRowInfo(ProbeControl control,
DataInstance dataInstance)
ctor
|
ProbeRowInfo(visad.Real level,
visad.Real alt,
int mode,
visad.Unit unit,
MidiProperties midiProperties)
ctor used for creating a ProbeRowInfo from legacy bundles values
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearCachedSamples()
Clear any cached samples
|
visad.Real |
getAltitude()
Get the Altitude property.
|
DataInstance |
getDataInstance()
Get the data instance
|
protected java.lang.Object |
getDisplayValue()
Get the DisplayValue property.
|
protected java.lang.String |
getExtra()
extra stuff for table
|
GridDataInstance |
getGridDataInstance()
Get the data instance
|
visad.Real |
getLevel()
Get the Level property.
|
LineState |
getLineState()
Get the LineState property.
|
MidiProperties |
getMidiProperties()
Get the MidiProperties property.
|
int |
getPointIndex()
Get the point index
|
java.lang.String |
getPointParameter()
Get the PointParameter property.
|
java.lang.String |
getPointParameterName()
Get the point parameter name
|
visad.FieldImpl |
getPointSample()
Get the last point sample
|
visad.FieldImpl |
getPointSample(visad.georef.EarthLocation elt)
Get the sample we last used.
|
protected visad.Real |
getRealValue()
Get the value as a Real.
|
protected visad.Real |
getRealValue(visad.Data timeSample)
Get the value at the time sample
|
int |
getSamplingMode()
Get the SamplingMode property.
|
java.lang.String |
getStationName()
Get the station name
|
protected visad.Data |
getTimeSample()
Get the time sample
|
protected visad.Set |
getTimeSet()
time set
|
visad.TupleType |
getTupleType()
Get the TupleType for the data
|
visad.Unit |
getUnit()
Get the Unit property.
|
visad.FieldImpl |
getWorkingGrid()
Get the sample we last used
|
protected void |
initWith(ProbeRowInfo that)
Sort of a copy ctor
|
boolean |
isGrid()
Are we probing on grids
|
boolean |
isPoint()
Is this for point data
|
protected void |
playSound(double value)
Play a sound for the particular row and value
|
void |
setAltitude(visad.Real value)
Set the Altitude property.
|
protected void |
setDataInstance(DataInstance di)
Set the data instance
|
protected void |
setDisplayValue(java.lang.Object value)
Set the DisplayValue property.
|
protected void |
setExtra(java.lang.String s)
extra stuff for table
|
void |
setLevel(visad.Real value)
Set the Level property.
|
void |
setLineState(LineState value)
Set the LineState property.
|
void |
setMidiProperties(MidiProperties value)
Set the MidiProperties property.
|
void |
setPointParameter(java.lang.String value)
Set the PointParameter property.
|
protected void |
setPointSample(visad.FieldImpl sample,
visad.georef.EarthLocation elt)
Set the sample we last used
|
void |
setSamplingMode(int value)
Set the SamplingMode property.
|
void |
setStationName(PointOb ob,
DisplayControlImpl control)
Set the station name
|
protected void |
setTimeSample(visad.Data rt)
Set the raw value from the Data.
|
void |
setUnit(visad.Unit value)
Set the Unit property.
|
protected void |
setWorkingGrid(visad.FieldImpl grid)
Set the working grid for this row
|
protected void |
showSoundDialog(ProbeControl control)
Show the sound dialog
|
java.lang.String |
toString()
to string
|
public ProbeRowInfo()
public ProbeRowInfo(ProbeControl control)
control
- The control we're in. Just use it for getting the sampling modepublic ProbeRowInfo(visad.Real level, visad.Real alt, int mode, visad.Unit unit, MidiProperties midiProperties)
level
- levelalt
- altitudemode
- sampling modeunit
- display unitmidiProperties
- sound configuartionpublic ProbeRowInfo(ProbeControl control, DataInstance dataInstance)
control
- the controldataInstance
- data instancepublic boolean isGrid()
public boolean isPoint()
protected void setExtra(java.lang.String s)
s
- extraprotected java.lang.String getExtra()
protected void clearCachedSamples()
protected void setTimeSample(visad.Data rt) throws visad.VisADException, java.rmi.RemoteException
rt
- The datajava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected visad.Data getTimeSample()
protected void initWith(ProbeRowInfo that)
that
- thatprotected void showSoundDialog(ProbeControl control) throws visad.VisADException, java.rmi.RemoteException
control
- control I'm injava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic java.lang.String toString()
toString
in class java.lang.Object
protected void playSound(double value)
value
- value of dataprotected void setDisplayValue(java.lang.Object value)
value
- The new value for DisplayValueprotected java.lang.Object getDisplayValue()
public GridDataInstance getGridDataInstance()
public DataInstance getDataInstance()
protected void setDataInstance(DataInstance di)
di
- The data instancepublic visad.TupleType getTupleType() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected visad.Real getRealValue() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected visad.Real getRealValue(visad.Data timeSample) throws visad.VisADException, java.rmi.RemoteException
timeSample
- the time samplejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic java.lang.String getPointParameterName() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic int getPointIndex() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setUnit(visad.Unit value)
value
- The new value for Unitprotected void setWorkingGrid(visad.FieldImpl grid)
grid
- public visad.FieldImpl getWorkingGrid()
protected void setPointSample(visad.FieldImpl sample, visad.georef.EarthLocation elt) throws visad.VisADException, java.rmi.RemoteException
sample
- sampleelt
- The point we sampled onjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setStationName(PointOb ob, DisplayControlImpl control) throws visad.VisADException, java.rmi.RemoteException
ob
- the point observationcontrol
- The display control this is part ofjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected visad.Set getTimeSet() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic visad.FieldImpl getPointSample()
public visad.FieldImpl getPointSample(visad.georef.EarthLocation elt)
elt
- The point we want to sample onpublic visad.Unit getUnit()
public void setLevel(visad.Real value)
value
- The new value for Levelpublic visad.Real getLevel()
public void setAltitude(visad.Real value)
value
- The new value for Altitudepublic visad.Real getAltitude()
public void setSamplingMode(int value)
value
- The new value for SamplingModepublic int getSamplingMode()
public void setMidiProperties(MidiProperties value)
value
- The new value for MidiPropertiespublic MidiProperties getMidiProperties()
public void setLineState(LineState value)
value
- The new value for LineStatepublic LineState getLineState()
public java.lang.String getStationName()
public void setPointParameter(java.lang.String value)
value
- The new value for PointParameterpublic java.lang.String getPointParameter()