|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable com.lowagie.rups.controller.RupsController
public class RupsController
This class controls all the GUI components that are shown in the Trapeze application: the menu bar, the panels,...
Field Summary | |
---|---|
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 Summary | |
---|---|
RupsController(java.awt.Dimension dimension)
Constructs the GUI components of the Trapeze application. |
Method Summary | |
---|---|
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)
|
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 PdfFile pdfFile
protected RupsMenuBar menuBar
protected javax.swing.JSplitPane masterComponent
protected PdfRendererController renderer
protected PdfReaderController reader
Constructor Detail |
---|
public RupsController(java.awt.Dimension dimension)
Method Detail |
---|
public RupsMenuBar getMenuBar()
public java.awt.Component getMasterComponent()
public void notifyObservers(java.lang.Object obj)
notifyObservers
in class java.util.Observable
Observable.notifyObservers(java.lang.Object)
public void valueChanged(javax.swing.event.TreeSelectionEvent evt)
valueChanged
in interface javax.swing.event.TreeSelectionListener
TreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent)
public int getCurrentPageNumber()
PageNavigationListener
getCurrentPageNumber
in interface PageNavigationListener
PageNavigationListener.getCurrentPageNumber()
public int getTotalNumberOfPages()
PageNavigationListener
getTotalNumberOfPages
in interface PageNavigationListener
PageNavigationListener.getTotalNumberOfPages()
public int gotoFirstPage()
PageNavigationListener
gotoFirstPage
in interface PageNavigationListener
PageNavigationListener.gotoFirstPage()
public int gotoPreviousPage()
PageNavigationListener
gotoPreviousPage
in interface PageNavigationListener
PageNavigationListener.gotoPreviousPage()
public int gotoPage(int pageNumber)
PageNavigationListener
gotoPage
in interface PageNavigationListener
PageNavigationListener.gotoPage(int)
public int gotoNextPage()
PageNavigationListener
gotoNextPage
in interface PageNavigationListener
PageNavigationListener.gotoNextPage()
public int gotoLastPage()
PageNavigationListener
gotoLastPage
in interface PageNavigationListener
PageNavigationListener.gotoLastPage()
public static javax.swing.JScrollPane getScrollPane(java.awt.Component component)
component
- the component that has to be scrollable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |