Class RupsController
java.lang.Object
java.util.Observable
org.openpdf.rups.controller.RupsController
- All Implemented Interfaces:
EventListener, TreeSelectionListener, PageSelectionListener
public class RupsController
extends Observable
implements TreeSelectionListener, PageSelectionListener
This class controls all the GUI components that are shown in the RUPS application: the menu bar, the panels,...
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JSplitPaneContains all other components: the page panel, the outline tree, etc.protected RupsMenuBarThe JMenuBar for the RUPS application.protected PdfFileThe Pdf file that is currently open in the application.protected PdfReaderControllerObject with the GUI components for iText. -
Constructor Summary
ConstructorsConstructorDescriptionRupsController(Dimension dimension) Constructs the GUI components of the RUPS application. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the master component.Getter for the menubar.intgotoPage(int pageNumber) Goes to a specific page number in a document.voidnotifyObservers(Object obj) voidMethods inherited from class Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
-
Field Details
-
pdfFile
The Pdf file that is currently open in the application. -
readerController
Object with the GUI components for iText.- Since:
- iText 5.0.0 (renamed from reader which was confusing because reader is normally used for a PdfReader instance)
-
masterComponent
Contains all other components: the page panel, the outline tree, etc.
-
-
Constructor Details
-
RupsController
Constructs the GUI components of the RUPS application.- Parameters:
dimension- the Dimension of the GUi components
-
-
Method Details
-
getMenuBar
-
getMasterComponent
Getter for the master component.- Returns:
- the master component
-
notifyObservers
- Overrides:
notifyObserversin classObservable- See Also:
-
valueChanged
- Specified by:
valueChangedin interfaceTreeSelectionListener- See Also:
-
gotoPage
public int gotoPage(int pageNumber) Description copied from interface:PageSelectionListenerGoes to a specific page number in a document.- Specified by:
gotoPagein interfacePageSelectionListener- Parameters:
pageNumber- the page number to go to- Returns:
- the resulting page number. Can be different from pageNumber if pageNumber doesn't exist.
- See Also:
-