org.icepdf.core.pobjects
Class ViewerPreferences

java.lang.Object
  extended by org.icepdf.core.pobjects.Dictionary
      extended by org.icepdf.core.pobjects.ViewerPreferences

public class ViewerPreferences
extends Dictionary

The ViewerPreferences class is used to represent and provide access to the ViewerPreference keys and values from the PDF Specification, such as HideToolbar


Field Summary
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, inited, isDeleted, isNew, library, SUBTYPE_KEY, TYPE_KEY
 
Constructor Summary
ViewerPreferences(Library l, java.util.Hashtable h)
          Creates a new instance of a NameTree.
 
Method Summary
 void dispose()
          Dispose the NameTree.
 boolean getFitWindow()
           
 boolean getHideMenubar()
           
 boolean getHideToolbar()
           
 NameNode getRoot()
           
 boolean hasFitWindow()
           
 boolean hasHideMenubar()
           
 boolean hasHideToolbar()
           
 void init()
          Initiate the NameTree.
 
Methods inherited from class org.icepdf.core.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getObject, getPObjectReference, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewerPreferences

public ViewerPreferences(Library l,
                         java.util.Hashtable h)
Creates a new instance of a NameTree.

Parameters:
l - document library.
h - NameTree dictionary entries.
Method Detail

init

public void init()
Initiate the NameTree.

Overrides:
init in class Dictionary

dispose

public void dispose()
Dispose the NameTree.


getRoot

public NameNode getRoot()

hasHideToolbar

public boolean hasHideToolbar()

hasHideMenubar

public boolean hasHideMenubar()

hasFitWindow

public boolean hasFitWindow()

getHideToolbar

public boolean getHideToolbar()

getHideMenubar

public boolean getHideMenubar()

getFitWindow

public boolean getFitWindow()