com.crionics.jpdf.viewer
Class PersistentPreferences

java.lang.Object
  extended by com.crionics.jpdf.viewer.PersistentPreferences

public class PersistentPreferences
extends java.lang.Object

This class provides easy access methods to read, change and save user preferences


Method Summary
 boolean getAccurateColors()
           
 java.awt.Rectangle getBounds()
           
 java.io.File getCMYKProfile()
           
 java.io.File getDefaultOpenFolder()
           
 java.lang.String getDefaultSigningAlias()
           
 java.security.KeyStore getKeyStore()
           
 java.util.Locale getLocale()
           
 java.lang.String getPreferedLookAndFeelClass()
           
 java.lang.String getProxyHost()
           
 java.lang.String getProxyPassword()
           
 int getProxyPort()
           
 boolean getProxyUseCredentials()
           
 java.lang.String getProxyUsername()
           
 int getRenderingQuality()
           
 RenderingParameters getRenderParameters()
           
 java.io.File getRGBProfile()
           
 boolean getUseProxy()
           
 java.lang.String getWebStartEmail()
           
 int getWindowState()
           
 boolean isGenerateAnnotations()
           
 boolean isGenerateStringsAsGlyph()
           
 boolean isShowTipOfTheDay()
           
 boolean isUseCompression()
           
static PersistentPreferences load()
           
 void save()
          Saves the object back to the file system.
 void setAccurateColors(boolean b)
           
 void setBounds(java.awt.Rectangle rect)
           
 void setCMYKProfile(java.io.File f)
           
 void setDefaultOpenFolder(java.io.File directory)
           
 void setDefaultSigningAlias(java.lang.String defaultSigningAlias)
           
 void setGenerateAnnotations(boolean b)
           
 void setGenerateStringsAsGlyph(boolean b)
           
 void setKeyStore(java.security.KeyStore ks)
           
 void setLocale(java.util.Locale locale)
           
 void setPreferedLookAndFeelClass(java.lang.String name)
           
 void setProxyHost(java.lang.String proxy)
           
 void setProxyPassword(java.lang.String password)
           
 void setProxyPort(int port)
           
 void setProxyUseCredentials(boolean b)
           
 void setProxyUsername(java.lang.String username)
           
 void setRenderingQuality(int q)
           
 void setRGBProfile(java.io.File f)
           
 void setShowTopOfTheDay(boolean b)
           
 void setupProxy()
          This method configures the JVM proxy configuration according to the user settings.
 void setUseCompression(boolean b)
           
 void setUseProxy(boolean b)
           
 void setWebStartEmail(java.lang.String email)
           
 void setWindowState(int state)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

load

public static PersistentPreferences load()
Returns:
the object used to hold user preferences. If no file exists in the filesystem, it is created.

getAccurateColors

public boolean getAccurateColors()

getBounds

public java.awt.Rectangle getBounds()

getCMYKProfile

public java.io.File getCMYKProfile()

getDefaultOpenFolder

public java.io.File getDefaultOpenFolder()

getDefaultSigningAlias

public java.lang.String getDefaultSigningAlias()

getKeyStore

public java.security.KeyStore getKeyStore()
                                   throws java.security.KeyStoreException,
                                          java.security.NoSuchAlgorithmException,
                                          java.security.cert.CertificateException,
                                          java.io.IOException
Throws:
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.IOException

getLocale

public java.util.Locale getLocale()

getPreferedLookAndFeelClass

public java.lang.String getPreferedLookAndFeelClass()

getProxyHost

public java.lang.String getProxyHost()

getProxyPort

public int getProxyPort()

getRenderingQuality

public int getRenderingQuality()

getRenderParameters

public RenderingParameters getRenderParameters()

getRGBProfile

public java.io.File getRGBProfile()

getUseProxy

public boolean getUseProxy()

getWebStartEmail

public java.lang.String getWebStartEmail()

getWindowState

public int getWindowState()
Returns:
the window state in place when the application was closed: Normal or Maximized.

isGenerateAnnotations

public boolean isGenerateAnnotations()

isGenerateStringsAsGlyph

public boolean isGenerateStringsAsGlyph()

isShowTipOfTheDay

public boolean isShowTipOfTheDay()

isUseCompression

public boolean isUseCompression()

save

public void save()
Saves the object back to the file system.


setAccurateColors

public void setAccurateColors(boolean b)

setBounds

public void setBounds(java.awt.Rectangle rect)

setCMYKProfile

public void setCMYKProfile(java.io.File f)

setDefaultOpenFolder

public void setDefaultOpenFolder(java.io.File directory)

setDefaultSigningAlias

public void setDefaultSigningAlias(java.lang.String defaultSigningAlias)

setGenerateAnnotations

public void setGenerateAnnotations(boolean b)

setGenerateStringsAsGlyph

public void setGenerateStringsAsGlyph(boolean b)

setKeyStore

public void setKeyStore(java.security.KeyStore ks)
                 throws java.security.KeyStoreException,
                        java.security.NoSuchAlgorithmException,
                        java.security.cert.CertificateException,
                        java.io.IOException
Throws:
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.IOException

setLocale

public void setLocale(java.util.Locale locale)

setPreferedLookAndFeelClass

public void setPreferedLookAndFeelClass(java.lang.String name)

setProxyHost

public void setProxyHost(java.lang.String proxy)

setProxyPort

public void setProxyPort(int port)

setRenderingQuality

public void setRenderingQuality(int q)

setRGBProfile

public void setRGBProfile(java.io.File f)

setShowTopOfTheDay

public void setShowTopOfTheDay(boolean b)

setUseCompression

public void setUseCompression(boolean b)

setUseProxy

public void setUseProxy(boolean b)

setWebStartEmail

public void setWebStartEmail(java.lang.String email)

setWindowState

public void setWindowState(int state)

setProxyUseCredentials

public void setProxyUseCredentials(boolean b)

getProxyUseCredentials

public boolean getProxyUseCredentials()

setProxyUsername

public void setProxyUsername(java.lang.String username)

setProxyPassword

public void setProxyPassword(java.lang.String password)

getProxyUsername

public java.lang.String getProxyUsername()

getProxyPassword

public java.lang.String getProxyPassword()

setupProxy

public void setupProxy()
This method configures the JVM proxy configuration according to the user settings.



Copyright © 1999-2007 Crionics. All Rights Reserved.