Class ColorTable

java.lang.Object
  extended byColorTable

public class ColorTable
extends java.lang.Object

Handles the color table


Constructor Summary
ColorTable()
           
 
Method Summary
 void addToColorTable(int color, int Y, int U, int V)
          Add a color value to the color table
 int getUmax(int light, int color)
          Returns the U maximum for specified color and Y (light) value
 int getUmin(int light, int color)
          Returns the U minimum for specified color and Y (light) value
 int getVmax(int light, int color)
           
 int getVmin(int light, int color)
          Returns the V minimum for specified color and Y (light) value
 boolean isInColorTable(int color, int Y, int U, int V)
          Returns true if the color specified is in color tabel
 void resetColorTable()
          Reset the color table
 void undoColorTable(int color)
          Undo last change for specified color
 void writeColorTable(int Umin, int Umax, int Vmin, int Vmax, int light, int color)
          Set the boundaries for a specified color and light
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorTable

public ColorTable()
Method Detail

isInColorTable

public boolean isInColorTable(int color,
                              int Y,
                              int U,
                              int V)
Returns true if the color specified is in color tabel


addToColorTable

public void addToColorTable(int color,
                            int Y,
                            int U,
                            int V)
Add a color value to the color table


resetColorTable

public void resetColorTable()
Reset the color table


undoColorTable

public void undoColorTable(int color)
Undo last change for specified color


getUmin

public int getUmin(int light,
                   int color)
Returns the U minimum for specified color and Y (light) value


getUmax

public int getUmax(int light,
                   int color)
Returns the U maximum for specified color and Y (light) value


getVmin

public int getVmin(int light,
                   int color)
Returns the V minimum for specified color and Y (light) value


getVmax

public int getVmax(int light,
                   int color)

writeColorTable

public void writeColorTable(int Umin,
                            int Umax,
                            int Vmin,
                            int Vmax,
                            int light,
                            int color)
Set the boundaries for a specified color and light