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 TypeMethodDescriptionvoidaddBand(SpectrumBand band) getName()Band[]Band[]intintgetUnit()booleanhasBands()booleanbooleanisBandSelected(int index) booleanbooleanbooleanvoidremove(int j) voidsetBandSelected(int index, boolean selected) voidsetLineStyle(Stroke lineStyle) voidvoidsetSelected(boolean selected) voidsetSymbolIndex(int symbolIndex) voidsetSymbolSize(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:
getSpectralBandsin 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)
-