Package org.esa.snap.ui.product.spectrum
Class DisplayableSpectrum
- java.lang.Object
-
- org.esa.snap.ui.product.spectrum.DisplayableSpectrum
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SPECTRUM_NAMEstatic StringMIXED_UNITSstatic StringNO_UNITstatic StringREMAINING_BANDS_NAME
-
Constructor Summary
Constructors Constructor Description DisplayableSpectrum(String spectrumName, int symbolIndex)DisplayableSpectrum(String spectrumName, SpectrumBand[] spectralBands, int symbolIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBand(SpectrumBand band)StrokegetLineStyle()StringgetName()ShapegetScaledShape()Band[]getSelectedBands()Band[]getSpectralBands()intgetSymbolIndex()intgetSymbolSize()StringgetUnit()booleanhasBands()booleanhasSelectedBands()booleanisBandSelected(int index)booleanisDefaultOrRemainingBandsSpectrum()booleanisRemainingBandsSpectrum()booleanisSelected()voidremove(int j)voidsetBandSelected(int index, boolean selected)voidsetLineStyle(Stroke lineStyle)voidsetName(String name)voidsetSelected(boolean selected)voidsetSymbolIndex(int symbolIndex)voidsetSymbolSize(int symbolSize)voidupdateUnit()
-
-
-
Field Detail
-
NO_UNIT
public static final String NO_UNIT
- See Also:
- Constant Field Values
-
MIXED_UNITS
public static final String MIXED_UNITS
- See Also:
- Constant Field Values
-
DEFAULT_SPECTRUM_NAME
public static final String DEFAULT_SPECTRUM_NAME
- See Also:
- Constant Field Values
-
REMAINING_BANDS_NAME
public static final String REMAINING_BANDS_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DisplayableSpectrum
public DisplayableSpectrum(String spectrumName, int symbolIndex)
-
DisplayableSpectrum
public DisplayableSpectrum(String spectrumName, SpectrumBand[] spectralBands, int symbolIndex)
-
-
Method Detail
-
addBand
public void addBand(SpectrumBand band)
-
getScaledShape
public Shape getScaledShape()
-
isDefaultOrRemainingBandsSpectrum
public boolean isDefaultOrRemainingBandsSpectrum()
-
isRemainingBandsSpectrum
public boolean isRemainingBandsSpectrum()
-
hasSelectedBands
public boolean hasSelectedBands()
-
setName
public void setName(String name)
-
getSpectralBands
public Band[] getSpectralBands()
- Specified by:
getSpectralBandsin interfaceSpectrum
-
getSelectedBands
public Band[] getSelectedBands()
-
setBandSelected
public void setBandSelected(int index, boolean selected)
-
isBandSelected
public boolean isBandSelected(int index)
-
getLineStyle
public Stroke getLineStyle()
-
setLineStyle
public void setLineStyle(Stroke lineStyle)
-
setSelected
public void setSelected(boolean selected)
-
isSelected
public boolean isSelected()
-
getUnit
public String 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)
-
-