tabs.hair
Class HairColorData

java.lang.Object
  extended by tabs.hair.HairColorData

public class HairColorData
extends java.lang.Object

Instances of this class represent a hair color read from the XML colors file


Constructor Summary
HairColorData(java.lang.String blendingMode, java.lang.String name, java.lang.String red, java.lang.String green, java.lang.String blue)
          Creates a new instance of this class given it's hair color data
 
Method Summary
 int getBlendingMode()
          The blending mode that should be used with this hair color
 int getBlue()
          The 0-255 INT value for the blue channel
 int getGreen()
          The 0-255 INT value for the green channel
 java.lang.String getName()
          The untranslated code name of this hair color
 int getRed()
          The 0-255 INT value for the red channel
 java.lang.String toString()
          A string representation for this hair color
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HairColorData

public HairColorData(java.lang.String blendingMode,
                     java.lang.String name,
                     java.lang.String red,
                     java.lang.String green,
                     java.lang.String blue)
Creates a new instance of this class given it's hair color data

Parameters:
blendingMode - the blending mode that should be used with this hair color
name - the untranslated code name of this hair color
red - an 0-255 String value for the red channel
green - an 0-255 String value for the green channel
blue - an 0-255 String value for the blue channel
Method Detail

getBlendingMode

public int getBlendingMode()
The blending mode that should be used with this hair color

Returns:
an INT that represents the used blending mode

getName

public java.lang.String getName()
The untranslated code name of this hair color

Returns:
an String containing the untranslated code name for this hair color

getBlue

public int getBlue()
The 0-255 INT value for the blue channel

Returns:
the channel value

getGreen

public int getGreen()
The 0-255 INT value for the green channel

Returns:
the channel value

getRed

public int getRed()
The 0-255 INT value for the red channel

Returns:
the channel value

toString

public java.lang.String toString()
A string representation for this hair color

Overrides:
toString in class java.lang.Object