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 String
DEFAULT_SPECTRUM_NAME
static String
MIXED_UNITS
static String
NO_UNIT
static String
REMAINING_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 void
addBand(SpectrumBand band)
Stroke
getLineStyle()
String
getName()
Shape
getScaledShape()
Band[]
getSelectedBands()
Band[]
getSpectralBands()
int
getSymbolIndex()
int
getSymbolSize()
String
getUnit()
boolean
hasBands()
boolean
hasSelectedBands()
boolean
isBandSelected(int index)
boolean
isDefaultOrRemainingBandsSpectrum()
boolean
isRemainingBandsSpectrum()
boolean
isSelected()
void
remove(int j)
void
setBandSelected(int index, boolean selected)
void
setLineStyle(Stroke lineStyle)
void
setName(String name)
void
setSelected(boolean selected)
void
setSymbolIndex(int symbolIndex)
void
setSymbolSize(int symbolSize)
void
updateUnit()
-
-
-
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:
getSpectralBands
in 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)
-
-