|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.jpeg.colorspace.boxes.JP2Box
ucar.jpeg.colorspace.boxes.PaletteBox
public final class PaletteBox
This class models the palette box contained in a JP2 image.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ucar.jpeg.colorspace.boxes.JP2Box |
---|
JP2Box.BoxType |
Field Summary |
---|
Fields inherited from class ucar.jpeg.colorspace.boxes.JP2Box |
---|
boxEnd, boxStart, dataStart, eol, in, length, type |
Constructor Summary | |
---|---|
PaletteBox(RandomAccessIO in,
int boxStart)
Construct a PaletteBox from an input image. |
Method Summary | |
---|---|
short |
getBitDepth(int column)
Return the bitdepth of palette entries. |
int |
getEntry(int column,
int entry)
Return an entry for a given index and column. |
int |
getNumColumns()
Return the number of palette columns. |
int |
getNumEntries()
Return the number of palette entries. |
boolean |
isSigned(int column)
Are entries signed predicate. |
boolean |
isUnSigned(int column)
Are entries unsigned predicate. |
String |
toString()
Return a suitable String representation of the class instance. |
Methods inherited from class ucar.jpeg.colorspace.boxes.JP2Box |
---|
getTypeString, getTypeString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PaletteBox(RandomAccessIO in, int boxStart) throws IOException, ColorSpaceException
in
- RandomAccessIO jp2 imageboxStart
- offset to the start of the box in the image
IOException,
- ColorSpaceException
IOException
ColorSpaceException
Method Detail |
---|
public int getNumEntries()
public int getNumColumns()
public boolean isSigned(int column)
public boolean isUnSigned(int column)
public short getBitDepth(int column)
public int getEntry(int column, int entry)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |