Top Fields Constructors Methods
org.eclipse.swt.internal.image

pack-priv Class PngPlteChunk

extends PngChunk
Class Inheritance
Imports
org.eclipse.swt.*, org.eclipse.swt.graphics.*

Field Summary

Modifier and TypeField and Description
pack-priv int
Inherited from org.eclipse.swt.internal.image.PngChunk:
CHUNK_IDATCHUNK_IENDCHUNK_IHDRCHUNK_PLTECHUNK_tRNSCHUNK_UNKNOWNCRC_TABLEDATA_OFFSETlengthLENGTH_FIELD_LENGTHLENGTH_OFFSETMIN_LENGTHreferenceTYPE_FIELD_LENGTHTYPE_IDATTYPE_IENDTYPE_IHDRTYPE_OFFSETTYPE_PLTETYPE_tRNS

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
PngPlteChunk(byte[] reference)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
contributeToString(StringBuilder buffer)

Overrides org.eclipse.swt.internal.image.PngChunk.contributeToString.

Provided so that subclasses can override and add data to the toString() call.
pack-priv int
pack-priv PaletteData
getPaletteData()

Get a PaletteData object representing the colors stored in this PLTE chunk.

pack-priv int
getPaletteSize()

Get the number of colors in this palette.

pack-priv void
setPaletteData(PaletteData palette)

Set the data of a PLTE chunk to the colors stored in the specified PaletteData object.

pack-priv void
validate(PngFileReadState readState, PngIhdrChunk headerChunk)

Overrides org.eclipse.swt.internal.image.PngChunk.validate.

Answer whether the chunk is a valid PLTE chunk.
Inherited from org.eclipse.swt.internal.image.PngChunk:
checkCRCcomputeCRCgetCRCgetDatagetInt16getInt32getLengthgetReferencegetSizegetTypeBytesisCriticalreadNextFromStreamsetCRCsetDatasetInt16setInt32setLengthsetReferencesetTypetoStringtypeMatchesArray

Field Detail

paletteSizeback to summary
pack-priv int paletteSize

Constructor Detail

PngPlteChunkback to summary
pack-priv PngPlteChunk(PaletteData palette)
PngPlteChunkback to summary
pack-priv PngPlteChunk(byte[] reference)

Method Detail

contributeToStringback to summary
pack-priv void contributeToString(StringBuilder buffer)

Overrides org.eclipse.swt.internal.image.PngChunk.contributeToString.

Doc from org.eclipse.swt.internal.image.PngChunk.contributeToString.

Provided so that subclasses can override and add data to the toString() call.

Annotations
@Override
getChunkTypeback to summary
pack-priv int getChunkType()

Overrides org.eclipse.swt.internal.image.PngChunk.getChunkType.

Annotations
@Override
getPaletteDataback to summary
pack-priv PaletteData getPaletteData()

Get a PaletteData object representing the colors stored in this PLTE chunk. The result should be cached as the PLTE chunk does not store the palette data created.

getPaletteSizeback to summary
pack-priv int getPaletteSize()

Get the number of colors in this palette.

setPaletteDataback to summary
pack-priv void setPaletteData(PaletteData palette)

Set the data of a PLTE chunk to the colors stored in the specified PaletteData object.

validateback to summary
pack-priv void validate(PngFileReadState readState, PngIhdrChunk headerChunk)

Overrides org.eclipse.swt.internal.image.PngChunk.validate.

Answer whether the chunk is a valid PLTE chunk.

Annotations
@Override