Class MutableIndexColorModel

  • All Implemented Interfaces:
    java.awt.Transparency

    final class MutableIndexColorModel
    extends java.awt.image.ColorModel
    A mutable indexed color model. For use with images that exploits Amiga hardware to change the color lookup table between scan lines.
    Version:
    $Id: MutableIndexColorModel.java,v 1.0 29.03.12 15:00 haraldk Exp$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static int MP_REG_IGNORE  
      (package private) int[] rgbs  
      • Fields inherited from class java.awt.image.ColorModel

        pixel_bits, transferType
      • Fields inherited from interface java.awt.Transparency

        BITMASK, OPAQUE, TRANSLUCENT
    • Constructor Summary

      Constructors 
      Constructor Description
      MutableIndexColorModel​(java.awt.image.IndexColorModel base)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void adjustColorMap​(MutableIndexColorModel.PaletteChange[] changes)  
      int getAlpha​(int pixel)  
      int getBlue​(int pixel)  
      int getGreen​(int pixel)  
      int getMapSize()  
      int getRed​(int pixel)  
      int getRGB​(int pixel)  
      private static int[] getRGBs​(java.awt.image.IndexColorModel colorModel)  
      private void updateRGB​(int index, int rgb)  
      • 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

        clone, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MutableIndexColorModel

        public MutableIndexColorModel​(java.awt.image.IndexColorModel base)
    • Method Detail

      • getRGBs

        private static int[] getRGBs​(java.awt.image.IndexColorModel colorModel)
      • getRGB

        public int getRGB​(int pixel)
        Overrides:
        getRGB in class java.awt.image.ColorModel
      • 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
      • updateRGB

        private void updateRGB​(int index,
                               int rgb)
      • getMapSize

        public int getMapSize()