de.unihalle.informatik.MiToBo.color.conversion
Enum RGBToHSXConverter.ColorChannel

java.lang.Object
  extended by java.lang.Enum<RGBToHSXConverter.ColorChannel>
      extended by de.unihalle.informatik.MiToBo.color.conversion.RGBToHSXConverter.ColorChannel
All Implemented Interfaces:
Serializable, Comparable<RGBToHSXConverter.ColorChannel>
Enclosing class:
RGBToHSXConverter

public static enum RGBToHSXConverter.ColorChannel
extends Enum<RGBToHSXConverter.ColorChannel>

Supported Color Channels.


Enum Constant Summary
BLUE
          Blue Color Channel.
BRIGHTNESS
          Brightness Color Channel.
GREEN
          Green Color Channel.
HUE
          Hue Color Channel.
INTENSITY
          Intensity Color Channel.
RED
          Red Color Channel.
SATURATION
          Saturation Color Channel.
VALUE
          Value Color Channel.
 
Method Summary
 int getIndex()
          The index of this channel.
 int getMax()
          The maximum value of this channel.
 int getMin()
          The minimum value of this channel.
static RGBToHSXConverter.ColorChannel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RGBToHSXConverter.ColorChannel[] 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

RED

public static final RGBToHSXConverter.ColorChannel RED
Red Color Channel.


GREEN

public static final RGBToHSXConverter.ColorChannel GREEN
Green Color Channel.


BLUE

public static final RGBToHSXConverter.ColorChannel BLUE
Blue Color Channel.


HUE

public static final RGBToHSXConverter.ColorChannel HUE
Hue Color Channel.


SATURATION

public static final RGBToHSXConverter.ColorChannel SATURATION
Saturation Color Channel.


INTENSITY

public static final RGBToHSXConverter.ColorChannel INTENSITY
Intensity Color Channel.


VALUE

public static final RGBToHSXConverter.ColorChannel VALUE
Value Color Channel.


BRIGHTNESS

public static final RGBToHSXConverter.ColorChannel BRIGHTNESS
Brightness Color Channel.

Method Detail

values

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

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

valueOf

public static RGBToHSXConverter.ColorChannel valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getIndex

public int getIndex()
The index of this channel.

Returns:

getMin

public int getMin()
The minimum value of this channel.

Returns:

getMax

public int getMax()
The maximum value of this channel.

Returns:


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.