public class RupsController extends java.util.Observable implements javax.swing.event.TreeSelectionListener, PageNavigationListener
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JSplitPane |
masterComponent
Contains all other components: the page panel, the outline tree, etc.
|
protected RupsMenuBar |
menuBar
The JMenuBar for the Trapeze application.
|
protected PdfFile |
pdfFile
The Pdf file that is currently open in the application.
|
protected PdfReaderController |
reader
Object with the GUI components for iText.
|
protected PdfRendererController |
renderer
Object with the GUI components for SUN's PDF Renderer.
|
| Constructor and Description |
|---|
RupsController(java.awt.Dimension dimension)
Constructs the GUI components of the Trapeze application.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentPageNumber()
Returns the current page number of a document.
|
java.awt.Component |
getMasterComponent()
Getter for the master component.
|
RupsMenuBar |
getMenuBar()
Getter for the menubar.
|
static javax.swing.JScrollPane |
getScrollPane(java.awt.Component component)
Adds a component to a ScrollPane.
|
int |
getTotalNumberOfPages()
Returns the total number of pages in a document.
|
int |
gotoFirstPage()
Goes to the first page in a document.
|
int |
gotoLastPage()
Goes to the last page in a document.
|
int |
gotoNextPage()
Goes to the previous page in a document.
|
int |
gotoPage(int pageNumber)
Goes to a specific page number in a document.
|
int |
gotoPreviousPage()
Goes to the previous page in a document.
|
void |
notifyObservers(java.lang.Object obj) |
void |
valueChanged(javax.swing.event.TreeSelectionEvent evt) |
protected PdfFile pdfFile
protected RupsMenuBar menuBar
protected javax.swing.JSplitPane masterComponent
protected PdfRendererController renderer
protected PdfReaderController reader
public RupsController(java.awt.Dimension dimension)
public RupsMenuBar getMenuBar()
public java.awt.Component getMasterComponent()
public void notifyObservers(java.lang.Object obj)
notifyObservers in class java.util.ObservableObservable.notifyObservers(java.lang.Object)public void valueChanged(javax.swing.event.TreeSelectionEvent evt)
valueChanged in interface javax.swing.event.TreeSelectionListenerTreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent)public int getCurrentPageNumber()
PageNavigationListenergetCurrentPageNumber in interface PageNavigationListenerPageNavigationListener.getCurrentPageNumber()public int getTotalNumberOfPages()
PageNavigationListenergetTotalNumberOfPages in interface PageNavigationListenerPageNavigationListener.getTotalNumberOfPages()public int gotoFirstPage()
PageNavigationListenergotoFirstPage in interface PageNavigationListenerPageNavigationListener.gotoFirstPage()public int gotoPreviousPage()
PageNavigationListenergotoPreviousPage in interface PageNavigationListenerPageNavigationListener.gotoPreviousPage()public int gotoPage(int pageNumber)
PageNavigationListenergotoPage in interface PageNavigationListenerPageNavigationListener.gotoPage(int)public int gotoNextPage()
PageNavigationListenergotoNextPage in interface PageNavigationListenerPageNavigationListener.gotoNextPage()public int gotoLastPage()
PageNavigationListenergotoLastPage in interface PageNavigationListenerPageNavigationListener.gotoLastPage()public static javax.swing.JScrollPane getScrollPane(java.awt.Component component)
component - the component that has to be scrollable