Class RupsController

  • All Implemented Interfaces:
    PageNavigationListener, java.util.EventListener, javax.swing.event.TreeSelectionListener

    public class RupsController
    extends java.util.Observable
    implements javax.swing.event.TreeSelectionListener, PageNavigationListener
    This class controls all the GUI components that are shown in the Trapeze application: the menu bar, the panels,...
    • Constructor Summary

      Constructors 
      Constructor Description
      RupsController​(java.awt.Dimension dimension)
      Constructs the GUI components of the Trapeze application.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • 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

      • pdfFile

        protected PdfFile pdfFile
        The Pdf file that is currently open in the application.
      • menuBar

        protected RupsMenuBar menuBar
        The JMenuBar for the Trapeze application.
      • masterComponent

        protected javax.swing.JSplitPane masterComponent
        Contains all other components: the page panel, the outline tree, etc.
      • renderer

        protected PdfRendererController renderer
        Object with the GUI components for SUN's PDF Renderer.
    • Constructor Detail

      • RupsController

        public RupsController​(java.awt.Dimension dimension)
        Constructs the GUI components of the Trapeze application.