com.qoppa.pdfNotes
Class AnnotToolbar

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JToolBar
                  extended bycom.qoppa.pdfNotes.AnnotToolbar
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable, SwingConstants

public class AnnotToolbar
extends JToolBar

This class implements the toolbar that provides annotation tools. The toolbar is displayed above the PDF document and provides tools to draw the following types of annotations: circles, lines, squares, pencil, free text, sticky notes, sound recording and links. The host application can get a reference to this object by calling PDFNotesBean.getAnnotToolbar. After getting a reference, the host application can call any of get getjb... methods to get a reference to any of the toolbar buttons to hide, disable or change them.

Author:
Qoppa Software
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JToolBar
JToolBar.Separator
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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 javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AnnotToolbar()
          This method initializes the annotations toolbar.
 
Method Summary
 JButton getjbCircle()
          Returns the circle button.
 JButton getjbFreeText()
          Returns the freetext button.
 JButton getjbHighlight()
          This method initializes ToolbarButton
 JButton getjbLine()
          Returns the line button.
 JButton getjbLink()
          Returns the link button.
 JButton getjbNote()
          Returns the note button.
 JButton getjbPencil()
          Returns the pencil button.
 JButton getjbPolygon()
          Returns the polygon button.
 JButton getJbSign()
          This method initializes jbSign
 JButton getjbSound()
          Returns the sound button.
 JButton getjbSquare()
          Returns the square button.
 JButton getjbStamp()
          Returns the stamp button.
 JButton getjbTextCrossout()
          This method initializes ToolbarButton
 JButton getjbTextHighlight()
          This method initializes ToolbarButton
 JButton getjbTextSquiggly()
          This method initializes ToolbarButton
 JButton getjbTextUnderline()
          This method initializes ToolbarButton
 JPopupMenu getQmAddStamps()
          This method initializes qmAddStamps
 JMenuItem getQmiAddStampApproved()
          This method initializes qmiAddStampApproved
 JMenuItem getQmiAddStampAsIs()
          This method initializes qmiAddStampAsIs
 JMenuItem getQmiAddStampConfidential()
          This method initializes qmiAddStampConfidential
 JMenuItem getQmiAddStampDepartmental()
          This method initializes qmiAddStampDepartmental
 JMenuItem getQmiAddStampDraft()
          This method initializes qmiAddStampDraft
 JMenuItem getQmiAddStampExperimental()
          This method initializes qmiAddStampExperimental
 JMenuItem getQmiAddStampExpired()
          This method initializes qmiAddStampExpired
 JMenuItem getQmiAddStampFinal()
          This method initializes qmiAddStampFinal
 JMenuItem getQmiAddStampForComment()
          This method initializes qmiAddStampForComment
 JMenuItem getQmiAddStampForPublicRelease()
          This method initializes qmiAddStampForPublicRelease
 JMenuItem getQmiAddStampNotApproved()
          This method initializes qmiAddStampNotApproved
 JMenuItem getQmiAddStampNotForPublicRelease()
          This method initializes qmiAddStampNotApproved
 JMenuItem getQmiAddStampSold()
          This method initializes qmiAddStampNotApproved
 JMenuItem getQmiAddStampTopSecret()
          This method initializes qmiAddStampTopSecret
 
Methods inherited from class javax.swing.JToolBar
add, addSeparator, addSeparator, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotToolbar

public AnnotToolbar()
This method initializes the annotations toolbar.

Method Detail

getjbCircle

public JButton getjbCircle()
Returns the circle button.

Returns:
Circle button.

getjbSquare

public JButton getjbSquare()
Returns the square button.

Returns:
Square button.

getjbStamp

public JButton getjbStamp()
Returns the stamp button.

Returns:
Stamp button.

getjbPolygon

public JButton getjbPolygon()
Returns the polygon button.

Returns:
Polygon button.

getjbLine

public JButton getjbLine()
Returns the line button.

Returns:
Line button.

getjbPencil

public JButton getjbPencil()
Returns the pencil button.

Returns:
Pencil button.

getjbFreeText

public JButton getjbFreeText()
Returns the freetext button.

Returns:
FreeText button.

getjbNote

public JButton getjbNote()
Returns the note button.

Returns:
Note button.

getjbSound

public JButton getjbSound()
Returns the sound button.

Returns:
Sound button.

getjbLink

public JButton getjbLink()
Returns the link button.

Returns:
Link button.

getQmiAddStampApproved

public JMenuItem getQmiAddStampApproved()
This method initializes qmiAddStampApproved

Returns:
javax.swing.JMenuItem

getQmiAddStampAsIs

public JMenuItem getQmiAddStampAsIs()
This method initializes qmiAddStampAsIs

Returns:
javax.swing.JMenuItem

getQmiAddStampConfidential

public JMenuItem getQmiAddStampConfidential()
This method initializes qmiAddStampConfidential

Returns:
javax.swing.JMenuItem

getQmiAddStampDepartmental

public JMenuItem getQmiAddStampDepartmental()
This method initializes qmiAddStampDepartmental

Returns:
javax.swing.JMenuItem

getQmiAddStampDraft

public JMenuItem getQmiAddStampDraft()
This method initializes qmiAddStampDraft

Returns:
javax.swing.JMenuItem

getQmiAddStampExperimental

public JMenuItem getQmiAddStampExperimental()
This method initializes qmiAddStampExperimental

Returns:
javax.swing.JMenuItem

getQmiAddStampExpired

public JMenuItem getQmiAddStampExpired()
This method initializes qmiAddStampExpired

Returns:
javax.swing.JMenuItem

getQmiAddStampFinal

public JMenuItem getQmiAddStampFinal()
This method initializes qmiAddStampFinal

Returns:
javax.swing.JMenuItem

getQmiAddStampForComment

public JMenuItem getQmiAddStampForComment()
This method initializes qmiAddStampForComment

Returns:
javax.swing.JMenuItem

getQmiAddStampForPublicRelease

public JMenuItem getQmiAddStampForPublicRelease()
This method initializes qmiAddStampForPublicRelease

Returns:
javax.swing.JMenuItem

getQmiAddStampNotApproved

public JMenuItem getQmiAddStampNotApproved()
This method initializes qmiAddStampNotApproved

Returns:
javax.swing.JMenuItem

getQmiAddStampNotForPublicRelease

public JMenuItem getQmiAddStampNotForPublicRelease()
This method initializes qmiAddStampNotApproved

Returns:
javax.swing.JMenuItem

getQmiAddStampSold

public JMenuItem getQmiAddStampSold()
This method initializes qmiAddStampNotApproved

Returns:
javax.swing.JMenuItem

getQmiAddStampTopSecret

public JMenuItem getQmiAddStampTopSecret()
This method initializes qmiAddStampTopSecret

Returns:
javax.swing.JMenuItem

getQmAddStamps

public JPopupMenu getQmAddStamps()
This method initializes qmAddStamps

Returns:
javax.swing.JMenu

getjbTextHighlight

public JButton getjbTextHighlight()
This method initializes ToolbarButton

Returns:
javax.swing.ToolbarButton

getjbTextUnderline

public JButton getjbTextUnderline()
This method initializes ToolbarButton

Returns:
javax.swing.ToolbarButton

getjbTextCrossout

public JButton getjbTextCrossout()
This method initializes ToolbarButton

Returns:
javax.swing.ToolbarButton

getjbTextSquiggly

public JButton getjbTextSquiggly()
This method initializes ToolbarButton

Returns:
javax.swing.ToolbarButton

getjbHighlight

public JButton getjbHighlight()
This method initializes ToolbarButton

Returns:
javax.swing.ToolbarButton

getJbSign

public JButton getJbSign()
This method initializes jbSign

Returns:
javax.swing.ToolbarButton