|
||||||||||
| 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
adams.gui.core.BasePanel
adams.gui.visualization.pdf.PDFViewerPanel
public class PDFViewerPanel
A basic PDF viewer.
| Nested Class Summary | |
|---|---|
static class |
PDFViewerPanel.TabbedPane
A specialized tabbed pane with a few methods for easier access. |
| 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 | |
|---|---|
protected BaseFileChooser |
m_FileChooser
the filedialog for loading CSV files. |
protected JMenuBar |
m_MenuBar
the menu bar, if used. |
protected JMenuItem |
m_MenuItemFileClose
the "close" menu item. |
protected JMenuItem |
m_MenuItemFileExit
the "exit" menu item. |
protected JMenuItem |
m_MenuItemFileOpen
the "open" menu item. |
protected JMenu |
m_MenuItemFileOpenRecent
the "load recent" submenu. |
protected JMenuItem |
m_MenuItemViewZoomIn
the menu item "zoom in". |
protected JMenuItem |
m_MenuItemViewZoomOut
the menu item "zoom out". |
protected JMenu |
m_MenuViewZoom
the menu "zoom". |
protected static Properties |
m_Properties
the properties. |
protected RecentFilesHandler |
m_RecentFilesHandler
the recent files handler. |
protected PDFViewerPanel.TabbedPane |
m_TabbedPane
the tabbed pane for displaying the CSV files. |
static String |
SESSION_FILE
the file to store the recent files in. |
| 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 | |
|---|---|
PDFViewerPanel()
|
|
| Method Summary | |
|---|---|
protected void |
close()
Closes the dialog or frame. |
protected void |
closeFile()
Closes the current active tab. |
PDFPanel |
getCurrentPanel()
Returns the image panel in the currently selected tab. |
protected BaseFileChooser |
getFileChooser()
Returns the file chooser and creates it if necessary. |
JMenuBar |
getMenuBar()
Creates a menu bar (singleton per panel object). |
Class[] |
getSendToClasses()
Returns the class that the supporter generates. |
Object |
getSendToItem(Class[] cls)
Returns the object to send. |
boolean |
hasSendToItem(Class[] cls)
Checks whether something to send is available. |
protected void |
initGUI()
Initializes the widgets. |
protected void |
initialize()
Initializes the members. |
void |
load(File file)
Loads the specified PDF file. |
protected void |
open()
Opens one or more CSV files. |
protected void |
updateMenu()
updates the enabled state of the menu items. |
protected void |
zoom(int zoom)
Zooms in/out. |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, finishInit, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, main, setParentTitle, setVisible |
| 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 |
| Field Detail |
|---|
public static final String SESSION_FILE
protected static Properties m_Properties
protected PDFViewerPanel.TabbedPane m_TabbedPane
protected JMenuBar m_MenuBar
protected JMenuItem m_MenuItemFileOpen
protected JMenu m_MenuItemFileOpenRecent
protected JMenuItem m_MenuItemFileClose
protected JMenuItem m_MenuItemFileExit
protected JMenu m_MenuViewZoom
protected JMenuItem m_MenuItemViewZoomIn
protected JMenuItem m_MenuItemViewZoomOut
protected transient BaseFileChooser m_FileChooser
protected RecentFilesHandler m_RecentFilesHandler
| Constructor Detail |
|---|
public PDFViewerPanel()
| Method Detail |
|---|
protected void initialize()
initialize in class BasePanelprotected void initGUI()
initGUI in class BasePanelprotected BaseFileChooser getFileChooser()
public JMenuBar getMenuBar()
getMenuBar in interface MenuBarProviderpublic PDFPanel getCurrentPanel()
protected void updateMenu()
protected void open()
public void load(File file)
file - the file to loadprotected void closeFile()
protected void close()
protected void zoom(int zoom)
zoom - the zoom (in percent)public Class[] getSendToClasses()
getSendToClasses in interface SendToActionSupporterpublic boolean hasSendToItem(Class[] cls)
hasSendToItem in interface SendToActionSupportercls - the requested classes
public Object getSendToItem(Class[] cls)
getSendToItem in interface SendToActionSupportercls - the requested classes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||