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
 JToggleButton getjbArea()
          Returns the Area button.
 JToggleButton getjbArrow()
          Returns the arrow button.
 JButton getjbAttachFile()
          Returns the toolbar button that initiates the tool to attach files in a PDF document.
 JToggleButton getjbCallOut()
           
 JToggleButton getjbCircle()
          Returns the circle button.
 JToggleButton getjbCloud()
          Returns the polygon button.
 JToggleButton getjbCreateSignField()
          Returns the toolbar button that initiates the tool to create signature fields.
 JToggleButton getjbDistance()
          Returns the Distance button.
 JToggleButton getjbFreeText()
          Returns the freetext button.
 JToggleButton getjbHighlight()
          This method initializes jbHighlight
 JButton getjbImage()
          Returns the image button.
 JToggleButton getjbLine()
          Returns the line button.
 JToggleButton getjbLink()
          Returns the link button.
 JToggleButton getjbNote()
          Returns the note button.
 JToggleButton getjbPencil()
          Returns the pencil button.
 JToggleButton getjbPerimeter()
          Returns the Perimeter button.
 JToggleButton getjbPolygon()
          Returns the polygon button.
 JToggleButton getjbPolyline()
          Returns the polyline button.
 JToggleButton getjbSound()
          Returns the sound button.
 JToggleButton getjbSquare()
          Returns the square button.
 JToggleButton getjbStamp()
          Returns the stamp button.
 JToggleButton getjbTextCrossout()
          This method initializes jbTextCrossout
 JToggleButton getjbTextHighlight()
          This method initializes jbTextHighlight
 JToggleButton getjbTextInsert()
          Returns the caret button.
 JToggleButton getjbTextReplacement()
          Returns the toolbar button that initiates the tool to create a caret text markup annotation.
 JToggleButton getjbTextSquiggly()
          Returns the toolbar button that initiates the tool to create a squiggly text markup annotation.
 JToggleButton getjbTextUnderline()
          This method initializes ToolbarButton
 JToggleButton getjbTypeWriter()
          Returns the typewriter button.
 JMenuItem getJcbmToolSticky()
          This method initializes jcbmToolSticky
 JPopupMenu getJmAddStamps()
          This method initializes jmAddStamps
 JMenuItem getJmiAddStampApproved()
          This method initializes jmiAddStampApproved
 JMenuItem getJmiAddStampAsIs()
          This method initializes jmiAddStampAsIs
 JMenuItem getJmiAddStampConfidential()
          This method initializes jmiAddStampConfidential
 JMenuItem getJmiAddStampDepartmental()
          This method initializes jmiAddStampDepartmental
 JMenuItem getJmiAddStampDraft()
          This method initializes jmiAddStampDraft
 JMenuItem getJmiAddStampExperimental()
          This method initializes jmiAddStampExperimental
 JMenuItem getJmiAddStampExpired()
          This method initializes jmiAddStampExpired
 JMenuItem getJmiAddStampFinal()
          This method initializes jmiAddStampFinal
 JMenuItem getJmiAddStampForComment()
          This method initializes jmiAddStampForComment
 JMenuItem getJmiAddStampForPublicRelease()
          This method initializes jmiAddStampForPublicRelease
 JMenuItem getJmiAddStampNotApproved()
          This method initializes jmiAddStampNotApproved
 JMenuItem getJmiAddStampNotForPublicRelease()
          This method initializes jmiAddStampNotApproved
 JMenuItem getJmiAddStampSold()
          This method initializes jmiAddStampNotApproved
 JMenuItem getJmiAddStampTopSecret()
          This method initializes jmiAddStampTopSecret
 JMenuItem getJmiToolProperties()
          This method initializes jmiToolProperties
 JPopupMenu getJpmToolProperties()
          This method initializes jpmToolProperties
 void showMeasuringTools(boolean enabled)
           
 
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 JToggleButton getjbCircle()
Returns the circle button.

Returns:
Circle button.

getjbSquare

public JToggleButton getjbSquare()
Returns the square button.

Returns:
Square button.

getjbStamp

public JToggleButton getjbStamp()
Returns the stamp button.

Returns:
Stamp button.

getjbPolygon

public JToggleButton getjbPolygon()
Returns the polygon button.

Returns:
Polygon button.

getjbCloud

public JToggleButton getjbCloud()
Returns the polygon button.

Returns:
Polygon button.

getjbPolyline

public JToggleButton getjbPolyline()
Returns the polyline button.

Returns:
Polyline button.

getjbLine

public JToggleButton getjbLine()
Returns the line button.

Returns:
Line button.

getjbArrow

public JToggleButton getjbArrow()
Returns the arrow button.

Returns:
Arrow button.

getjbDistance

public JToggleButton getjbDistance()
Returns the Distance button.

Returns:
Distance button.

getjbPerimeter

public JToggleButton getjbPerimeter()
Returns the Perimeter button.

Returns:
Perimeter button.

getjbArea

public JToggleButton getjbArea()
Returns the Area button.

Returns:
Area button.

getjbPencil

public JToggleButton getjbPencil()
Returns the pencil button.

Returns:
Pencil button.

getjbFreeText

public JToggleButton getjbFreeText()
Returns the freetext button.

Returns:
FreeText button.

getjbCallOut

public JToggleButton getjbCallOut()

getjbTypeWriter

public JToggleButton getjbTypeWriter()
Returns the typewriter button.

Returns:
TypeWriter button.

getjbNote

public JToggleButton getjbNote()
Returns the note button.

Returns:
Note button.

getjbTextInsert

public JToggleButton getjbTextInsert()
Returns the caret button.

Returns:
Caret button.

getjbSound

public JToggleButton getjbSound()
Returns the sound button.

Returns:
Sound button.

getjbImage

public JButton getjbImage()
Returns the image button.

Returns:
Image button.

getjbLink

public JToggleButton getjbLink()
Returns the link button.

Returns:
Link button.

getJmiAddStampApproved

public JMenuItem getJmiAddStampApproved()
This method initializes jmiAddStampApproved

Returns:
javax.swing.JMenuItem

getJmiAddStampAsIs

public JMenuItem getJmiAddStampAsIs()
This method initializes jmiAddStampAsIs

Returns:
javax.swing.JMenuItem

getJmiAddStampConfidential

public JMenuItem getJmiAddStampConfidential()
This method initializes jmiAddStampConfidential

Returns:
javax.swing.JMenuItem

getJmiAddStampDepartmental

public JMenuItem getJmiAddStampDepartmental()
This method initializes jmiAddStampDepartmental

Returns:
javax.swing.JMenuItem

getJmiAddStampDraft

public JMenuItem getJmiAddStampDraft()
This method initializes jmiAddStampDraft

Returns:
javax.swing.JMenuItem

getJmiAddStampExperimental

public JMenuItem getJmiAddStampExperimental()
This method initializes jmiAddStampExperimental

Returns:
javax.swing.JMenuItem

getJmiAddStampExpired

public JMenuItem getJmiAddStampExpired()
This method initializes jmiAddStampExpired

Returns:
javax.swing.JMenuItem

getJmiAddStampFinal

public JMenuItem getJmiAddStampFinal()
This method initializes jmiAddStampFinal

Returns:
javax.swing.JMenuItem

getJmiAddStampForComment

public JMenuItem getJmiAddStampForComment()
This method initializes jmiAddStampForComment

Returns:
javax.swing.JMenuItem

getJmiAddStampForPublicRelease

public JMenuItem getJmiAddStampForPublicRelease()
This method initializes jmiAddStampForPublicRelease

Returns:
javax.swing.JMenuItem

getJmiAddStampNotApproved

public JMenuItem getJmiAddStampNotApproved()
This method initializes jmiAddStampNotApproved

Returns:
javax.swing.JMenuItem

getJmiAddStampNotForPublicRelease

public JMenuItem getJmiAddStampNotForPublicRelease()
This method initializes jmiAddStampNotApproved

Returns:
javax.swing.JMenuItem

getJmiAddStampSold

public JMenuItem getJmiAddStampSold()
This method initializes jmiAddStampNotApproved

Returns:
javax.swing.JMenuItem

getJmiAddStampTopSecret

public JMenuItem getJmiAddStampTopSecret()
This method initializes jmiAddStampTopSecret

Returns:
javax.swing.JMenuItem

getJmAddStamps

public JPopupMenu getJmAddStamps()
This method initializes jmAddStamps

Returns:
javax.swing.JMenu

getjbTextHighlight

public JToggleButton getjbTextHighlight()
This method initializes jbTextHighlight

Returns:
javax.swing.JToggleButton

getjbTextUnderline

public JToggleButton getjbTextUnderline()
This method initializes ToolbarButton

Returns:
javax.swing.JToggleButton

getjbTextCrossout

public JToggleButton getjbTextCrossout()
This method initializes jbTextCrossout

Returns:
javax.swing.JToggleButton

getjbTextSquiggly

public JToggleButton getjbTextSquiggly()
Returns the toolbar button that initiates the tool to create a squiggly text markup annotation.

Returns:
javax.swing.JToggleButton

getjbTextReplacement

public JToggleButton getjbTextReplacement()
Returns the toolbar button that initiates the tool to create a caret text markup annotation.

Returns:
javax.swing.JToggleButton

getjbHighlight

public JToggleButton getjbHighlight()
This method initializes jbHighlight

Returns:
javax.swing.JToggleButton

getjbCreateSignField

public JToggleButton getjbCreateSignField()
Returns the toolbar button that initiates the tool to create signature fields.

Returns:
javax.swing.JButton

getjbAttachFile

public JButton getjbAttachFile()
Returns the toolbar button that initiates the tool to attach files in a PDF document.

Returns:
JButton

getJpmToolProperties

public JPopupMenu getJpmToolProperties()
This method initializes jpmToolProperties

Returns:
javax.swing.JPopupMenu

getJmiToolProperties

public JMenuItem getJmiToolProperties()
This method initializes jmiToolProperties

Returns:
javax.swing.JMenuItem

getJcbmToolSticky

public JMenuItem getJcbmToolSticky()
This method initializes jcbmToolSticky

Returns:
javax.swing.JMenuItem

showMeasuringTools

public void showMeasuringTools(boolean enabled)