|
||||||||||
| 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
com.icesoft.pdf.ri.common.views.TwoColumnPageView
Constructs a two column page view as defined in the PDF specification. A two column page view displays pages in two columns with odd numbered pages on the left.
Page views are basic containers which use Swing Layout Containers to place pages
| 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 CurrentPageChanger |
currentPageChanger
|
protected boolean |
disposing
|
protected JScrollPane |
documentScrollpane
|
protected KeyListenerPageColumnChanger |
keyListenerPageChanger
|
protected JPanel |
pagesPanel
|
protected int |
viewAlignment
|
| Fields inherited from class com.icesoft.pdf.ri.common.views.AbstractDocumentView |
currentDocument, documentViewController, documentViewModel, horizontalSpace, lastMousePosition, layoutInserts, 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 | |
TwoColumnPageView(DocumentViewController documentDocumentViewController,
JScrollPane documentScrollpane,
DocumentViewModelImpl documentViewModel,
int viewAlignment)
|
|
| Method Summary | |
void |
dispose()
Dispose all resources associated with this views. |
Dimension |
getDocumentSize()
Gets the total size of the document view. |
int |
getNextPageIncrement()
Returns a next page increment of two. |
int |
getPreviousPageIncrement()
Returns a previous page increment of two. |
void |
mouseReleased(MouseEvent e)
Mouse released, changes the mouse cursor depending on the tool selected. |
void |
paintComponent(Graphics g)
|
void |
updateDocumentView()
invalidates page components |
| Methods inherited from class com.icesoft.pdf.ri.common.views.AbstractDocumentView |
adjustmentValueChanged, focusGained, focusLost, getParentViewController, getViewModel, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected JScrollPane documentScrollpane
protected boolean disposing
protected JPanel pagesPanel
protected int viewAlignment
protected CurrentPageChanger currentPageChanger
protected KeyListenerPageColumnChanger keyListenerPageChanger
| Constructor Detail |
public TwoColumnPageView(DocumentViewController documentDocumentViewController,
JScrollPane documentScrollpane,
DocumentViewModelImpl documentViewModel,
int viewAlignment)
| Method Detail |
public void updateDocumentView()
AbstractDocumentView
updateDocumentView in interface DocumentViewupdateDocumentView in class AbstractDocumentViewpublic int getNextPageIncrement()
public int getPreviousPageIncrement()
public void mouseReleased(MouseEvent e)
AbstractDocumentView
mouseReleased in interface MouseListenermouseReleased in class AbstractDocumentViewe - public void dispose()
DocumentView
dispose in interface DocumentViewdispose in class AbstractDocumentViewpublic Dimension getDocumentSize()
DocumentView
public void paintComponent(Graphics g)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||