|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
com.lowagie.rups.controller.PdfReaderController
public class PdfReaderController
Controls the GUI components that get their content from iText's PdfReader.
| Field Summary | |
|---|---|
protected JTabbedPane |
editorTabs
Tabbed Pane containing other components. |
protected FormTree |
form
Treeview of the form. |
protected JTabbedPane |
navigationTabs
Tabbed Pane containing other components. |
protected TreeNodeFactory |
nodes
The factory producing tree nodes. |
protected PdfObjectPanel |
objectPanel
A panel that will show PdfObjects. |
protected OutlineTree |
outlines
Treeview of the outlines. |
protected PagesTable |
pages
JTable with all the pages and their labels. |
protected PdfTree |
pdfTree
Treeview of the PDF file. |
protected StreamTextArea |
streamArea
A panel that will show a stream. |
protected XRefTable |
xref
JTable corresponding with the CrossReference table. |
| Constructor Summary | |
|---|---|
PdfReaderController(TreeSelectionListener treeSelectionListener,
PageSelectionListener pageSelectionListener)
Constructs the PdfReaderController. |
|
| Method Summary | |
|---|---|
JTabbedPane |
getEditorTabs()
Getter for the tabs with the editor windows (to which the Console window will be added). |
JTabbedPane |
getNavigationTabs()
Getter for the tabs that allow you to navigate through the PdfTree quickly (pages, form, outlines, xref table). |
PdfObjectPanel |
getObjectPanel()
Getter for the panel that will show the contents of a PDF Object (except for PdfStreams: only the Stream Dictionary will be shown; the content stream is shown in a StreamTextArea object). |
PdfTree |
getPdfTree()
Getter for the PDF Tree. |
StreamTextArea |
getStreamArea()
Getter for the object that holds the TextArea with the content stream of a PdfStream object. |
void |
gotoPage(int pageNumber)
Selects the row in the pageTable that corresponds with a certain page number. |
void |
notifyObservers(Object obj)
The GUI components that show the internals of a PDF file, can only be shown if all objects are loaded into the IndirectObjectFactory using the ObjectLoader. |
void |
render(PdfObject object)
Renders the syntax of a PdfObject in the objectPanel. |
void |
selectNode(int objectNumber)
Selects a node in the PdfTree. |
void |
selectNode(PdfObjectTreeNode node)
Selects a node in the PdfTree. |
void |
startObjectLoader(PdfFile file)
Starts loading the PDF Objects in background. |
void |
update(Observable observable,
Object obj)
Forwards updates from the RupsController to the Observers of this class. |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PdfTree pdfTree
protected JTabbedPane navigationTabs
protected PagesTable pages
protected OutlineTree outlines
protected FormTree form
protected XRefTable xref
protected PdfObjectPanel objectPanel
protected JTabbedPane editorTabs
protected StreamTextArea streamArea
protected TreeNodeFactory nodes
| Constructor Detail |
|---|
public PdfReaderController(TreeSelectionListener treeSelectionListener,
PageSelectionListener pageSelectionListener)
treeSelectionListener - when somebody selects a tree node, this listener listens to the eventpageSelectionListener - when somebody changes a page, this listener changes accordingly| Method Detail |
|---|
public PdfTree getPdfTree()
public JTabbedPane getNavigationTabs()
public PdfObjectPanel getObjectPanel()
public JTabbedPane getEditorTabs()
public StreamTextArea getStreamArea()
public void startObjectLoader(PdfFile file)
file - the wrapper object that holds the PdfReader as member variablepublic void notifyObservers(Object obj)
notifyObservers in class Observableobj - in this case the Object should be an ObjectLoaderObservable.notifyObservers(java.lang.Object)public void selectNode(PdfObjectTreeNode node)
node - a node in the PdfTreepublic void selectNode(int objectNumber)
objectNumber - a number of a node in the PdfTreepublic void render(PdfObject object)
public void gotoPage(int pageNumber)
pageNumber - the page number that needs to be selected
public void update(Observable observable,
Object obj)
update in interface Observerobservable - this should be the RupsControllerobj - the object that has to be forwarded to the observers of PdfReaderControllerObserver.update(java.util.Observable, java.lang.Object)
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||