|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.datamodel.ImageInfo
public class ImageInfo
This class contains information about how a product's raster data node is displayed as an image.
| Nested Class Summary | |
|---|---|
static class |
ImageInfo.HistogramMatching
Enumerates the possible histogram matching modes. |
| Field Summary | |
|---|---|
static String |
HISTOGRAM_MATCHING_EQUALIZE
Deprecated. |
static String |
HISTOGRAM_MATCHING_NORMALIZE
Deprecated. |
static String |
HISTOGRAM_MATCHING_OFF
Deprecated. since BEAM 4.2, use enum ImageInfo.HistogramMatching |
static Color |
NO_COLOR
|
| Constructor Summary | |
|---|---|
ImageInfo(ColorPaletteDef colorPaletteDef)
Constructs a new image information instance. |
|
ImageInfo(RGBChannelDef rgbChannelDef)
Constructs a new RGB image information instance. |
|
| Method Summary | |
|---|---|
Object |
clone()
Creates and returns a copy of this object. |
ComponentColorModel |
createComponentColorModel()
|
ImageInfo |
createDeepCopy()
Creates and returns a "deep" copy of this object. |
IndexColorModel |
createIndexColorModel(Scaling scaling)
|
void |
dispose()
Releases all of the resources used by this object instance and all of its owned children. |
int |
getColorComponentCount()
Gets the number of color components the image shall have using an instance of this ImageInfo. |
ColorPaletteDef |
getColorPaletteDef()
Gets the color palette definition as used for images created from single bands. |
Color[] |
getColors()
|
ImageInfo.HistogramMatching |
getHistogramMatching()
|
static ImageInfo.HistogramMatching |
getHistogramMatching(String mode)
Converts a string to a histogram matching. |
Color |
getNoDataColor()
|
RGBChannelDef |
getRgbChannelDef()
Gets the RGB(A) channel definition as used for images created from 3 tp 4 bands. |
boolean |
isLogScaled()
|
void |
setColorPaletteDef(ColorPaletteDef colorPaletteDef,
double minSample,
double maxSample,
boolean autoDistribute)
Transfers the colour palette into this image info. |
void |
setColors(Color[] colors)
Sets the colours of the colour palette of this image info. |
void |
setHistogramMatching(ImageInfo.HistogramMatching histogramMatching)
|
void |
setLogScaled(boolean logScaled)
|
void |
setNoDataColor(Color noDataColor)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Color NO_COLOR
@Deprecated public static final String HISTOGRAM_MATCHING_OFF
ImageInfo.HistogramMatching@Deprecated public static final String HISTOGRAM_MATCHING_EQUALIZE
@Deprecated public static final String HISTOGRAM_MATCHING_NORMALIZE
| Constructor Detail |
|---|
public ImageInfo(ColorPaletteDef colorPaletteDef)
colorPaletteDef - the color palette definitionpublic ImageInfo(RGBChannelDef rgbChannelDef)
rgbChannelDef - the RGB channel definition| Method Detail |
|---|
public ColorPaletteDef getColorPaletteDef()
null.
In this case getRgbChannelDef() is non-null.public RGBChannelDef getRgbChannelDef()
null. In this case getColorPaletteDef() is non-null.public Color getNoDataColor()
public void setNoDataColor(Color noDataColor)
public ImageInfo.HistogramMatching getHistogramMatching()
public void setHistogramMatching(ImageInfo.HistogramMatching histogramMatching)
public boolean isLogScaled()
public void setLogScaled(boolean logScaled)
public Color[] getColors()
public int getColorComponentCount()
ImageInfo.
3 for RGB images, 4 for RGB images with an alpha channel (transparency)public IndexColorModel createIndexColorModel(Scaling scaling)
public ComponentColorModel createComponentColorModel()
public final Object clone()
clone in class Objectpublic ImageInfo createDeepCopy()
clone().
public void dispose()
This method should be called only if it is for sure that this object instance will never be used again. The
results of referencing an instance of this class after a call to dispose() are undefined.
Overrides of this method should always call super.dispose(); after disposing this instance.
public void setColors(Color[] colors)
colors - the new colours
public void setColorPaletteDef(ColorPaletteDef colorPaletteDef,
double minSample,
double maxSample,
boolean autoDistribute)
colorPaletteDef - another colour paletteminSample - the minium allowed sample value in the new colour palettemaxSample - the maximum allowed sample value in the new colour paletteautoDistribute - if true, points are distributed between minSample/maxSample.public static ImageInfo.HistogramMatching getHistogramMatching(String mode)
mode - the histogram matching string
ImageInfo.HistogramMatching.None if maode is not "Equalize" or "Normalize".
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||