org.hd.d.pg2k.ai.scorer.parameterised
Enum PixelComponent

java.lang.Object
  extended by java.lang.Enum<PixelComponent>
      extended by org.hd.d.pg2k.ai.scorer.parameterised.PixelComponent
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PixelComponent>

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

Enum for pixel-value constituent/component to sample.


Enum Constant Summary
ALPHA
          Alpha.
B
          Blue (of RGB).
BRI
          Brightness (of HSB).
G
          Green (of RGB).
HUE
          Hue (of HSB).
R
          Red (of RGB).
SAT
          Saturation (of HSB).
Y
          Y (of YUV).
 
Method Summary
static PixelComponent valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PixelComponent[] 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

ALPHA

public static final PixelComponent ALPHA
Alpha.


R

public static final PixelComponent R
Red (of RGB).


G

public static final PixelComponent G
Green (of RGB).


B

public static final PixelComponent B
Blue (of RGB).


HUE

public static final PixelComponent HUE
Hue (of HSB).


SAT

public static final PixelComponent SAT
Saturation (of HSB).


BRI

public static final PixelComponent BRI
Brightness (of HSB).


Y

public static final PixelComponent Y
Y (of YUV).

Method Detail

values

public static PixelComponent[] 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 (PixelComponent c : PixelComponent.values())
    System.out.println(c);

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

valueOf

public static PixelComponent 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

DHD Multimedia Gallery V1.60.69

Copyright (c) 1996-2012, Damon Hart-Davis. All rights reserved.