| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.haar.Colour
public class Colour
A double precisiong RGB colour class
| Constructor Summary | |
|---|---|
Colour()
Creates a default colour (0.0, 0.0, 0.0)  | 
|
Colour(java.awt.Color col)
Creates a colour  | 
|
Colour(double r,
       double g,
       double b)
Creates a colour  | 
|
Colour(int r,
       int g,
       int b)
Creates a colour  | 
|
| Method Summary | |
|---|---|
 double | 
getBlue()
 | 
 java.awt.Color | 
getColor()
 | 
 double | 
getDoubleVal()
Get the SAT value  | 
 double | 
getGreen()
 | 
 double | 
getRed()
 | 
 void | 
setBlue(double b)
Set the blue  | 
 void | 
setGreen(double g)
Set the green  | 
 void | 
setRed(double r)
Set the red  | 
 java.lang.String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public Colour()
public Colour(java.awt.Color col)
col - A Color object to create the colour from
public Colour(int r,
              int g,
              int b)
r - The red component of the colour (between 0 and 255 for normal colours)g - The green component of the colour (between 0 and 255 for normal colours)b - The blue component of the colour (between 0 and 255 for normal colours)
public Colour(double r,
              double g,
              double b)
r - The red component of the colour (between -0.5 and 0.5 for normal colours)g - The green component of the colour (between -0.5 and 0.5 for normal colours)b - The blue component of the colour (between -0.5 and 0.5 for normal colours)| Method Detail | 
|---|
public java.awt.Color getColor()
public double getRed()
public double getGreen()
public double getBlue()
public void setRed(double r)
r - the red component of the colourpublic void setGreen(double g)
g - set the green component of the colourpublic void setBlue(double b)
b - the blue component of the colourpublic java.lang.String toString()
toString in class java.lang.Objectpublic double getDoubleVal()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||