org.jpedal.examples.simpleviewer
Class Values

java.lang.Object
  extended by org.jpedal.examples.simpleviewer.Values

public class Values
extends java.lang.Object

provides access to values used by multiple classes


Field Summary
 int dx
          offsets to viewport if used
 int dy
          offsets to viewport if used
static boolean isProcessing
          boolean lock to stop multiple access
 int m_x1
           
 int m_x2
           
 int m_y1
           
 int m_y2
           
 int maxViewY
          height of the viewport.
static int RUNNING_APPLET
           
static int RUNNING_JSP
           
static int RUNNING_NORMAL
          Normal mode (works for webstart, application)
static int RUNNING_WEBSTART
           
 double viewportScale
          scaling on viewport if used
 
Constructor Summary
Values()
           
 
Method Summary
 int getCurrentPage()
          get current page number (1 - pageCount)
 long getFileSize()
          get current file size in kilobytes
 java.lang.String getInputDir()
          get directory to use as input root
 int getMaxMiltiViewers()
           
 int getModeOfOperation()
          get modeOfOperation (RUNNING_NORMAL,RUNNING_APPLET,RUNNING_WEBSTART,RUNNING_JSP)
 PdfAnnots getPageAnnotations()
          get pageAnnotations created by JPedal for current page
 int getPageCount()
          get number of pages
 java.lang.String getSelectedFile()
          get current filename
 java.lang.String getSeparator()
          get platform file separator
 java.lang.String getTarget()
          get local store on disk
 boolean isContentExtractor()
           
 boolean isFormsChanged()
          return if user has edited forms
 boolean isItextOnClasspath()
          show if itext installed
 boolean isMultiTiff()
           
 boolean isPDF()
          show if file is type PDF
static boolean isProcessing()
           
 boolean isUseHiresImage()
          flag to show if using images as hires
 void setContentExtractor(boolean isContentExtractor)
           
 void setCurrentPage(int currentPage)
          set current page number (1 - pageCount)
 void setFileSize(long size)
          set current file size in kilobytes
 void setFormsChanged(boolean formsChanged)
          set user has edited forms
 void setInputDir(java.lang.String inputDir)
          set directory to use as input root
 void setMaxMiltiViewers(int maxNoOfMultiViewers)
           
 void setModeOfOperation(int modeOfOperation)
          set modeOfOperation (RUNNING_NORMAL,RUNNING_APPLET,RUNNING_WEBSTART,RUNNING_JSP)
 void setMultiTiff(boolean isMultiTiff)
           
 void setPageAnnotations(PdfAnnots pageAnnotations)
          set pageAnnotations created by JPedal for current page
 void setPageCount(int pageCount)
          set number of pages
 void setPDF(boolean isPDF)
          set flag to show if file is PDF or other
static void setProcessing(boolean isProcessing)
          set to show decoding page
 void setSelectedFile(java.lang.String selectedFile)
          set current filename
 void setTarget(java.lang.String target)
          set local store on disk
 void setUseHiresImage(boolean useHiresImage)
          set to show images being used are hires and not downsampled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUNNING_NORMAL

public static final int RUNNING_NORMAL
Normal mode (works for webstart, application)

See Also:
Constant Field Values

RUNNING_APPLET

public static final int RUNNING_APPLET
See Also:
Constant Field Values

RUNNING_WEBSTART

public static final int RUNNING_WEBSTART
See Also:
Constant Field Values

RUNNING_JSP

public static final int RUNNING_JSP
See Also:
Constant Field Values

m_x1

public int m_x1

m_y1

public int m_y1

m_x2

public int m_x2

m_y2

public int m_y2

dx

public int dx
offsets to viewport if used


dy

public int dy
offsets to viewport if used


viewportScale

public double viewportScale
scaling on viewport if used


maxViewY

public int maxViewY
height of the viewport. Because everything is draw upside down we need this to get true y value


isProcessing

public static boolean isProcessing
boolean lock to stop multiple access

Constructor Detail

Values

public Values()
Method Detail

isProcessing

public static boolean isProcessing()

setProcessing

public static void setProcessing(boolean isProcessing)
set to show decoding page


isItextOnClasspath

public boolean isItextOnClasspath()
show if itext installed


isPDF

public boolean isPDF()
show if file is type PDF


setPDF

public void setPDF(boolean isPDF)
set flag to show if file is PDF or other


getCurrentPage

public int getCurrentPage()
get current page number (1 - pageCount)


setCurrentPage

public void setCurrentPage(int currentPage)
set current page number (1 - pageCount)


getInputDir

public java.lang.String getInputDir()
get directory to use as input root


setInputDir

public void setInputDir(java.lang.String inputDir)
set directory to use as input root


getSelectedFile

public java.lang.String getSelectedFile()
get current filename


setSelectedFile

public void setSelectedFile(java.lang.String selectedFile)
set current filename


isFormsChanged

public boolean isFormsChanged()
return if user has edited forms


setFormsChanged

public void setFormsChanged(boolean formsChanged)
set user has edited forms


getPageCount

public int getPageCount()
get number of pages


setPageCount

public void setPageCount(int pageCount)
set number of pages


getFileSize

public long getFileSize()
get current file size in kilobytes


setFileSize

public void setFileSize(long size)
set current file size in kilobytes


getTarget

public java.lang.String getTarget()
get local store on disk


setTarget

public void setTarget(java.lang.String target)
set local store on disk


getSeparator

public java.lang.String getSeparator()
get platform file separator


getPageAnnotations

public PdfAnnots getPageAnnotations()
get pageAnnotations created by JPedal for current page


setPageAnnotations

public void setPageAnnotations(PdfAnnots pageAnnotations)
set pageAnnotations created by JPedal for current page


getModeOfOperation

public int getModeOfOperation()
get modeOfOperation (RUNNING_NORMAL,RUNNING_APPLET,RUNNING_WEBSTART,RUNNING_JSP)


setModeOfOperation

public void setModeOfOperation(int modeOfOperation)
set modeOfOperation (RUNNING_NORMAL,RUNNING_APPLET,RUNNING_WEBSTART,RUNNING_JSP)


isUseHiresImage

public boolean isUseHiresImage()
flag to show if using images as hires


setUseHiresImage

public void setUseHiresImage(boolean useHiresImage)
set to show images being used are hires and not downsampled


isContentExtractor

public boolean isContentExtractor()
Returns:
the isContentExtractor

setContentExtractor

public void setContentExtractor(boolean isContentExtractor)
Parameters:
isContentExtractor - the isContentExtractor to set

isMultiTiff

public boolean isMultiTiff()

setMultiTiff

public void setMultiTiff(boolean isMultiTiff)

setMaxMiltiViewers

public void setMaxMiltiViewers(int maxNoOfMultiViewers)

getMaxMiltiViewers

public int getMaxMiltiViewers()