|
||||||||||
| 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
com.icesoft.pdf.ri.common.views.AbstractDocumentView
The AbstractDocumentView class is implemented by the four predefined page views; OneColumnPageView, OnePageView, TwoColumnPageView and TwoPageView. Most of common work is implemented in this class which aid developers in defining their own custom page views.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected Document |
currentDocument
|
protected JScrollPane |
documentScrollpane
|
protected DocumentViewController |
documentViewController
|
protected DocumentViewModelImpl |
documentViewModel
|
protected static int |
horizontalSpace
|
protected Point |
lastMousePosition
|
protected static int |
layoutInserts
|
protected static int |
verticalSpace
|
| 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 com.icesoft.pdf.views.DocumentView |
LEFT_VIEW, RIGHT_VIEW |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
AbstractDocumentView(DocumentViewController documentViewController,
JScrollPane documentScrollpane,
DocumentViewModelImpl documentViewModel)
Creates a new instance of AbstractDocumentView. |
|
| Method Summary | |
void |
adjustmentValueChanged(AdjustmentEvent e)
|
void |
dispose()
Dispose all resources associated with this views. |
void |
focusGained(FocusEvent e)
|
void |
focusLost(FocusEvent e)
|
DocumentViewController |
getParentViewController()
Parent document view controller |
DocumentViewModel |
getViewModel()
Gets the view model associated with this document view. |
void |
mouseClicked(MouseEvent e)
Handler for mouse clicks. |
void |
mouseDragged(MouseEvent e)
Mouse dragged, initiates page panning if the tool is selected. |
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
Mouse pressed, changes the mouse cursor depending on the tool selected. |
void |
mouseReleased(MouseEvent e)
Mouse released, changes the mouse cursor depending on the tool selected. |
abstract void |
updateDocumentView()
invalidates page components |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.icesoft.pdf.views.DocumentView |
getDocumentSize, getNextPageIncrement, getPreviousPageIncrement |
| Field Detail |
protected static int verticalSpace
protected static int horizontalSpace
protected static int layoutInserts
protected Point lastMousePosition
protected DocumentViewController documentViewController
protected JScrollPane documentScrollpane
protected Document currentDocument
protected DocumentViewModelImpl documentViewModel
| Constructor Detail |
public AbstractDocumentView(DocumentViewController documentViewController,
JScrollPane documentScrollpane,
DocumentViewModelImpl documentViewModel)
documentViewController - controller for MVCdocumentScrollpane - scrollpane used to view pagesdocumentViewModel - model to represent view| Method Detail |
public DocumentViewController getParentViewController()
DocumentView
getParentViewController in interface DocumentViewpublic DocumentViewModel getViewModel()
DocumentView
getViewModel in interface DocumentViewpublic void dispose()
DocumentView
dispose in interface DocumentViewpublic abstract void updateDocumentView()
updateDocumentView in interface DocumentViewpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenere - public void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenere - public void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void adjustmentValueChanged(AdjustmentEvent e)
adjustmentValueChanged in interface AdjustmentListenerpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||