com.lizardtech.djvu
Class DjVuOptions

java.lang.Object
  extended by com.lizardtech.djvu.DjVuOptions

public class DjVuOptions
extends java.lang.Object

This is a factory which stores standard encoding options. Each class implementing DjVuInterface or dirived from DjVuObject should be added here. When a DjVuInterface class creates a new Object, it will use this factory. That way even the core decoding classes may be overloaded simply by setting the DjVuOptions of the top level class. Use of this factor also greatly speeds up the initialization of Microsoft's implementation of Java 1.1.

Version:
$Revision: 1.13 $
Author:
Bill C. Riemers

Field Summary
static boolean BEZIERGAMMA
          This should not be changed unless you know what you are doing.
static boolean COLLECT_GARBAGE
          True if garbage collection should be invoked manually on a regular basis.
static boolean NOCTX_ACTIVE
          This should not be changed unless you know what you are doing.
static boolean NOCTX_BUCKET_ACTIVE
          This should not be changed unless you know what you are doing.
static boolean NOCTX_BUCKET_UPPER
          This should not be changed unless you know what you are doing.
static boolean NOCTX_EXPECT
          This should not be changed unless you know what you are doing.
static java.lang.String VERSION
          The build version of this code.
 
Constructor Summary
DjVuOptions()
           
 
Method Summary
 Codec createBookmark()
          Create the an instance of the Bookmark class without loading the class until runtime.
 Codec createDjVuAnno()
          Create the an instance of the DjVuAnno class without loading the class until runtime.
 Codec createDjVuText()
          Create the an instance of the DjVuText class without loading the class until runtime.
 java.lang.Class getAnnoLineClass()
          Get the class object to use for AnnoLine.
 java.lang.Class getAnnoOvalClass()
          Get the class object to use for AnnoOval.
 java.lang.Class getAnnoPolyClass()
          Get the class object to use for Poly.
 java.lang.Class getAnnoRectClass()
          Get the class object to use for AnnoRect.
 java.lang.Class getAnnoTextClass()
          Get the class object to use for anno.Text.
 java.lang.Class getBookmarkClass()
          Get the class object to use for Bookmark.
 java.lang.Class getBSInputStreamClass()
          Get the class object to use for BSInputStream.
 java.lang.Class getDataPoolClass()
          Get the class object to use for DataPool.
 java.lang.Class getDjVmDirClass()
          Get the class object to use for DjVmDir.
 java.lang.Class getDjVuAnnoClass()
          Get the class object to use for DjVuAnno.
 java.lang.Class getDjVuInfoClass()
          Get the class object to use for DjVuInfo.
 java.lang.Class getDjVuPageClass()
          Get the class object to use for DjVuPage.
 java.lang.Class getDjVuTextClass()
          Get the class object to use for DjVuText.
 java.lang.Class getDocumentClass()
          Get the class object to use for Document
 java.lang.Class getGBitmapClass()
          Get the class object to use for GBitmap.
 java.lang.Class getGPixmapClass()
          Get the class object to use for GPixmap.
 java.lang.Class getIFFInputStreamClass()
          Get the class object to use for IFFInputStream.
 java.lang.Class getIFFOutputStreamClass()
          Get the class object to use for IFFOutputStream.
 java.lang.Class getIWBitmapClass()
          Get the class object to use for IWBitmap.
 java.lang.Class getIWBlockClass()
          Get the class object to use for IWBlock.
 java.lang.Class getIWCodecClass()
          Get the class object to use for IWCodec.
 java.lang.Class getIWMapClass()
          Get the class object to use for IWMap.
 java.lang.Class getIWPixmapClass()
          Get the class object to use for IWPixmap.
 java.lang.Class getJB2DecodeClass()
          Get the class object to use for JB2Decode.
 java.lang.Class getJB2DictClass()
          Get the class object to use for JB2Dict.
 java.lang.Class getJB2ImageClass()
          Get the class object to use for JB2Image.
 java.lang.Class getJB2ShapeClass()
          Get the class object to use for JB2Shape.
 java.lang.Class getPaletteClass()
          Get the class object to use for Palette.
 java.lang.Class getZPCodecClass()
          Get the class object to use for ZPCodec.
 void setAnnoLineClass(java.lang.Class classAnnoLine)
          Set the class object to use for AnnoLine.
 void setAnnoOvalClass(java.lang.Class classAnnoOval)
          Set the class object to use for AnnoOval.
 void setAnnoPolyClass(java.lang.Class classAnnoPoly)
          Set the class object to use for Poly.
 void setAnnoRectClass(java.lang.Class classAnnoRect)
          Set the class object to use for anno.Rect.
 void setAnnoTextClass(java.lang.Class classAnnoText)
          Set the class object to use for anno.Text.
 void setBookmarkClass(java.lang.Class classBookmark)
          Set the class object to use for Bookmark.
 void setBSInputStreamClass(java.lang.Class classBSInputStream)
          Set the class object to use for BSInputStream.
 void setDataPoolClass(java.lang.Class classDataPool)
          Set the class object to use for DataPool.
 void setDjVmDirClass(java.lang.Class classDjVmDir)
          Set the class object to use for DjVmDir.
 void setDjVuAnnoClass(java.lang.Class classDjVuAnno)
          Set the class object to use for DjVuAnno.
 void setDjVuInfoClass(java.lang.Class classDjVuInfo)
          Set the class object to use for DjVuInfo.
 void setDjVuPageClass(java.lang.Class classDjVuPage)
          Set the class object to use for DjVuPage.
 void setDjVuTextClass(java.lang.Class classDjVuText)
          Set the class object to use for DjVuText.
 void setDocumentClass(java.lang.Class classDocument)
          Set the class object to use for Document
 void setGBitmapClass(java.lang.Class classGBitmap)
          Set the class object to use for GBitmap.
 void setGPixmapClass(java.lang.Class classGPixmap)
          Set the class object to use for GPixmap.
 void setIFFInputStreamClass(java.lang.Class classIFFInputStream)
          Set the class object to use for IFFInputStream.
 void setIFFOutputStreamClass(java.lang.Class classIFFOutputStream)
          Set the class object to use for IFFOutputStream.
 void setIWBitmapClass(java.lang.Class classIWBitmap)
          Set the class object to use for IWBitmap.
 void setIWBlockClass(java.lang.Class classIWBlock)
          Set the class object to use for IWBlock.
 void setIWCodecClass(java.lang.Class classIWCodec)
          Set the class object to use for IWCodec.
 void setIWMapClass(java.lang.Class classIWMap)
          Set the class object to use for IWMap.
 void setIWPixmapClass(java.lang.Class classIWPixmap)
          Set the class object to use for IWPixmap.
 void setJB2DecodeClass(java.lang.Class classJB2Decode)
          Set the class object to use for JB2Decode.
 void setJB2DictClass(java.lang.Class classJB2Dict)
          Set the class object to use for JB2Dict.
 void setJB2ImageClass(java.lang.Class classJB2Image)
          Set the class object to use for JB2Image.
 void setJB2ShapeClass(java.lang.Class classJB2Shape)
          Set the class object to use for JB2Shape.
 void setPaletteClass(java.lang.Class classPalette)
          Set the class object to use for Palette.
 void setZPCodecClass(java.lang.Class classZPCodec)
          Set the class object to use for ZPCodec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
The build version of this code.

See Also:
Constant Field Values

NOCTX_BUCKET_UPPER

public static boolean NOCTX_BUCKET_UPPER
This should not be changed unless you know what you are doing.


NOCTX_EXPECT

public static boolean NOCTX_EXPECT
This should not be changed unless you know what you are doing.


NOCTX_ACTIVE

public static boolean NOCTX_ACTIVE
This should not be changed unless you know what you are doing.


NOCTX_BUCKET_ACTIVE

public static boolean NOCTX_BUCKET_ACTIVE
This should not be changed unless you know what you are doing.


BEZIERGAMMA

public static boolean BEZIERGAMMA
This should not be changed unless you know what you are doing.


COLLECT_GARBAGE

public static boolean COLLECT_GARBAGE
True if garbage collection should be invoked manually on a regular basis. This greatly slows down the code, but it may be neccessary for a low memory device.

Constructor Detail

DjVuOptions

public DjVuOptions()
Method Detail

setBSInputStreamClass

public void setBSInputStreamClass(java.lang.Class classBSInputStream)
Set the class object to use for BSInputStream.

Parameters:
classBSInputStream - the class object.

getBSInputStreamClass

public java.lang.Class getBSInputStreamClass()
Get the class object to use for BSInputStream.

Returns:
BSInputStream.class or child

setBookmarkClass

public void setBookmarkClass(java.lang.Class classBookmark)
Set the class object to use for Bookmark.

Parameters:
classBookmark - the class object.

getBookmarkClass

public java.lang.Class getBookmarkClass()
Get the class object to use for Bookmark.

Returns:
Bookmark.class or child

setDataPoolClass

public void setDataPoolClass(java.lang.Class classDataPool)
Set the class object to use for DataPool.

Parameters:
classDataPool - the class object.

getDataPoolClass

public java.lang.Class getDataPoolClass()
Get the class object to use for DataPool.

Returns:
DataPool.class or child

setDjVmDirClass

public void setDjVmDirClass(java.lang.Class classDjVmDir)
Set the class object to use for DjVmDir.

Parameters:
classDjVmDir - the class object.

getDjVmDirClass

public java.lang.Class getDjVmDirClass()
Get the class object to use for DjVmDir.

Returns:
DjVmDir.class or child

setDjVuAnnoClass

public void setDjVuAnnoClass(java.lang.Class classDjVuAnno)
Set the class object to use for DjVuAnno.

Parameters:
classDjVuAnno - the class object.

getDjVuAnnoClass

public java.lang.Class getDjVuAnnoClass()
Get the class object to use for DjVuAnno.

Returns:
DjVuAnno.class or child

setDjVuInfoClass

public void setDjVuInfoClass(java.lang.Class classDjVuInfo)
Set the class object to use for DjVuInfo.

Parameters:
classDjVuInfo - the class object.

getDjVuInfoClass

public java.lang.Class getDjVuInfoClass()
Get the class object to use for DjVuInfo.

Returns:
DjVuInfo or child

setDjVuPageClass

public void setDjVuPageClass(java.lang.Class classDjVuPage)
Set the class object to use for DjVuPage.

Parameters:
classDjVuPage - the class object.

getDjVuPageClass

public java.lang.Class getDjVuPageClass()
Get the class object to use for DjVuPage.

Returns:
DjVuPage.class or child

setDjVuTextClass

public void setDjVuTextClass(java.lang.Class classDjVuText)
Set the class object to use for DjVuText.

Parameters:
classDjVuText - the class object.

getDjVuTextClass

public java.lang.Class getDjVuTextClass()
Get the class object to use for DjVuText.

Returns:
DjVuText.class or child

setDocumentClass

public void setDocumentClass(java.lang.Class classDocument)
Set the class object to use for Document

Parameters:
classDocument - the class object.

getDocumentClass

public java.lang.Class getDocumentClass()
Get the class object to use for Document

Returns:
Document.class or child

setGBitmapClass

public void setGBitmapClass(java.lang.Class classGBitmap)
Set the class object to use for GBitmap.

Parameters:
classGBitmap - the class object.

getGBitmapClass

public java.lang.Class getGBitmapClass()
Get the class object to use for GBitmap.

Returns:
GBitmap.class or child

setAnnoLineClass

public void setAnnoLineClass(java.lang.Class classAnnoLine)
Set the class object to use for AnnoLine.

Parameters:
classAnnoLine - the class object.

getAnnoLineClass

public java.lang.Class getAnnoLineClass()
Get the class object to use for AnnoLine.

Returns:
AnnoLine.class or child

setAnnoOvalClass

public void setAnnoOvalClass(java.lang.Class classAnnoOval)
Set the class object to use for AnnoOval.

Parameters:
classAnnoOval - the class object.

getAnnoOvalClass

public java.lang.Class getAnnoOvalClass()
Get the class object to use for AnnoOval.

Returns:
AnnoOval.class or child

setAnnoPolyClass

public void setAnnoPolyClass(java.lang.Class classAnnoPoly)
Set the class object to use for Poly.

Parameters:
classAnnoPoly - the class object.

getAnnoPolyClass

public java.lang.Class getAnnoPolyClass()
Get the class object to use for Poly.

Returns:
Poly.class or child

setAnnoRectClass

public void setAnnoRectClass(java.lang.Class classAnnoRect)
Set the class object to use for anno.Rect.

Parameters:
classAnnoRect - the class object.

getAnnoRectClass

public java.lang.Class getAnnoRectClass()
Get the class object to use for AnnoRect.

Returns:
anno.Rect.class or child

setAnnoTextClass

public void setAnnoTextClass(java.lang.Class classAnnoText)
Set the class object to use for anno.Text.

Parameters:
classAnnoText - the class object.

getAnnoTextClass

public java.lang.Class getAnnoTextClass()
Get the class object to use for anno.Text.

Returns:
anno.Text.class or child

setGPixmapClass

public void setGPixmapClass(java.lang.Class classGPixmap)
Set the class object to use for GPixmap.

Parameters:
classGPixmap - the class object.

getGPixmapClass

public java.lang.Class getGPixmapClass()
Get the class object to use for GPixmap.

Returns:
GPixmap.class or child

setIFFInputStreamClass

public void setIFFInputStreamClass(java.lang.Class classIFFInputStream)
Set the class object to use for IFFInputStream.

Parameters:
classIFFInputStream - the class object.

getIFFInputStreamClass

public java.lang.Class getIFFInputStreamClass()
Get the class object to use for IFFInputStream.

Returns:
IFFInputStream.class or child

setIFFOutputStreamClass

public void setIFFOutputStreamClass(java.lang.Class classIFFOutputStream)
Set the class object to use for IFFOutputStream.

Parameters:
classIFFOutputStream - the class object.

getIFFOutputStreamClass

public java.lang.Class getIFFOutputStreamClass()
Get the class object to use for IFFOutputStream.

Returns:
IFFOutput.class or child

setIWBitmapClass

public void setIWBitmapClass(java.lang.Class classIWBitmap)
Set the class object to use for IWBitmap.

Parameters:
classIWBitmap - the class object.

getIWBitmapClass

public java.lang.Class getIWBitmapClass()
Get the class object to use for IWBitmap.

Returns:
IWBitmap.class or child

setIWBlockClass

public void setIWBlockClass(java.lang.Class classIWBlock)
Set the class object to use for IWBlock.

Parameters:
classIWBlock - the class object.

getIWBlockClass

public java.lang.Class getIWBlockClass()
Get the class object to use for IWBlock.

Returns:
IWBlock.class or child

setIWCodecClass

public void setIWCodecClass(java.lang.Class classIWCodec)
Set the class object to use for IWCodec.

Parameters:
classIWCodec - the class object.

getIWCodecClass

public java.lang.Class getIWCodecClass()
Get the class object to use for IWCodec.

Returns:
IWCodec.class or child

setIWMapClass

public void setIWMapClass(java.lang.Class classIWMap)
Set the class object to use for IWMap.

Parameters:
classIWMap - the class object.

getIWMapClass

public java.lang.Class getIWMapClass()
Get the class object to use for IWMap.

Returns:
IWMap.class or child

setIWPixmapClass

public void setIWPixmapClass(java.lang.Class classIWPixmap)
Set the class object to use for IWPixmap.

Parameters:
classIWPixmap - the class object.

getIWPixmapClass

public java.lang.Class getIWPixmapClass()
Get the class object to use for IWPixmap.

Returns:
IWPixmap.class or child

setJB2DecodeClass

public void setJB2DecodeClass(java.lang.Class classJB2Decode)
Set the class object to use for JB2Decode.

Parameters:
classJB2Decode - the class object.

getJB2DecodeClass

public java.lang.Class getJB2DecodeClass()
Get the class object to use for JB2Decode.

Returns:
The new instance of the JB2Decode class.

setJB2DictClass

public void setJB2DictClass(java.lang.Class classJB2Dict)
Set the class object to use for JB2Dict.

Parameters:
classJB2Dict - the class object.

getJB2DictClass

public java.lang.Class getJB2DictClass()
Get the class object to use for JB2Dict.

Returns:
The new instance of the JB2Dict class.

setJB2ImageClass

public void setJB2ImageClass(java.lang.Class classJB2Image)
Set the class object to use for JB2Image.

Parameters:
classJB2Image - the class object.

getJB2ImageClass

public java.lang.Class getJB2ImageClass()
Get the class object to use for JB2Image.

Returns:
The new instance of the JB2Image class.

setJB2ShapeClass

public void setJB2ShapeClass(java.lang.Class classJB2Shape)
Set the class object to use for JB2Shape.

Parameters:
classJB2Shape - the class object.

getJB2ShapeClass

public java.lang.Class getJB2ShapeClass()
Get the class object to use for JB2Shape.

Returns:
The new instance of the JB2Shape class.

setPaletteClass

public void setPaletteClass(java.lang.Class classPalette)
Set the class object to use for Palette.

Parameters:
classPalette - the class object.

getPaletteClass

public java.lang.Class getPaletteClass()
Get the class object to use for Palette.

Returns:
The new instance of the Palette class.

setZPCodecClass

public void setZPCodecClass(java.lang.Class classZPCodec)
Set the class object to use for ZPCodec.

Parameters:
classZPCodec - the class object.

getZPCodecClass

public java.lang.Class getZPCodecClass()
Get the class object to use for ZPCodec.

Returns:
The new instance of the ZPCodec class.

createBookmark

public Codec createBookmark()
Create the an instance of the Bookmark class without loading the class until runtime.

Returns:
The new instance of the Bookmark class.

createDjVuAnno

public Codec createDjVuAnno()
Create the an instance of the DjVuAnno class without loading the class until runtime.

Returns:
The new instance of the DjVuAnno class.

createDjVuText

public Codec createDjVuText()
Create the an instance of the DjVuText class without loading the class until runtime.

Returns:
The new instance of the DjVuText class.