|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.MultiPageEditorPart
org.jpedal.pdf.plugins.eclipse.editors.PDFEditor
public class PDFEditor
Field Summary | |
---|---|
static boolean |
debug
used in development |
static java.lang.String |
ID
|
static boolean |
useViewer
flag to switch to Viewer |
Fields inherited from interface org.eclipse.ui.IEditorPart |
---|
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
PDFEditor()
initial setup from Eclipse |
Method Summary | |
---|---|
void |
clearSearchHighlights()
used by search to remove highlights |
void |
decodePageFromOutline(int pageNumber,
java.awt.Point p)
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
not needed us PDF but part of interface |
void |
doSaveAs()
not needed us PDF but part of interface |
java.lang.Object |
getAdapter(java.lang.Class key)
part of interface used to handle our PDF outline |
org.jpedal.examples.simpleviewer.gui.swing.SwingOutline |
getOutline()
|
int |
getPage()
make currently displayed page available for other views to access |
java.awt.Rectangle |
getPageRectangle()
|
org.jpedal.PdfDecoder |
getPDF()
allow external access to PDfDecoder for Search access |
org.jpedal.grouping.PdfGroupingAlgorithms |
getPdfGroupingObject(int i)
raw text for the page |
int |
getPDFPageCount()
pages in this file (first page is 1) (there is an internal eclipse method called getPageCount() so do not over-ride |
float |
getScale()
make it available externally (ie for Search outline) |
java.lang.Object |
getSearchWindow()
|
org.jpedal.examples.simpleviewer.gui.generic.GUIThumbnailPanel |
getThumbnail()
|
java.lang.String |
getURI()
|
org.jpedal.examples.simpleviewer.SimpleViewer |
getViewer()
|
void |
handleAction(java.lang.String Aref)
modified version of gotoDest in DefaultActionHandler - if you use PDFdecoder (if you use SimpleViewer you do not need to both with all this |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
setup path of PDF ready to use later |
boolean |
isDirty()
not needed us PDF but part of interface |
boolean |
isOpen()
|
boolean |
isSaveAsAllowed()
not needed us PDF but part of interface |
void |
lastPage()
goto last page |
void |
repaintPDF()
ensure redrawn |
void |
setAnnotationHandler(org.jpedal.AnnotationHandler ah)
|
void |
setFocus()
Passing the focus request to the viewer's control. |
void |
setHighlight(java.awt.Rectangle highlight,
int nextPage)
highlight an area on screen (assumes current page) |
void |
setPage(int newPage)
set page number from search or outline and decode/display new page |
void |
setPage(int newPage,
float scaling)
set page number from search or outline and decode/display new page |
void |
setPageCounter()
update page number display |
void |
setSearchWindow(PDFSearch search)
|
void |
stopSearch()
Kill the thread, that is performing the search, safely |
Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart |
---|
addPage, addPage, addPage, addPage, addPageChangedListener, createPartControl, dispose, findEditors, getActivePage, getSelectedPage, removePage, removePageChangedListener, setActiveEditor |
Methods inherited from class org.eclipse.ui.part.EditorPart |
---|
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPartPropertyListener, addPropertyListener, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
Field Detail |
---|
public static final java.lang.String ID
public static final boolean debug
public static boolean useViewer
Constructor Detail |
---|
public PDFEditor()
Method Detail |
---|
public void stopSearch()
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave
in interface org.eclipse.ui.ISaveablePart
doSave
in class org.eclipse.ui.part.EditorPart
public void doSaveAs()
doSaveAs
in interface org.eclipse.ui.ISaveablePart
doSaveAs
in class org.eclipse.ui.part.EditorPart
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) throws org.eclipse.ui.PartInitException
init
in interface org.eclipse.ui.IEditorPart
init
in class org.eclipse.ui.part.MultiPageEditorPart
org.eclipse.ui.PartInitException
public boolean isDirty()
isDirty
in interface org.eclipse.ui.ISaveablePart
isDirty
in class org.eclipse.ui.part.MultiPageEditorPart
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
public org.jpedal.examples.simpleviewer.gui.generic.GUIThumbnailPanel getThumbnail()
public org.jpedal.examples.simpleviewer.gui.swing.SwingOutline getOutline()
public void decodePageFromOutline(int pageNumber, java.awt.Point p)
public void handleAction(java.lang.String Aref)
public void lastPage()
public int getPDFPageCount()
public int getPage()
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.MultiPageEditorPart
public org.jpedal.PdfDecoder getPDF()
public java.lang.Object getAdapter(java.lang.Class key)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.ui.part.MultiPageEditorPart
public void setPage(int newPage)
public void setPage(int newPage, float scaling)
public void setPageCounter()
public void repaintPDF()
public float getScale()
public java.lang.Object getSearchWindow()
public void setSearchWindow(PDFSearch search)
public boolean isOpen()
public void setHighlight(java.awt.Rectangle highlight, int nextPage)
highlight
- nextPage
- public void clearSearchHighlights()
public org.jpedal.grouping.PdfGroupingAlgorithms getPdfGroupingObject(int i) throws java.lang.Exception
i
-
java.lang.Exception
public java.awt.Rectangle getPageRectangle()
public void setAnnotationHandler(org.jpedal.AnnotationHandler ah)
public org.jpedal.examples.simpleviewer.SimpleViewer getViewer()
public java.lang.String getURI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |