Package org.geotools.api.coverage
Class ColorInterpretation
- All Implemented Interfaces:
Serializable
,Comparable<ColorInterpretation>
@UML(identifier="CV_ColorInterpretation",
specification=OGC_01004)
public final class ColorInterpretation
extends CodeList<ColorInterpretation>
Specifies the mapping of a band to a color model component.
- Since:
- GeoAPI 1.0
- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ColorInterpretation
Alpha Band for the RGB color model components.static final ColorInterpretation
Black Band for the CMYK color model.static final ColorInterpretation
Blue Band for the RGB color model components.static final ColorInterpretation
Cyan Band for the CMYK color model.static final ColorInterpretation
Band is an index into a lookup table.static final ColorInterpretation
Greend Band for the RGB color model components.static final ColorInterpretation
Hue Band for the HLS color model.static final ColorInterpretation
Lightness Band for the HLS color model.static final ColorInterpretation
Magenta Band for the CMYK color model.static final ColorInterpretation
Band is a color index into a color table.static final ColorInterpretation
Red Band for the RGB color model components.static final ColorInterpretation
Saturation Band for the HLS color model.static final ColorInterpretation
Band is not associated with a color model component.static final ColorInterpretation
Yellow Band for the CMYK color model. -
Method Summary
Modifier and TypeMethodDescriptionfamily()
Returns the list of enumerations of the same kind than this enum.static ColorInterpretation
Returns the color interpretation that matches the given string, or returns a new one if none match it.static ColorInterpretation[]
values()
Returns the list ofColorInterpretation
s.
-
Field Details
-
UNDEFINED
@UML(identifier="CV_Undefined", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation UNDEFINEDBand is not associated with a color model component. -
GRAY_INDEX
@UML(identifier="CV_GrayIndex", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation GRAY_INDEXBand is an index into a lookup table.- See Also:
-
PALETTE_INDEX
@UML(identifier="CV_PaletteIndex", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation PALETTE_INDEXBand is a color index into a color table.- See Also:
-
RED_BAND
@UML(identifier="CV_RedBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation RED_BANDRed Band for the RGB color model components. -
GREEN_BAND
@UML(identifier="CV_GreenBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation GREEN_BANDGreend Band for the RGB color model components.- See Also:
-
BLUE_BAND
@UML(identifier="CV_BlueBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation BLUE_BANDBlue Band for the RGB color model components. -
ALPHA_BAND
@UML(identifier="CV_AlphaBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation ALPHA_BANDAlpha Band for the RGB color model components. Alpha band may or may not be present.- See Also:
-
HUE_BAND
@UML(identifier="CV_HueBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation HUE_BANDHue Band for the HLS color model. -
SATURATION_BAND
@UML(identifier="CV_SaturationBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation SATURATION_BANDSaturation Band for the HLS color model.- See Also:
-
LIGHTNESS_BAND
@UML(identifier="CV_LightnessBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation LIGHTNESS_BANDLightness Band for the HLS color model.- See Also:
-
CYAN_BAND
@UML(identifier="CV_CyanBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation CYAN_BANDCyan Band for the CMYK color model. -
MAGENTA_BAND
@UML(identifier="CV_MagentaBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation MAGENTA_BANDMagenta Band for the CMYK color model. -
YELLOW_BAND
@UML(identifier="CV_YellowBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation YELLOW_BANDYellow Band for the CMYK color model. -
BLACK_BAND
@UML(identifier="CV_BlackBand", obligation=CONDITIONAL, specification=OGC_01004) public static final ColorInterpretation BLACK_BANDBlack Band for the CMYK color model.
-
-
Method Details
-
values
Returns the list ofColorInterpretation
s.- Returns:
- The list of codes declared in the current JVM.
-
family
Returns the list of enumerations of the same kind than this enum.- Specified by:
family
in classCodeList<ColorInterpretation>
- Returns:
- The codes of the same kind than this code.
-
valueOf
Returns the color interpretation that matches the given string, or returns a new one if none match it.- Parameters:
code
- The name of the code to fetch or to create.- Returns:
- A code matching the given name.
-