j2d.color
Class ColorHash

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by j2d.color.ColorHash
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class ColorHash
extends java.util.Hashtable

See Also:
Serialized Form

Constructor Summary
ColorHash()
           
ColorHash(ShortImageBean sib)
          Construct a unique list of colors in the color has table.
 
Method Summary
 void addShortArrays(short[][] r, short[][] g, short[][] b)
           
 int countColors()
           
 java.awt.Color[] getColors()
           
 FloatImageBean getFloatImageBean()
           
 java.util.Vector getVector()
          Convert the internally held Hash table into a vector of colors
static void main(java.lang.String[] args)
           
 void printColors()
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorHash

public ColorHash(ShortImageBean sib)
Construct a unique list of colors in the color has table.


ColorHash

public ColorHash()
Method Detail

addShortArrays

public void addShortArrays(short[][] r,
                           short[][] g,
                           short[][] b)

countColors

public int countColors()

printColors

public void printColors()

getVector

public java.util.Vector getVector()
Convert the internally held Hash table into a vector of colors

Returns:
color vector

getColors

public java.awt.Color[] getColors()

getFloatImageBean

public FloatImageBean getFloatImageBean()

main

public static void main(java.lang.String[] args)