Top Description Fields Constructors Methods
jogamp.opengl.util.pngj.chunks

public Class PngChunkSPLT

extends PngChunkMultiple
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .IOException, jogamp.opengl.util.pngj.ImageInfo, .PngHelperInternal, .PngjException

sPLT chunk.

see http://www.w3.org/TR/PNG/#11sPLT

Field Summary

Modifier and TypeField and Description
public static final String
private int[]
private String
private int

Constructor Summary

AccessConstructor and Description
public
PngChunkSPLT(final ImageInfo info)

Method Summary

Modifier and TypeMethod and Description
public void
cloneDataFromRead(final PngChunk other)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Makes a copy of the chunk.
public ChunkRaw
createRawChunk()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Creates the physical chunk.
public int
public PngChunk.ChunkOrderingConstraint
public int[]
public String
public int
public void
parseFromRaw(final ChunkRaw c)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Parses raw chunk and fill inside data.
public void
setPalette(final int[] palette)

public void
setPalName(final String palName)

public void
setSampledepth(final int sampledepth)

Inherited from jogamp.opengl.util.pngj.chunks.PngChunkMultiple:
allowsMultiple

Field Detail

IDback to summary
public static final String ID
paletteback to summary
private int[] palette
palNameback to summary
private String palName
sampledepthback to summary
private int sampledepth

Constructor Detail

PngChunkSPLTback to summary
public PngChunkSPLT(final ImageInfo info)

Method Detail

cloneDataFromReadback to summary
public void cloneDataFromRead(final PngChunk other)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Makes a copy of the chunk.

This is used when copying chunks from a reader to a writer

It should normally be a deep copy, and after the cloning this.equals(other) should return true

Annotations
@Override
createRawChunkback to summary
public ChunkRaw createRawChunk()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Creates the physical chunk. This is used when writing (serialization). Each particular chunk class implements its own logic.

Returns:ChunkRaw

A newly allocated and filled raw chunk

Annotations
@Override
getNentriesback to summary
public int getNentries()
getOrderingConstraintback to summary
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.getOrderingConstraint.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.getOrderingConstraint.

see ChunkOrderingConstraint

Annotations
@Override
getPaletteback to summary
public int[] getPalette()
getPalNameback to summary
public String getPalName()
getSampledepthback to summary
public int getSampledepth()
parseFromRawback to summary
public void parseFromRaw(final ChunkRaw c)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Parses raw chunk and fill inside data. This is used when reading (deserialization). Each particular chunk class implements its own logic.

Annotations
@Override
setPaletteback to summary
public void setPalette(final int[] palette)
setPalNameback to summary
public void setPalName(final String palName)
setSampledepthback to summary
public void setSampledepth(final int sampledepth)