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 intFACTOR_4BITprotected MutableIndexColorModel.PaletteChange[]initialChangesprotected intlastRowprotected MutableIndexColorModelmutablePaletteprotected 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.ColorModelgetColorModel(java.awt.image.IndexColorModel colorModel, int rowIndex, boolean laced)(package private) voidreadChunk(java.io.DataInput input)protected booleanskipLaced()(package private) voidwriteChunk(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:
writeChunkin classIFFChunk
-
getColorModel
public java.awt.image.ColorModel getColorModel(java.awt.image.IndexColorModel colorModel, int rowIndex, boolean laced)- Specified by:
getColorModelin interfaceMultiPalette
-
skipLaced
protected boolean skipLaced()
-
-