public class PDFCropper extends JFrame implements AutoMenuBarUser
Modifier and Type | Class and Description |
---|---|
private class |
PDFCropper.aboutActionListener |
private class |
PDFCropper.closeActionListener |
private class |
PDFCropper.debuglevelActionListener |
private class |
PDFCropper.exitActionListener |
private class |
PDFCropper.helpActionListener |
private class |
PDFCropper.jlfActionListener |
private class |
PDFCropper.mlfActionListener |
private class |
PDFCropper.openActionListener |
private class |
PDFCropper.plfActionListener |
private class |
PDFCropper.printActionListener |
private class |
PDFCropper.saveActionListener |
JFrame.AccessibleJFrame
Frame.AccessibleAWTFrame
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
private static int |
ABOUT_MENUREF
Description of the Field
|
private static String |
APP_NAME
The application name string
|
(package private) JPanel |
borderCropControlPanel1_ |
(package private) JPanel |
borderCropControlPanel2_ |
(package private) JPanel |
borderCropControlPanel3_ |
(package private) JPanel |
borderCropControlPanel4_ |
private static String |
className_
A Class holder for its name (used in Logging).
|
private static int |
CLOSE_MENUREF
Description of the Field
|
(package private) String |
croppedPDF_ |
(package private) CropPDF |
cropper_
the Crop PDF helper object
|
private static int |
DEBUGLEVEL_MENUREF
Description of the Field
|
private static int |
EXIT_MENUREF
Description of the Field
|
private static int |
HELP_MENUREF
Description of the Field
|
(package private) String |
inputPDF_ |
private static int |
JLF_MENUREF
Description of the Field
|
protected static Logger |
logger_
The log4j logger object.
|
private AutoMenuBar |
menuBar_
The MenuBar.
|
private static int |
MLF_MENUREF
Description of the Field
|
protected ColouredLabel |
myDebugLabel_
A generic Class accessable Label that is used throughout for Debug
Stmnts to the screen.
|
private static int |
OPEN_MENUREF
Description of the Field
|
private static int |
PLF_MENUREF
Description of the Field
|
private static int |
PRINT_MENUREF
Description of the Field
|
private static int |
SAVE_MENUREF
Description of the Field
|
private static String |
SYSTEM_FILE_SEPERATOR
Constant holding the users file seperator. ("/" or "\")
|
private static String |
SYSTEM_LINE_SEPERATOR
Constant holding the users file seperator. ("/" or "\")
|
(package private) TwoUpPDF |
twoUpper_
the Crop PDF helper object
|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
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
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PDFCropper()
Basic constructor for this Object.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Handles all the Actions originating from the Control Buttons.
|
void |
addListener(JMenuItem menuItem)
Adds an ActionListener to the JMenuItem that is supplied in the passed
param.
|
private void |
doCrop() |
private String |
get2UpCroppedPDF_() |
private String |
getCroppedPDF_() |
String |
getInputPDF_() |
Logger |
getLogger()
Gets the Log object that the jAckup instance is using.
|
private JPanel |
init2UpCroppedPDFPanel()
Initializes the GUI Main Area Panel (the tabbed pane, the
inner panels etc.)
|
private JPanel |
initCroppedPDFPanel()
Initializes the GUI Main Area Panel (the tabbed pane, the
inner panels etc.)
|
private void |
initGui()
Initializes the GUI upon startup.
|
private JPanel |
initMainArea()
Initializes the GUI Main Area Panel (the tabbed pane, the
inner panels etc.)
|
private JPanel |
initOriginalPDFPanel()
Initializes the GUI Main Area Panel (the tabbed pane, the
inner panels etc.)
|
static void |
main(String[] args)
The main program for the jAckup class
|
private void |
repaintMenuBar()
Forces a repaint to this apps menubar.
|
void |
setInputPDF_(String inputPDF) |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
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, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, 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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFont, postEvent
private static final String SYSTEM_FILE_SEPERATOR
private static final String SYSTEM_LINE_SEPERATOR
private static final String APP_NAME
private static String className_
protected ColouredLabel myDebugLabel_
String croppedPDF_
JPanel borderCropControlPanel1_
JPanel borderCropControlPanel2_
JPanel borderCropControlPanel3_
JPanel borderCropControlPanel4_
private AutoMenuBar menuBar_
initMenuBar
of the AutoMenuBar class.initMenuBar
private static final int OPEN_MENUREF
private static final int SAVE_MENUREF
private static final int PRINT_MENUREF
private static final int CLOSE_MENUREF
private static final int EXIT_MENUREF
private static final int DEBUGLEVEL_MENUREF
private static final int JLF_MENUREF
private static final int PLF_MENUREF
private static final int MLF_MENUREF
private static final int HELP_MENUREF
private static final int ABOUT_MENUREF
public PDFCropper()
public void setInputPDF_(String inputPDF)
public String getInputPDF_()
private String get2UpCroppedPDF_()
private String getCroppedPDF_()
private void doCrop()
private JPanel init2UpCroppedPDFPanel()
private JPanel initCroppedPDFPanel()
private JPanel initOriginalPDFPanel()
private JPanel initMainArea()
private void initGui()
private void repaintMenuBar()
public void addListener(JMenuItem menuItem)
addListener
in interface AutoMenuBarUser
menuItem
- The feature to be added to the Listener attributepublic Logger getLogger()
public static void main(String[] args)
arg
- The command line argumentspublic void actionPerformed(ActionEvent e)
e
- Description of ParameterWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses