|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lizardtech.djvu.outline.Bookmark
public class Bookmark
This class decodes outline (bookmarks) contained within a chunk and represents them in a tree structure.
Constructor Summary | |
---|---|
Bookmark()
|
Method Summary | |
---|---|
void |
addElement(Bookmark child)
Add a child bookmark. |
static Bookmark |
createBookmark(DjVuInterface ref)
Creates an instance of Bookmark with the options interherited from the specified reference. |
void |
decode(DataPool pool)
Decodes the directory from the specified datapool. |
Bookmark |
elementAt(int item)
Query a child bookmark. |
java.util.Enumeration |
elements()
Query the Enumeration of childen. |
protected void |
flatten()
Recursively move childrens children as children. |
java.util.Vector |
getChildren()
Query the Vector of children bookmarks. |
java.lang.String |
getDisplayName()
Query the display name. |
DjVmDir |
getDjVmDir()
Query the document directory. |
DjVuOptions |
getDjVuOptions()
Query the DjVuOptions used by this object. |
java.lang.Object |
getObject()
Query the object associated with this bookmark. |
int |
getPageno()
Query the page number linked to this bookmark. |
boolean |
isImageData()
Query if this is image data. |
boolean |
isValid()
Check if a bookmark is valid. |
void |
setDisplayName(java.lang.String displayName)
Set the display name for this bookmark. |
void |
setDjVmDir(DjVmDir djvmDir)
Set the document directory. |
void |
setDjVuOptions(DjVuOptions options)
Set the DjVuOptions used by this object. |
void |
setObject(java.lang.Object object)
Associate an object with this bookmark. |
void |
setSize(int size)
Sets the size of this vector. |
void |
setValid(boolean valid)
Set whether a bookmark is considered valid. |
int |
size()
Query the number of children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Bookmark()
Method Detail |
---|
public boolean isImageData()
isImageData
in interface Codec
public java.util.Vector getChildren()
public void setDisplayName(java.lang.String displayName)
displayName
- the name to be displayed for this bookmarkpublic java.lang.String getDisplayName()
public void setDjVmDir(DjVmDir djvmDir)
djvmDir
- the document directorypublic DjVmDir getDjVmDir()
public void setDjVuOptions(DjVuOptions options)
setDjVuOptions
in interface DjVuInterface
options
- The DjVuOptions used by this object.public DjVuOptions getDjVuOptions()
getDjVuOptions
in interface DjVuInterface
public void setObject(java.lang.Object object)
object
- associated objectpublic java.lang.Object getObject()
public int getPageno()
public void addElement(Bookmark child)
child
- bookmark to addpublic static Bookmark createBookmark(DjVuInterface ref)
ref
- Object to interherit DjVuOptions from.
public void setSize(int size)
size
- DOCUMENT ME!public void setValid(boolean valid)
valid
- true if validpublic boolean isValid()
public void decode(DataPool pool)
decode
in interface Codec
pool
- - the BSInputStream to read from.public Bookmark elementAt(int item)
item
- child number
public java.util.Enumeration elements()
public int size()
protected void flatten()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |