|
JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpedal.examples.simpleviewer.Commands
public class Commands
This class contains code to execute the actual commands.
| Field Summary | |
|---|---|
static int |
ADD
|
static int |
ADDHEADERFOOTER
|
static int |
ADDVIEW
|
static int |
AUTOSCROLL
|
static int |
BACK
|
static int |
BACKPAGE
|
static int |
BITMAP
|
static int |
BUY
|
static int |
CASCADE
|
static int |
CONTINUOUS
|
static int |
CONTINUOUS_FACING
|
static int |
COPY
|
static int |
CURRENTPAGE
|
static int |
DELETE
|
static int |
DESELECTALL
|
static int |
DOCINFO
|
static int |
EXIT
|
boolean |
extractingAsImage
|
static int |
FACING
|
static int |
FBACKPAGE
|
static int |
FFORWARDPAGE
|
static int |
FIND
|
static java.lang.Integer |
FIRST_DOCUMENT_SEARCH_RESULT_NOW_SHOWN
|
static int |
FIRSTPAGE
|
static int |
FORWARD
|
static int |
FORWARDPAGE
|
static int |
FULLSCREEN
|
static int |
GETOUTLINEPANEL
|
static int |
GETPAGECOUNTER
|
static int |
GETTHUMBNAILPANEL
|
static int |
GOTO
|
static int |
HANDOUTS
|
static int |
HELP
|
static int |
HIGHLIGHT
|
static boolean |
hires
custom hi-res val for JPedal settings |
static int |
IMAGES
|
static int |
INFO
|
java.io.InputStream |
inputStream
|
static int |
LASTPAGE
|
static int |
MOUSEMODE
|
static int |
NEXTDOCUMENT
|
static int |
NEXTRESULT
|
static int |
NUP
|
static int |
OPENFILE
|
static int |
OPENURL
|
static int |
PAGECOUNT
|
static int |
PAGEFLOW
|
static int |
PAGEGROUPING
|
org.jpedal.SingleDisplay |
pages
access to page display |
static int |
PANMODE
|
static int |
PDF
|
static int |
PREFERENCES
|
static int |
PREVIOUSDOCUMENT
|
static int |
PREVIOUSRESULT
|
static int |
PRINT
|
static int |
QUALITY
|
static int |
ROTATE
|
static int |
ROTATION
|
static int |
RSS
|
static int |
SAVE
|
static int |
SAVEFORM
|
static int |
SCALING
|
static int |
SCROLL
|
static java.lang.Integer |
SEARCH_NOT_FOUND
|
static java.lang.Integer |
SEARCH_RETURNED_TO_START
|
static int |
SECURITY
|
static int |
SELECTALL
|
static int |
SEPARATECOVER
|
static int |
SETCROP
|
static int |
SETPAGECOLOR
|
static int |
SETUNDRAWNPAGECOLOR
|
static int |
SIGN
|
static int |
SINGLE
|
static int |
SNAPSHOT
|
static int |
STAMPIMAGE
|
static int |
STAMPTEXT
|
static int |
TEXT
|
static int |
TEXTSELECT
|
static int |
TILE
|
static int |
TIP
|
static int |
UPDATE
|
static int |
UPDATEGUILAYOUT
|
static int |
VISITWEBSITE
|
| Constructor Summary | |
|---|---|
Commands(Values commonValues,
SwingGUI currentGUI,
PdfDecoder decode_pdf,
GUIThumbnailPanel thumbnails,
PropertiesFile properties,
GUISearchWindow searchFrame,
Printer currentPrinter)
|
|
| Method Summary | |
|---|---|
void |
addAView(int page,
java.awt.Rectangle location,
java.lang.Integer scalingType)
|
void |
addImage(java.awt.image.BufferedImage img)
used to display non-PDF files |
void |
addToRecentDocuments(java.lang.String selectedFile)
|
boolean |
checkForUpdates(boolean showMessages)
|
void |
clearRecentDocuments()
|
java.lang.String |
copySelectedText()
routine to link GUI into text extraction functions |
void |
enableRecentDocuments(boolean enable)
|
java.lang.Object |
executeCommand(int ID,
java.lang.Object[] args)
main routine which executes code for current command Values can also be passed in so it can be called from your own code some commands return a status Object otherwise null |
void |
extractSelectedScreenAsImage()
extract selected area as a rectangle and show onscreen |
void |
extractSelectedText()
routine to link GUI into text extraction functions |
void |
flush()
routine to remove all objects from temp store |
MouseMode |
getMouseMode()
|
org.jpedal.SingleDisplay |
getPages()
|
SearchList |
getSearchList()
Returns the searchList of the last search preformed. |
void |
goBackAView()
|
void |
goForwardAView()
|
void |
gotoPage(java.lang.String page)
|
void |
handleUnsaveForms()
warns user forms unsaved and offers save option |
boolean |
isImageExtractionAllowed()
|
boolean |
isPDF()
|
static boolean |
isPDFLinearized(java.lang.String pdfUrl)
examine first few bytes to see if linearized and return true linearized file |
void |
openFile(java.lang.String selectedFile)
checks file can be opened (permission) |
boolean |
openingTransferedFiles()
|
void |
openTransferedFile(java.lang.String file)
|
void |
recentDocumentsOption(javax.swing.JMenu file)
|
void |
scrollRectToHighlight(java.awt.Rectangle highlight,
int page)
|
void |
selectFile()
opens a pdf file and calls the display/decode routines |
void |
setImageExtractionAllowed(boolean allow)
|
void |
setPageProperties(java.lang.Object rotation,
java.lang.Object scaling)
|
void |
setPdfDecoder(PdfDecoder decode_pdf)
|
void |
updateRecentDocuments(java.lang.String[] recentDocs)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean hires
public boolean extractingAsImage
public static final int INFO
public static final int BITMAP
public static final int IMAGES
public static final int TEXT
public static final int SAVE
public static final int PRINT
public static final int EXIT
public static final int AUTOSCROLL
public static final int DOCINFO
public static final int OPENFILE
public static final int FIND
public static final int SNAPSHOT
public static final int OPENURL
public static final int VISITWEBSITE
public static final int PREVIOUSDOCUMENT
public static final int NEXTDOCUMENT
public static final int PREVIOUSRESULT
public static final int NEXTRESULT
public static final int TIP
public static final int CASCADE
public static final int TILE
public static final int UPDATE
public static final int PREFERENCES
public static final int COPY
public static final int SELECTALL
public static final int DESELECTALL
public static final int UPDATEGUILAYOUT
public static final int MOUSEMODE
public static final int PANMODE
public static final int TEXTSELECT
public static final int SEPARATECOVER
public static final int FIRSTPAGE
public static final int FBACKPAGE
public static final int BACKPAGE
public static final int FORWARDPAGE
public static final int FFORWARDPAGE
public static final int LASTPAGE
public static final int GOTO
public static final int SINGLE
public static final int CONTINUOUS
public static final int CONTINUOUS_FACING
public static final int FACING
public static final int PAGEFLOW
public static final int FULLSCREEN
public static final int RSS
public static final int HELP
public static final int BUY
public static final int QUALITY
public static final int ROTATION
public static final int SCALING
public static final int SAVEFORM
public static final int PDF
public static final int ROTATE
public static final int DELETE
public static final int ADD
public static final int SECURITY
public static final int ADDHEADERFOOTER
public static final int STAMPTEXT
public static final int STAMPIMAGE
public static final int SETCROP
public static final int NUP
public static final int HANDOUTS
public static final int SIGN
public static final int HIGHLIGHT
public static final int SCROLL
public static final int ADDVIEW
public static final int FORWARD
public static final int BACK
public static final int PAGECOUNT
public static final int CURRENTPAGE
public static final int GETOUTLINEPANEL
public static final int GETTHUMBNAILPANEL
public static final int GETPAGECOUNTER
public static final int PAGEGROUPING
public static final int SETPAGECOLOR
public static final int SETUNDRAWNPAGECOLOR
public static final java.lang.Integer FIRST_DOCUMENT_SEARCH_RESULT_NOW_SHOWN
public static final java.lang.Integer SEARCH_RETURNED_TO_START
public static final java.lang.Integer SEARCH_NOT_FOUND
public java.io.InputStream inputStream
public org.jpedal.SingleDisplay pages
| Constructor Detail |
|---|
public Commands(Values commonValues,
SwingGUI currentGUI,
PdfDecoder decode_pdf,
GUIThumbnailPanel thumbnails,
PropertiesFile properties,
GUISearchWindow searchFrame,
Printer currentPrinter)
| Method Detail |
|---|
public org.jpedal.SingleDisplay getPages()
public void addToRecentDocuments(java.lang.String selectedFile)
public java.lang.Object executeCommand(int ID,
java.lang.Object[] args)
public void openTransferedFile(java.lang.String file)
throws PdfException
PdfExceptionpublic boolean openingTransferedFiles()
public void handleUnsaveForms()
public void extractSelectedScreenAsImage()
public java.lang.String copySelectedText()
public void extractSelectedText()
public void openFile(java.lang.String selectedFile)
throws PdfException
PdfExceptionpublic void selectFile()
public void gotoPage(java.lang.String page)
public void updateRecentDocuments(java.lang.String[] recentDocs)
public void enableRecentDocuments(boolean enable)
public void addImage(java.awt.image.BufferedImage img)
public void recentDocumentsOption(javax.swing.JMenu file)
public final void flush()
public boolean checkForUpdates(boolean showMessages)
public void setPdfDecoder(PdfDecoder decode_pdf)
public void setPageProperties(java.lang.Object rotation,
java.lang.Object scaling)
public void clearRecentDocuments()
public SearchList getSearchList()
public MouseMode getMouseMode()
public void addAView(int page,
java.awt.Rectangle location,
java.lang.Integer scalingType)
public void goBackAView()
public void goForwardAView()
public boolean isImageExtractionAllowed()
public void setImageExtractionAllowed(boolean allow)
public boolean isPDF()
public static final boolean isPDFLinearized(java.lang.String pdfUrl)
throws PdfException
pdfUrl -
PdfException
public void scrollRectToHighlight(java.awt.Rectangle highlight,
int page)
|
JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||