|
||||||||||
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.JPanel
org.faceless.pdf2.viewer2.feature.ThumbnailPanel.View
public static class ThumbnailPanel.View
This class is the JPanel containing all the thumbnails. It serves as a DropTarget
or drag-and-drop, as a the Scrollable content of the SidePanel, and handles actions
when the document is updated, when a popup has run on the selected panels, and when
a keypress is received (by way of its InputMap
and ActionMap
. New
actions may be registered with this class by adding ThumbnailPanel.ThumbnailSelectionAction
s
to the viewer. These should respect this objects isEditable()
flag if they're
going to modify the file.
This class fires "selection" PropertyChangeEvent
s when the list of selected
pages is changed, and "selected" events when the current page is changed.
ThumbnailPanel.ThumbnailSelectionAction
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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 |
---|
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 |
Method Summary | |
---|---|
void |
autoscroll(Point p)
|
void |
documentUpdated(DocumentPanelEvent event)
The document has been updated - check for loading, closing or changing the current page. |
void |
doLayout()
|
void |
dragEnter(DropTargetDragEvent event)
|
void |
dragExit(DropTargetEvent event)
|
void |
dragOver(DropTargetDragEvent event)
|
void |
drop(DropTargetDropEvent event)
Accept a Drop. |
void |
dropActionChanged(DropTargetDragEvent event)
|
Insets |
getAutoscrollInsets()
|
DocumentPanel |
getDocumentPanel()
Get the DocumentPanel this View relates to |
Dimension |
getPreferredScrollableViewportSize()
|
Dimension |
getPreferredSize()
|
int |
getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
|
boolean |
getScrollableTracksViewportHeight()
|
boolean |
getScrollableTracksViewportWidth()
|
int |
getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
|
List |
getSelectedPages()
Return a List of selected pages |
String |
getSelectedPagesDescription()
Get a String describing the currently selected pages |
boolean |
isEditable()
Return true if the PDF in the panel can be edited. |
boolean |
isFactoryEditable()
Return true if this ThumbnailPanel will never allow editing. |
void |
paintComponent(Graphics g)
|
void |
propertyChange(PropertyChangeEvent event)
The PDF fired a property change - document may have had its page list altered. |
void |
setBounds(int x,
int y,
int width,
int height)
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void documentUpdated(DocumentPanelEvent event)
documentUpdated
in interface DocumentPanelListener
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
public String getSelectedPagesDescription()
public List getSelectedPages()
List
of selected pages
public void doLayout()
doLayout
in class Container
public boolean isFactoryEditable()
public boolean isEditable()
public DocumentPanel getDocumentPanel()
public void dragOver(DropTargetDragEvent event)
dragOver
in interface DropTargetListener
public void dragEnter(DropTargetDragEvent event)
dragEnter
in interface DropTargetListener
public void dragExit(DropTargetEvent event)
dragExit
in interface DropTargetListener
public void drop(DropTargetDropEvent event)
drop
in interface DropTargetListener
public void dropActionChanged(DropTargetDragEvent event)
dropActionChanged
in interface DropTargetListener
public void setBounds(int x, int y, int width, int height)
setBounds
in class Component
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize
in interface Scrollable
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement
in interface Scrollable
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement
in interface Scrollable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface Scrollable
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface Scrollable
public void paintComponent(Graphics g)
paintComponent
in class JComponent
public void autoscroll(Point p)
autoscroll
in interface Autoscroll
public Insets getAutoscrollInsets()
getAutoscrollInsets
in interface Autoscroll
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |