Package org.geotools.api.coverage
Class PaletteInterpretation
- All Implemented Interfaces:
Serializable,Comparable<PaletteInterpretation>
@UML(identifier="CV_PaletteInterpretation",
specification=OGC_01004)
public final class PaletteInterpretation
extends CodeList<PaletteInterpretation>
Describes the color entry in a color table.
- Since:
- GeoAPI 1.0
- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PaletteInterpretationCYMK (Cyan Yellow Magenta blacK) color palette.static final PaletteInterpretationGray Scale color palette.static final PaletteInterpretationHSL (Hue Saturation Lightness) color palette.static final PaletteInterpretationRGB (Red Green Blue) color palette. -
Method Summary
Modifier and TypeMethodDescriptionfamily()Returns the list of enumerations of the same kind than this enum.static PaletteInterpretationReturns the palette interpretation that matches the given string, or returns a new one if none match it.static PaletteInterpretation[]values()Returns the list ofPaletteInterpretations.
-
Field Details
-
GRAY
@UML(identifier="CV_Gray", obligation=CONDITIONAL, specification=OGC_01004) public static final PaletteInterpretation GRAYGray Scale color palette.- See Also:
-
RGB
@UML(identifier="CV_RGB", obligation=CONDITIONAL, specification=OGC_01004) public static final PaletteInterpretation RGBRGB (Red Green Blue) color palette.- See Also:
-
CMYK
@UML(identifier="CV_CMYK", obligation=CONDITIONAL, specification=OGC_01004) public static final PaletteInterpretation CMYKCYMK (Cyan Yellow Magenta blacK) color palette.- See Also:
-
HLS
@UML(identifier="CV_HLS", obligation=CONDITIONAL, specification=OGC_01004) public static final PaletteInterpretation HLSHSL (Hue Saturation Lightness) color palette.- See Also:
-
-
Method Details
-
values
Returns the list ofPaletteInterpretations.- 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:
familyin classCodeList<PaletteInterpretation>- Returns:
- The codes of the same kind than this code.
-
valueOf
Returns the palette 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.
-