org.opengis.coverage
Class PaletteInterpretation

Show UML class diagram
Object
  extended by CodeList<PaletteInterpretation>
      extended by 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
See Also:
ColorInterpretation, SampleDimension, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class CodeList
CodeList.Filter
 
Field Summary
static PaletteInterpretation CMYK
          CYMK (Cyan Yellow Magenta blacK) color palette.
static PaletteInterpretation GRAY
          Gray Scale color palette.
static PaletteInterpretation HLS
          HSL (Hue Saturation Lightness) color palette.
static PaletteInterpretation RGB
          RGB (Red Green Blue) color palette.
 
Method Summary
 PaletteInterpretation[] family()
          Returns the list of codes of the same kind than this code list element.
static PaletteInterpretation valueOf(String code)
          Returns the palette interpretation that matches the given string, or returns a new one if none match it.
static PaletteInterpretation[] values()
          Returns the list of PaletteInterpretations.
 
Methods inherited from class CodeList
compareTo, equals, identifier, name, names, ordinal, readResolve, toString, valueOf, valueOf
 
Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GRAY

@UML(identifier="CV_Gray",
     obligation=CONDITIONAL,
     specification=OGC_01004)
public static final PaletteInterpretation GRAY
Gray Scale color palette.

See Also:
ColorSpace.TYPE_GRAY

RGB

@UML(identifier="CV_RGB",
     obligation=CONDITIONAL,
     specification=OGC_01004)
public static final PaletteInterpretation RGB
RGB (Red Green Blue) color palette.

See Also:
ColorSpace.TYPE_RGB

CMYK

@UML(identifier="CV_CMYK",
     obligation=CONDITIONAL,
     specification=OGC_01004)
public static final PaletteInterpretation CMYK
CYMK (Cyan Yellow Magenta blacK) color palette.

See Also:
ColorSpace.TYPE_CMYK

HLS

@UML(identifier="CV_HLS",
     obligation=CONDITIONAL,
     specification=OGC_01004)
public static final PaletteInterpretation HLS
HSL (Hue Saturation Lightness) color palette.

See Also:
ColorSpace.TYPE_HLS
Method Detail

values

public static PaletteInterpretation[] values()
Returns the list of PaletteInterpretations.

Returns:
The list of codes declared in the current JVM.

family

public PaletteInterpretation[] family()
Returns the list of codes of the same kind than this code list element. Invoking this method is equivalent to invoking values(), except that this method can be invoked on an instance of the parent CodeList class.

Specified by:
family in class CodeList<PaletteInterpretation>
Returns:
The codes of the same kind than this code.

valueOf

public static PaletteInterpretation valueOf(String code)
Returns the palette interpretation that matches the given string, or returns a new one if none match it. More specifically, this methods returns the first instance for which name().equals(code) returns true. If no existing instance is found, then a new one is created for the given name.

Parameters:
code - The name of the code to fetch or to create.
Returns:
A code matching the given name.


Copyright © 1994-2013 Open Geospatial Consortium. All Rights Reserved.