Class AbstractMultiPaletteChunk
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.iff.IFFChunk
-
- com.twelvemonkeys.imageio.plugins.iff.AbstractMultiPaletteChunk
-
- All Implemented Interfaces:
MultiPalette
abstract class AbstractMultiPaletteChunk extends IFFChunk implements MultiPalette
AbstractMultiPaletteChunk- Version:
- $Id: AbstractMultiPaletteChunk.java,v 1.0 30.03.12 15:57 haraldk Exp$
-
-
Field Summary
Fields Modifier and Type Field Description protected MutableIndexColorModel.PaletteChange[][]
changes
(package private) static int
FACTOR_4BIT
protected MutableIndexColorModel.PaletteChange[]
initialChanges
protected int
lastRow
protected MutableIndexColorModel
mutablePalette
protected java.lang.ref.WeakReference<java.awt.image.IndexColorModel>
originalPalette
-
Fields inherited from class com.twelvemonkeys.imageio.plugins.iff.IFFChunk
chunkId, chunkLength
-
-
Constructor Summary
Constructors Constructor Description AbstractMultiPaletteChunk(int chunkId, int chunkLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.ColorModel
getColorModel(java.awt.image.IndexColorModel colorModel, int rowIndex, boolean laced)
(package private) void
readChunk(java.io.DataInput input)
protected boolean
skipLaced()
(package private) void
writeChunk(java.io.DataOutput output)
-
-
-
Field Detail
-
FACTOR_4BIT
static final int FACTOR_4BIT
- See Also:
- Constant Field Values
-
initialChanges
protected MutableIndexColorModel.PaletteChange[] initialChanges
-
changes
protected MutableIndexColorModel.PaletteChange[][] changes
-
lastRow
protected int lastRow
-
originalPalette
protected java.lang.ref.WeakReference<java.awt.image.IndexColorModel> originalPalette
-
mutablePalette
protected MutableIndexColorModel mutablePalette
-
-
Method Detail
-
readChunk
void readChunk(java.io.DataInput input) throws java.io.IOException
-
writeChunk
void writeChunk(java.io.DataOutput output)
- Specified by:
writeChunk
in classIFFChunk
-
getColorModel
public java.awt.image.ColorModel getColorModel(java.awt.image.IndexColorModel colorModel, int rowIndex, boolean laced)
- Specified by:
getColorModel
in interfaceMultiPalette
-
skipLaced
protected boolean skipLaced()
-
-