public class Values extends Object
| Modifier and Type | Field and Description |
|---|---|
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 boolean |
openingTransferedFile |
static int |
RUNNING_APPLET |
static int |
RUNNING_JSP |
static int |
RUNNING_NORMAL
Normal mode (works for webstart, application)
|
static int |
RUNNING_PLUGIN |
static int |
RUNNING_WEBSTART |
double |
viewportScale
scaling on viewport if used
|
| Constructor and Description |
|---|
Values() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllHighlightsShown() |
BufferedImage |
getBufferedImg() |
int |
getCurrentPage()
get current page number (1 - pageCount)
|
boolean |
getFileIsURL() |
long |
getFileSize()
get current file size in kilobytes
|
String |
getInputDir()
get directory to use as input root
|
int |
getMaxMiltiViewers() |
int |
getModeOfOperation()
get modeOfOperation (RUNNING_NORMAL,RUNNING_APPLET,RUNNING_WEBSTART,RUNNING_JSP)
|
static boolean |
getOpeningTransferedFile() |
int |
getPageCount()
get number of pages
|
String |
getSelectedFile()
get current filename
|
int |
getTiffImageToLoad() |
boolean |
isEncrypOnClasspath() |
boolean |
isFormsChanged() |
boolean |
isMultiTiff() |
boolean |
isPDF()
show if file is type PDF
|
static boolean |
isProcessing()
flag to show isProcessing so Viewer can lock actions while decoding page
|
boolean |
isSearching()
Flag to show if a search is currently being performed
|
void |
setAllHighlightsShown(boolean b) |
void |
setBufferedImg(BufferedImage img) |
void |
setCurrentPage(int currentPage)
set current page number (1 - pageCount)
|
void |
setFileIsURL(boolean b) |
void |
setFileSize(long size)
set current file size in kilobytes
|
void |
setFormsChanged(boolean formsChanged)
set user has edited forms
|
void |
setInputDir(String inputDir)
set directory to use as input root
|
void |
setIsSearching(boolean isSearching)
Set to show a search is being performed
|
void |
setMaxMiltiViewers(int maxNoOfMultiViewers) |
void |
setModeOfOperation(int modeOfOperation)
set modeOfOperation (RUNNING_NORMAL,RUNNING_APPLET,RUNNING_WEBSTART,RUNNING_JSP)
|
void |
setMultiTiff(boolean isMultiTiff) |
static void |
setOpeningTransferedFile(boolean b) |
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(String selectedFile)
set current filename
|
void |
setTiffImageToLoad(int x) |
public static boolean openingTransferedFile
public static final int RUNNING_NORMAL
public static final int RUNNING_APPLET
public static final int RUNNING_WEBSTART
public static final int RUNNING_JSP
public static final int RUNNING_PLUGIN
public int m_x1
public int m_y1
public int m_x2
public int m_y2
public int dx
public int dy
public double viewportScale
public int maxViewY
public static boolean isProcessing
public static boolean isProcessing()
public static void setProcessing(boolean isProcessing)
isProcessing - value of the decoding pagepublic void setIsSearching(boolean isSearching)
isSearching - public boolean isSearching()
public boolean isEncrypOnClasspath()
public boolean isPDF()
public static void setOpeningTransferedFile(boolean b)
public static boolean getOpeningTransferedFile()
public void setPDF(boolean isPDF)
isPDF - To find if file is PDF or otherpublic int getCurrentPage()
public void setCurrentPage(int currentPage)
currentPage - The new currentPagepublic String getInputDir()
public void setInputDir(String inputDir)
inputDir - The new directory used as input rootpublic String getSelectedFile()
public void setSelectedFile(String selectedFile)
selectedFile - The current filenamepublic void setFileIsURL(boolean b)
b - is a boolean and sets fileIsURLpublic boolean getFileIsURL()
public boolean isFormsChanged()
public void setFormsChanged(boolean formsChanged)
formsChanged - the value of edited formspublic int getPageCount()
public void setPageCount(int pageCount)
pageCount - The new number of pagespublic long getFileSize()
public void setFileSize(long size)
size - The new size of the file in kilobytespublic int getModeOfOperation()
public void setModeOfOperation(int modeOfOperation)
modeOfOperation - The new modeOfOperationpublic boolean isMultiTiff()
public void setMultiTiff(boolean isMultiTiff)
public int getTiffImageToLoad()
public void setTiffImageToLoad(int x)
public void setMaxMiltiViewers(int maxNoOfMultiViewers)
public int getMaxMiltiViewers()
public void setAllHighlightsShown(boolean b)
public boolean getAllHighlightsShown()
public void setBufferedImg(BufferedImage img)
public BufferedImage getBufferedImg()
Copyright © 2017. All rights reserved.