DESY ACOP Beans Home

de.desy.acop.video.displayer
Enum ColorMap

java.lang.Object
  extended by java.lang.Enum<ColorMap>
      extended by de.desy.acop.video.displayer.ColorMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ColorMap>

public enum ColorMap
extends java.lang.Enum<ColorMap>

Color map enumeration. Using a memorization "cache", which stores previously computed lookup tables.

Author:
mdavid, sweisse

Enum Constant Summary
GRAYSCALE
          grayscale mode
JET
          MATLAB JET false color mode
NONE
           
PITZ
          PITZ false color mode
 
Method Summary
abstract  java.awt.image.IndexColorModel createLUT(int bits)
          Creates an indexed color model.
Abstract method, have to be implemented for all enumerated values
abstract  java.awt.image.IndexColorModel getLUT(int bits)
          Returns indexed color model using caching.
Abstract method, have to be implemented for all enumerated values
static ColorMap valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ColorMap[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final ColorMap NONE

GRAYSCALE

public static final ColorMap GRAYSCALE
grayscale mode


PITZ

public static final ColorMap PITZ
PITZ false color mode


JET

public static final ColorMap JET
MATLAB JET false color mode

Method Detail

values

public static ColorMap[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ColorMap c : ColorMap.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ColorMap valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

createLUT

public abstract java.awt.image.IndexColorModel createLUT(int bits)
Creates an indexed color model.
Abstract method, have to be implemented for all enumerated values

Parameters:
bits - - the number of bits each pixel occupies
Returns:
indexed color model representation of the lookup table
Throws:
java.lang.IllegalArgumentException - - if bits is less than 1 or greater than 16

getLUT

public abstract java.awt.image.IndexColorModel getLUT(int bits)
Returns indexed color model using caching.
Abstract method, have to be implemented for all enumerated values

Parameters:
bits - - bits per pixel
Returns:
indexed color model representation of the lookup table


Copyright © 2010. All Rights Reserved.