org.geotools.cv
Class ColorInterpretation

java.lang.Object
  extended byjavax.media.jai.EnumeratedParameter
      extended byorg.geotools.cv.ColorInterpretation
All Implemented Interfaces:
java.io.Serializable

Deprecated. Replaced by ColorInterpretation in the org.opengis.coverage package.

public final class ColorInterpretation
extends javax.media.jai.EnumeratedParameter

Enumeration class specifing the mapping of a band to a color model component.

Version:
$Id: ColorInterpretation.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
OpenGIS, Martin Desruisseaux
See Also:
CV_ColorInterpretation, Serialized Form

Field Summary
static ColorInterpretation ALPHA_BAND
          Deprecated. Bands correspond to RGB color model components.
static ColorInterpretation BLACK_BAND
          Deprecated. Bands correspond to CMYK color model.
static ColorInterpretation BLUE_BAND
          Deprecated. Bands correspond to RGB color model components.
static ColorInterpretation CYAN_BAND
          Deprecated. Bands correspond to CMYK color model.
static ColorInterpretation GRAY_INDEX
          Deprecated. Band is an index into a lookup table.
static ColorInterpretation GREEN_BAND
          Deprecated. Bands correspond to RGB color model components.
static ColorInterpretation HUE_BAND
          Deprecated. Bands correspond to HSL color model.
static ColorInterpretation LIGHTNESS_BAND
          Deprecated. Bands correspond to HSL color model.
static ColorInterpretation MAGENTA_BAND
          Deprecated. Bands correspond to CMYK color model.
static ColorInterpretation PALETTE_INDEX
          Deprecated. Band is a color index into a color table.
static ColorInterpretation RED_BAND
          Deprecated. Bands correspond to RGB color model components.
static ColorInterpretation SATURATION_BAND
          Deprecated. Bands correspond to HSL color model.
static ColorInterpretation UNDEFINED
          Deprecated. Band is not associated with a color model component.
static ColorInterpretation YELLOW_BAND
          Deprecated. Bands correspond to CMYK color model.
 
Method Summary
static ColorInterpretation getEnum(org.opengis.coverage.ColorInterpretation value)
          Deprecated. Return the enum for the specified value.
static ColorInterpretation getEnum(java.awt.image.ColorModel model, int band)
          Deprecated. Returns the enum for the specified color model and band number.
static ColorInterpretation getEnum(int value)
          Deprecated. Returns the enum for the specified value.
static ColorInterpretation getEnum(java.lang.String name)
          Deprecated. Returns the enum for the specified name.
 java.lang.String getName(java.util.Locale locale)
          Deprecated. Returns this enum's name in the specified locale.
 
Methods inherited from class javax.media.jai.EnumeratedParameter
equals, getName, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED

public static final ColorInterpretation UNDEFINED
Deprecated. 
Band is not associated with a color model component.

See Also:
CV_ColorInterpretation.CV_Undefined

GRAY_INDEX

public static final ColorInterpretation GRAY_INDEX
Deprecated. 
Band is an index into a lookup table.

See Also:
CV_ColorInterpretation.CV_GrayIndex

PALETTE_INDEX

public static final ColorInterpretation PALETTE_INDEX
Deprecated. 
Band is a color index into a color table.

See Also:
CV_ColorInterpretation.CV_PaletteIndex

RED_BAND

public static final ColorInterpretation RED_BAND
Deprecated. 
Bands correspond to RGB color model components. Alpha band may or may not be present.

See Also:
CV_ColorInterpretation.CV_RedBand

GREEN_BAND

public static final ColorInterpretation GREEN_BAND
Deprecated. 
Bands correspond to RGB color model components. Alpha band may or may not be present.

See Also:
CV_ColorInterpretation.CV_GreenBand

BLUE_BAND

public static final ColorInterpretation BLUE_BAND
Deprecated. 
Bands correspond to RGB color model components. Alpha band may or may not be present.

See Also:
CV_ColorInterpretation.CV_BlueBand

ALPHA_BAND

public static final ColorInterpretation ALPHA_BAND
Deprecated. 
Bands correspond to RGB color model components.

See Also:
CV_ColorInterpretation.CV_AlphaBand

HUE_BAND

public static final ColorInterpretation HUE_BAND
Deprecated. 
Bands correspond to HSL color model.

See Also:
CV_ColorInterpretation.CV_HueBand

SATURATION_BAND

public static final ColorInterpretation SATURATION_BAND
Deprecated. 
Bands correspond to HSL color model.

See Also:
CV_ColorInterpretation.CV_SaturationBand

LIGHTNESS_BAND

public static final ColorInterpretation LIGHTNESS_BAND
Deprecated. 
Bands correspond to HSL color model.

See Also:
CV_ColorInterpretation.CV_LightnessBand

CYAN_BAND

public static final ColorInterpretation CYAN_BAND
Deprecated. 
Bands correspond to CMYK color model.

See Also:
CV_ColorInterpretation.CV_CyanBand

MAGENTA_BAND

public static final ColorInterpretation MAGENTA_BAND
Deprecated. 
Bands correspond to CMYK color model.

See Also:
CV_ColorInterpretation.CV_MagentaBand

YELLOW_BAND

public static final ColorInterpretation YELLOW_BAND
Deprecated. 
Bands correspond to CMYK color model.

See Also:
CV_ColorInterpretation.CV_YellowBand

BLACK_BAND

public static final ColorInterpretation BLACK_BAND
Deprecated. 
Bands correspond to CMYK color model.

See Also:
CV_ColorInterpretation.CV_BlackBand
Method Detail

getEnum

public static ColorInterpretation getEnum(int value)
                                   throws java.util.NoSuchElementException
Deprecated. 
Returns the enum for the specified value. This method is provided for compatibility with CV_ColorInterpretation.

Parameters:
value - The enum value.
Returns:
The enum for the specified value.
Throws:
java.util.NoSuchElementException - if there is no enum for the specified value.

getEnum

public static ColorInterpretation getEnum(java.lang.String name)
                                   throws java.util.NoSuchElementException
Deprecated. 
Returns the enum for the specified name.

Throws:
java.util.NoSuchElementException

getEnum

public static ColorInterpretation getEnum(org.opengis.coverage.ColorInterpretation value)
                                   throws java.util.NoSuchElementException
Deprecated. 
Return the enum for the specified value. This method is provided for compatibility with ColorInterpretation.

Parameters:
value - The enum value.
Returns:
The enum for the specified value.
Throws:
java.util.NoSuchElementException - if there is no enum for the specified value.

getEnum

public static ColorInterpretation getEnum(java.awt.image.ColorModel model,
                                          int band)
                                   throws java.lang.IllegalArgumentException
Deprecated. 
Returns the enum for the specified color model and band number.

Parameters:
model - The color model.
band - The band to query.
Returns:
The enum for the specified color model and band number.
Throws:
java.lang.IllegalArgumentException - if the band number is not in the valid range.

getName

public java.lang.String getName(java.util.Locale locale)
Deprecated. 
Returns this enum's name in the specified locale. If no name is available for the specified locale, a default one will be used.

Parameters:
locale - The locale, or null for the default locale.
Returns:
Enum's name in the specified locale.


Copyright © GeoTools. All Rights Reserved.