|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JSplitPane
com.lowagie.rups.controller.PdfRendererController
public class PdfRendererController
This is the part of Trapeze that uses SUN's PDF Renderer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JSplitPane |
|---|
JSplitPane.AccessibleJSplitPane |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected PageLoader |
pageLoader
The page loader that provides access to the PDFPage objects. |
protected PagePanel |
pagePanel
The PagePanel |
private static long |
serialVersionUID
A Serial Version UID. |
protected ToolBar |
toolbar
The ToolBar. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PdfRendererController(PageNavigationListener listener)
Constructs the rendering controller. |
|
| Method Summary | |
|---|---|
int |
getCurrentPageNumber()
Getter for the current page number. |
int |
getTotalNumberOfPages()
Gets the total number of pages in the document. |
int |
gotoPage(int pageNumber)
Shows a specific page. |
protected int |
showPage(int pageNumber)
Shows a specific page in the page panel. |
void |
startPageLoader(PdfFile file)
Starts loading pages. |
void |
update(Observable observable,
Object obj)
Forwards updates from the RupsController to the Observers of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PageLoader pageLoader
protected ToolBar toolbar
protected PagePanel pagePanel
private static final long serialVersionUID
| Constructor Detail |
|---|
public PdfRendererController(PageNavigationListener listener)
listener - a page navigation listener| Method Detail |
|---|
public void startPageLoader(PdfFile file)
file - the PdfFile that needs to be renderedprotected int showPage(int pageNumber)
pageNumber - a number of a specific page.public int getTotalNumberOfPages()
public int getCurrentPageNumber()
public int gotoPage(int pageNumber)
pageNumber - the number of a specific page.
public void update(Observable observable,
Object obj)
update in interface Observerobservable - this should be the RupsControllerobj - the object that has to be forwarded to the observers of PdfReaderControllerObserver.update(java.util.Observable, java.lang.Object)
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||