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

public Class PngChunkOFFS

extends PngChunkSingle
Class Inheritance
Imports
jogamp.opengl.util.pngj.ImageInfo, .PngHelperInternal, .PngjException

oFFs chunk.

see http://www.libpng.org/pub/png/spec/register/pngext-1.3.0-pdg.html#C.oFFs

Field Summary

Modifier and TypeField and Description
public static final String
private long
private long
private int

Constructor Summary

AccessConstructor and Description
public
PngChunkOFFS(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 PngChunk.ChunkOrderingConstraint
public long
public long
public int
getUnits()

0: pixel, 1:micrometer

public void
parseFromRaw(final ChunkRaw chunk)

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

Parses raw chunk and fill inside data.
public void
setPosX(final long posX)

public void
setPosY(final long posY)

public void
setUnits(final int units)

0: pixel, 1:micrometer

Inherited from jogamp.opengl.util.pngj.chunks.PngChunkSingle:
allowsMultipleequalshashCode

Field Detail

IDback to summary
public static final String ID
posXback to summary
private long posX
posYback to summary
private long posY
unitsback to summary
private int units

Constructor Detail

PngChunkOFFSback to summary
public PngChunkOFFS(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
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
getPosXback to summary
public long getPosX()
getPosYback to summary
public long getPosY()
getUnitsback to summary
public int getUnits()

0: pixel, 1:micrometer

parseFromRawback to summary
public void parseFromRaw(final ChunkRaw chunk)

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
setPosXback to summary
public void setPosX(final long posX)
setPosYback to summary
public void setPosY(final long posY)
setUnitsback to summary
public void setUnits(final int units)

0: pixel, 1:micrometer