uk.org.redfelineninja.image
Class HashColorModel

java.lang.Object
  |
  +--java.awt.image.ColorModel
        |
        +--uk.org.redfelineninja.image.HashColorModel
All Implemented Interfaces:
java.awt.Transparency

public class HashColorModel
extends java.awt.image.ColorModel


Field Summary
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
HashColorModel()
           
 
Method Summary
 void addTranslation(int from, int to)
           
 int getAlpha(int pixel)
           
 int getBlue(int pixel)
           
 int getGreen(int pixel)
           
 int getRed(int pixel)
           
 int getRGB(int pixel)
           
 void removeTranslation(int from)
           
 
Methods inherited from class java.awt.image.ColorModel
coerceData, createCompatibleSampleModel, createCompatibleWritableRaster, equals, finalize, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied, isCompatibleRaster, isCompatibleSampleModel, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashColorModel

public HashColorModel()
Method Detail

addTranslation

public void addTranslation(int from,
                           int to)

removeTranslation

public void removeTranslation(int from)

getRed

public int getRed(int pixel)
Specified by:
getRed in class java.awt.image.ColorModel

getGreen

public int getGreen(int pixel)
Specified by:
getGreen in class java.awt.image.ColorModel

getBlue

public int getBlue(int pixel)
Specified by:
getBlue in class java.awt.image.ColorModel

getAlpha

public int getAlpha(int pixel)
Specified by:
getAlpha in class java.awt.image.ColorModel

getRGB

public int getRGB(int pixel)
Overrides:
getRGB in class java.awt.image.ColorModel