ar.com.hjg.pngj.chunks
Class PngChunkSPLT

java.lang.Object
  extended by ar.com.hjg.pngj.chunks.PngChunk
      extended by ar.com.hjg.pngj.chunks.PngChunkMultiple
          extended by ar.com.hjg.pngj.chunks.PngChunkSPLT

public class PngChunkSPLT
extends PngChunkMultiple


Nested Class Summary
 
Nested classes/interfaces inherited from class ar.com.hjg.pngj.chunks.PngChunk
PngChunk.ChunkOrderingConstraint
 
Field Summary
static String ID
           
 
Fields inherited from class ar.com.hjg.pngj.chunks.PngChunk
crit, id, pub, safe
 
Constructor Summary
PngChunkSPLT(ImageInfo info)
           
 
Method Summary
 void cloneDataFromRead(PngChunk other)
          Makes a copy of the chunk.
 ChunkRaw createRawChunk()
          Creates the physical chunk.
 int getNentries()
           
 PngChunk.ChunkOrderingConstraint getOrderingConstraint()
          see PngChunk.ChunkOrderingConstraint
 int[] getPalette()
           
 String getPalName()
           
 int getSampledepth()
           
 void parseFromRaw(ChunkRaw c)
          Parses raw chunk and fill inside data.
 void setPalette(int[] palette)
           
 void setPalName(String palName)
           
 void setSampledepth(int sampledepth)
           
 
Methods inherited from class ar.com.hjg.pngj.chunks.PngChunkMultiple
allowsMultiple
 
Methods inherited from class ar.com.hjg.pngj.chunks.PngChunk
cloneChunk, factory, factoryFromId, factoryRegister, getChunkGroup, hasPriority, isKnown, setChunkGroup, setPriority, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values
Constructor Detail

PngChunkSPLT

public PngChunkSPLT(ImageInfo info)
Method Detail

cloneDataFromRead

public void cloneDataFromRead(PngChunk other)
Description copied from class: PngChunk
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

Specified by:
cloneDataFromRead in class PngChunk

createRawChunk

public ChunkRaw createRawChunk()
Description copied from class: PngChunk
Creates the physical chunk. This is used when writing (serialization). Each particular chunk class implements its own logic.

Specified by:
createRawChunk in class PngChunk
Returns:
A newly allocated and filled raw chunk

getNentries

public int getNentries()

getOrderingConstraint

public PngChunk.ChunkOrderingConstraint getOrderingConstraint()
Description copied from class: PngChunk
see PngChunk.ChunkOrderingConstraint

Specified by:
getOrderingConstraint in class PngChunk

getPalette

public int[] getPalette()

getPalName

public String getPalName()

getSampledepth

public int getSampledepth()

parseFromRaw

public void parseFromRaw(ChunkRaw c)
Description copied from class: PngChunk
Parses raw chunk and fill inside data. This is used when reading (deserialization). Each particular chunk class implements its own logic.

Specified by:
parseFromRaw in class PngChunk

setPalette

public void setPalette(int[] palette)

setPalName

public void setPalName(String palName)

setSampledepth

public void setSampledepth(int sampledepth)