Package org.esa.snap.ui.product.spectrum
Class DisplayableSpectrum
java.lang.Object
org.esa.snap.ui.product.spectrum.DisplayableSpectrum
- All Implemented Interfaces:
Spectrum
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDisplayableSpectrum
(String spectrumName, int symbolIndex) DisplayableSpectrum
(String spectrumName, SpectrumBand[] spectralBands, int symbolIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBand
(SpectrumBand band) getName()
Band[]
Band[]
int
int
getUnit()
boolean
hasBands()
boolean
boolean
isBandSelected
(int index) boolean
boolean
boolean
void
remove
(int j) void
setBandSelected
(int index, boolean selected) void
setLineStyle
(Stroke lineStyle) void
void
setSelected
(boolean selected) void
setSymbolIndex
(int symbolIndex) void
setSymbolSize
(int symbolSize) void
-
Field Details
-
NO_UNIT
- See Also:
-
MIXED_UNITS
- See Also:
-
DEFAULT_SPECTRUM_NAME
- See Also:
-
REMAINING_BANDS_NAME
- See Also:
-
-
Constructor Details
-
DisplayableSpectrum
-
DisplayableSpectrum
-
-
Method Details
-
addBand
-
getScaledShape
-
isDefaultOrRemainingBandsSpectrum
public boolean isDefaultOrRemainingBandsSpectrum() -
isRemainingBandsSpectrum
public boolean isRemainingBandsSpectrum() -
hasBands
public boolean hasBands() -
hasSelectedBands
public boolean hasSelectedBands() -
getName
-
setName
-
getSpectralBands
- Specified by:
getSpectralBands
in interfaceSpectrum
-
getSelectedBands
-
setBandSelected
public void setBandSelected(int index, boolean selected) -
isBandSelected
public boolean isBandSelected(int index) -
getLineStyle
-
setLineStyle
-
setSelected
public void setSelected(boolean selected) -
isSelected
public boolean isSelected() -
getUnit
-
getSymbolSize
public int getSymbolSize() -
setSymbolSize
public void setSymbolSize(int symbolSize) -
getSymbolIndex
public int getSymbolIndex() -
setSymbolIndex
public void setSymbolIndex(int symbolIndex) -
updateUnit
public void updateUnit() -
remove
public void remove(int j)
-