com.openpcl.viewer.jframe
Class PosSimpleJFrame
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
com.openpcl.viewer.jframe.PosSimpleJFrame
- All Implemented Interfaces:
- ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
public class PosSimpleJFrame
- extends JFrame
PosSimpleJFrame is a JFrame that puts the OpenPCLViewer (a JPanel) on the screen in the JFrame's layout.
The OpenPCLViewer panel sends PCL bytes to the PclRenderImage class that is in the .jar file of that name.
PclRenderImage and its related classes parse the PCL bytes and then draws/renders the PCL image on a
BufferedImage which OpenPCLViewer puts on the screen along with the JTree that has tree nodes for the
possibly multi page PCL bytes.
- Author:
- DocMagic, Document Systems Inc, HowardH. 9/20/06
- See Also:
- Serialized Form
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Method Summary |
protected JMenuBar |
buildSimpleJMenuBar()
|
protected void |
buildSimpleUI()
Build the UI elements |
protected JCheckBoxMenuItem |
createCheckBoxMenuItem(String pTextString,
boolean selected)
|
protected ActionListener |
createCloseFileActionListener()
|
protected ActionListener |
createExitAppActionListener()
|
protected ActionListener |
createHelpAboutActionListener()
|
protected JMenu |
createMenu(String pTextString,
char pMnemonicChar)
Helper method to create JMenus from the String text and the char mnemonic. |
protected JMenuItem |
createMenuItem(String pTextString)
|
protected JMenuItem |
createMenuItem(String pTextString,
char pMnemonicChar)
|
protected JMenuItem |
createMenuItem(String pTextString,
char pMnemonicChar,
KeyStroke pKeyStroke)
|
protected JMenuItem |
createMenuItem(String pTextString,
Icon pIcon)
|
protected JMenuItem |
createMenuItem(String pTextString,
Icon pIcon,
char pMnemonicChar)
|
protected JMenuItem |
createMenuItem(String pTextString,
Icon pIcon,
char pMnemonicChar,
KeyStroke pKeyStroke)
|
protected ActionListener |
createOpenLocalFileActionListener()
|
protected JRadioButtonMenuItem |
createRadioButtonMenuItem(String pTextString,
boolean selected)
|
protected ActionListener |
createShowLicenseInfoActionListener()
|
void |
exitAppActionPerformed(ActionEvent e)
|
protected void |
readPersistedOuterFrameValues()
Read the persisted outer frame's (x,y) location and (width,height), and window state (maximized/iconified) |
protected void |
savePersistedOuterFrameValues()
Save the persisted outer frame's (x,y) location and (width,height), and window state (maximized/iconified) |
void |
setOpenPCLViewerJPanel(OpenPCLViewer pOpenPCLViewer)
This is called after JFrame constructor time, but after the OpenPCLViewer JPanel
has been laid out during it's constructor time. |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
mAppName
protected String mAppName
mAppDescription
protected String mAppDescription
mAppVersion
protected String mAppVersion
mOpenPCLViewer
protected OpenPCLViewer mOpenPCLViewer
mPackagePreferences
protected Preferences mPackagePreferences
mPosPersistOuterFrameValues
protected PosPersistOuterFrameValues mPosPersistOuterFrameValues
mOuterframeX
protected int mOuterframeX
mOuterframeY
protected int mOuterframeY
mOuterframeWidth
protected int mOuterframeWidth
mOuterframeHeight
protected int mOuterframeHeight
mOuterframeState
protected int mOuterframeState
mBorderLayout
protected BorderLayout mBorderLayout
mJMenuBar
protected JMenuBar mJMenuBar
mJToolBar
protected JToolBar mJToolBar
mPclViewerOuterJPanel
protected JPanel mPclViewerOuterJPanel
mModeToRun
protected int mModeToRun
PosSimpleJFrame
public PosSimpleJFrame(int pModeToRun)
readPersistedOuterFrameValues
protected void readPersistedOuterFrameValues()
- Read the persisted outer frame's (x,y) location and (width,height), and window state (maximized/iconified)
savePersistedOuterFrameValues
protected void savePersistedOuterFrameValues()
- Save the persisted outer frame's (x,y) location and (width,height), and window state (maximized/iconified)
buildSimpleUI
protected void buildSimpleUI()
- Build the UI elements
setOpenPCLViewerJPanel
public void setOpenPCLViewerJPanel(OpenPCLViewer pOpenPCLViewer)
- This is called after JFrame constructor time, but after the OpenPCLViewer JPanel
has been laid out during it's constructor time.
- Parameters:
pOpenPCLViewer
-
buildSimpleJMenuBar
protected JMenuBar buildSimpleJMenuBar()
createOpenLocalFileActionListener
protected ActionListener createOpenLocalFileActionListener()
createCloseFileActionListener
protected ActionListener createCloseFileActionListener()
createExitAppActionListener
protected ActionListener createExitAppActionListener()
exitAppActionPerformed
public void exitAppActionPerformed(ActionEvent e)
createHelpAboutActionListener
protected ActionListener createHelpAboutActionListener()
createShowLicenseInfoActionListener
protected ActionListener createShowLicenseInfoActionListener()
createMenu
protected JMenu createMenu(String pTextString,
char pMnemonicChar)
- Helper method to create JMenus from the String text and the char mnemonic.
Typically these are the words on the menu bar: "File", "Edit", "Window", "Help", etc...
that when clicked on, cause the drop down menu to show below the menu bar
createMenuItem
protected JMenuItem createMenuItem(String pTextString)
createMenuItem
protected JMenuItem createMenuItem(String pTextString,
char pMnemonicChar)
createMenuItem
protected JMenuItem createMenuItem(String pTextString,
char pMnemonicChar,
KeyStroke pKeyStroke)
createMenuItem
protected JMenuItem createMenuItem(String pTextString,
Icon pIcon)
createMenuItem
protected JMenuItem createMenuItem(String pTextString,
Icon pIcon,
char pMnemonicChar)
createMenuItem
protected JMenuItem createMenuItem(String pTextString,
Icon pIcon,
char pMnemonicChar,
KeyStroke pKeyStroke)
createRadioButtonMenuItem
protected JRadioButtonMenuItem createRadioButtonMenuItem(String pTextString,
boolean selected)
createCheckBoxMenuItem
protected JCheckBoxMenuItem createCheckBoxMenuItem(String pTextString,
boolean selected)
OpenPCL http://www.openpcl.com