Package edu.wisc.ssec.mcidasv.control
Class MultiSpectralControl.Spectrum
java.lang.Object
edu.wisc.ssec.mcidasv.control.MultiSpectralControl.Spectrum
- All Implemented Interfaces:
ProbeListener
,EventListener
- Enclosing class:
MultiSpectralControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultiSpectralControl
private final MultiSpectralDisplay
Display that is displaying the spectrum associated withprobe
's location.private boolean
Whether or notprobe
is visible.private static final org.slf4j.Logger
private final String
Human-friendly ID for this spectrum and probe.private ReadoutProbe
Probe that appears in the "image display" associated with the current display control.private final DataReference
VisAD's reference to this spectrum. -
Constructor Summary
ConstructorsConstructorDescriptionSpectrum
(MultiSpectralControl control, Color color, String myId) Initializes a new Spectrum that is "bound" tocontrol
and whose color iscolor
. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
getId()
double
double
protected ReadoutProbe
getProbe()
getValue()
boolean
void
void
Invoked when a probe's color has changed.void
Invoked when a probe's location format pattern has changed.void
Invoked when a probe's position is changed.void
Invoked when a probe's visibility has changed.void
void
void
setProperties
(Hashtable<String, Object> table) void
setVisible
(boolean visible) Shows and hides this spectrum/probe.void
updatePosition
(RealTuple position)
-
Field Details
-
logger
-
control
-
display
Display that is displaying the spectrum associated withprobe
's location. -
spectrumRef
VisAD's reference to this spectrum. -
probe
Probe that appears in the "image display" associated with the current display control. -
isVisible
Whether or notprobe
is visible. -
myId
Human-friendly ID for this spectrum and probe. Used inMultiSpectralControl.probeTable
.
-
-
Constructor Details
-
Spectrum
public Spectrum(MultiSpectralControl control, Color color, String myId) throws VisADException, RemoteException Initializes a new Spectrum that is "bound" tocontrol
and whose color iscolor
.- Parameters:
control
- Display control that contains this spectrum and the associatedReadoutProbe
. Cannot be null.color
- Color ofprobe
. Cannot benull
.myId
- Human-friendly ID used a reference for this spectrum/probe. Cannot benull
.- Throws:
NullPointerException
- ifcontrol
,color
, ormyId
isnull
.VisADException
- if VisAD-land had some problems.RemoteException
- if VisAD's RMI stuff had problems.
-
-
Method Details
-
probePositionChanged
Description copied from interface:ProbeListener
Invoked when a probe's position is changed.- Specified by:
probePositionChanged
in interfaceProbeListener
- Parameters:
e
- Describes the probe that moved, its old position, and its new position.
-
probeFormatPatternChanged
Description copied from interface:ProbeListener
Invoked when a probe's location format pattern has changed.- Specified by:
probeFormatPatternChanged
in interfaceProbeListener
- Parameters:
e
- Describes the probe that changed, the old format pattern, and the probe's new format pattern.
-
updatePosition
-
getValue
-
getLatitude
-
getLongitude
-
getColor
-
getId
-
getSpectrumRef
-
getSpectrumRefName
-
setColor
-
setVisible
Shows and hides this spectrum/probe. Note that an "hidden" spectrum merely uses an alpha value of zero for the spectrum's color--nothing is actually removed!Also note that if our
MultiSpectralControl
has its visibility toggled "off", the probe itself will not be shown. It will otherwise behave as if it is visible!- Parameters:
visible
-true
for "visible",false
otherwise.
-
isVisible
-
getProbe
-
probeColorChanged
Description copied from interface:ProbeListener
Invoked when a probe's color has changed.- Specified by:
probeColorChanged
in interfaceProbeListener
- Parameters:
e
- Describes the probe that changed, its old color, and its new color.
-
probeVisibilityChanged
Description copied from interface:ProbeListener
Invoked when a probe's visibility has changed.- Specified by:
probeVisibilityChanged
in interfaceProbeListener
- Parameters:
e
- Describes the probe that changed, its old visibility, and the new visibility. The previous and current values will always be the opposites of each other.
-
getProperties
-
setProperties
-
pokeValueDisplay
-
removeValueDisplay
- Throws:
VisADException
RemoteException
-