Package org.esa.snap.rcp.colormanip
Class BrightnessContrastData
- java.lang.Object
-
- org.esa.snap.rcp.colormanip.BrightnessContrastData
-
public class BrightnessContrastData extends Object
TheBrightnessContrastData
class is used to store the initial image info of the band and slider values.
-
-
Constructor Summary
Constructors Constructor Description BrightnessContrastData(ImageInfo initialImageInfo)
Constructs a new item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBrightnessSliderValue()
Returns the brightness slider value.int
getContrastSliderValue()
Returns the contrast slider value.ImageInfo
getInitialImageInfo()
Returns the initial image info.ImageInfo
getInitialImageInfo(RasterDataNode rasterDataNode)
int
getSaturationSliderValue()
Returns the saturation slider value.void
putImageInfo(RasterDataNode rasterDataNode, ImageInfo imageInfo)
void
setInitialImageInfo(ImageInfo initialImageInfo)
Sets the initial image info, before changing the current image info of the displayed band.void
setSliderValues(int brightnessSliderValue, int contrastSliderValue, int saturationSliderValue)
Sets the slider values.
-
-
-
Constructor Detail
-
BrightnessContrastData
public BrightnessContrastData(ImageInfo initialImageInfo)
Constructs a new item.- Parameters:
initialImageInfo
- the initial image info of the displayed band
-
-
Method Detail
-
putImageInfo
public void putImageInfo(RasterDataNode rasterDataNode, ImageInfo imageInfo)
-
getInitialImageInfo
public ImageInfo getInitialImageInfo(RasterDataNode rasterDataNode)
-
getInitialImageInfo
public ImageInfo getInitialImageInfo()
Returns the initial image info.- Returns:
- the initial image info, should never be
null
-
getBrightnessSliderValue
public int getBrightnessSliderValue()
Returns the brightness slider value.- Returns:
- the brightness slider value
-
getContrastSliderValue
public int getContrastSliderValue()
Returns the contrast slider value.- Returns:
- the contrast slider value
-
getSaturationSliderValue
public int getSaturationSliderValue()
Returns the saturation slider value.- Returns:
- the saturation slider value
-
setInitialImageInfo
public void setInitialImageInfo(ImageInfo initialImageInfo)
Sets the initial image info, before changing the current image info of the displayed band.- Parameters:
initialImageInfo
- the initial image info
-
setSliderValues
public void setSliderValues(int brightnessSliderValue, int contrastSliderValue, int saturationSliderValue)
Sets the slider values.- Parameters:
brightnessSliderValue
- the brightness slider valuecontrastSliderValue
- the contrast slider valuesaturationSliderValue
- the saturation slider value
-
-