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 MultiSpectralControlprivate final MultiSpectralDisplayDisplay that is displaying the spectrum associated withprobe's location.private booleanWhether or notprobeis visible.private static final org.slf4j.Loggerprivate final StringHuman-friendly ID for this spectrum and probe.private ReadoutProbeProbe that appears in the "image display" associated with the current display control.private final DataReferenceVisAD's reference to this spectrum. -
Constructor Summary
ConstructorsConstructorDescriptionSpectrum(MultiSpectralControl control, Color color, String myId) Initializes a new Spectrum that is "bound" tocontroland whose color iscolor. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()getId()doubledoubleprotected ReadoutProbegetProbe()getValue()booleanvoidvoidInvoked when a probe's color has changed.voidInvoked when a probe's location format pattern has changed.voidInvoked when a probe's position is changed.voidInvoked when a probe's visibility has changed.voidvoidvoidsetProperties(Hashtable<String, Object> table) voidsetVisible(boolean visible) Shows and hides this spectrum/probe.voidupdatePosition(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 notprobeis 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" tocontroland 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, ormyIdisnull.VisADException- if VisAD-land had some problems.RemoteException- if VisAD's RMI stuff had problems.
-
-
Method Details
-
probePositionChanged
Description copied from interface:ProbeListenerInvoked when a probe's position is changed.- Specified by:
probePositionChangedin interfaceProbeListener- Parameters:
e- Describes the probe that moved, its old position, and its new position.
-
probeFormatPatternChanged
Description copied from interface:ProbeListenerInvoked when a probe's location format pattern has changed.- Specified by:
probeFormatPatternChangedin 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
MultiSpectralControlhas its visibility toggled "off", the probe itself will not be shown. It will otherwise behave as if it is visible!- Parameters:
visible-truefor "visible",falseotherwise.
-
isVisible
-
getProbe
-
probeColorChanged
Description copied from interface:ProbeListenerInvoked when a probe's color has changed.- Specified by:
probeColorChangedin interfaceProbeListener- Parameters:
e- Describes the probe that changed, its old color, and its new color.
-
probeVisibilityChanged
Description copied from interface:ProbeListenerInvoked when a probe's visibility has changed.- Specified by:
probeVisibilityChangedin 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:
VisADExceptionRemoteException
-