com.lowagie.rups.controller
public class RupsController extends Observable implements TreeSelectionListener, PageNavigationListener
| Field Summary | |
|---|---|
| protected 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(Dimension dimension)
Constructs the GUI components of the Trapeze application. | |
| Method Summary | |
|---|---|
| int | getCurrentPageNumber() |
| Component | getMasterComponent() Getter for the master component. |
| RupsMenuBar | getMenuBar() Getter for the menubar. |
| static JScrollPane | getScrollPane(Component component)
Adds a component to a ScrollPane. |
| int | getTotalNumberOfPages() |
| int | gotoFirstPage() |
| int | gotoLastPage() |
| int | gotoNextPage() |
| int | gotoPage(int pageNumber) |
| int | gotoPreviousPage() |
| void | notifyObservers(Object obj) |
| void | valueChanged(TreeSelectionEvent evt) |
See Also: getCurrentPageNumber
Parameters: component the component that has to be scrollable
Returns: a JScrollPane
Since: 2.1.0
See Also: getTotalNumberOfPages
See Also: gotoFirstPage
See Also: gotoLastPage
See Also: gotoNextPage
See Also: PageNavigationListener
See Also: gotoPreviousPage
See Also: java.util.Observable#notifyObservers(java.lang.Object)
See Also: javax.swing.event.TreeSelectionListener#valueChanged(javax.swing.event.TreeSelectionEvent)