public class AnnotToolbar extends JToolBar implements MouseListener
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.JToolBar.Separator
JComponent.AccessibleJComponent
Component.BaselineResizeBehavior
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
AnnotToolbar()
This method initializes the annotations toolbar.
|
Modifier and Type | Method and Description |
---|---|
static JMenuItem |
createStampMenuItem(Image image,
ImageCompression imageCompression)
Creates a JMenuItem that draws a preview of the rubber stamp.
|
static JMenuItem |
createStampMenuItem(RubberStamp stamp)
Creates a JMenuItem that draws a preview of the rubber stamp.
|
static JMenuItem |
createStampMenuItem(String text,
Color color)
Creates a JMenuItem that draws a preview of the rubber stamp.
|
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 |
getJmiAddStampCompleted()
This method initializes jmiAddStampCompleted
|
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 |
getJmiAddStampInformationOnly()
This method initializes jmiAddStampInformationOnly
|
JMenuItem |
getJmiAddStampNotApproved()
This method initializes jmiAddStampNotApproved
|
JMenuItem |
getJmiAddStampNotForPublicRelease()
This method initializes jmiAddStampNotApproved
|
JMenuItem |
getJmiAddStampPreliminaryResults()
This method initializes jmiAddStampPreliminaryResults
|
JMenuItem |
getJmiAddStampSold()
This method initializes jmiAddStampNotApproved
|
JMenuItem |
getJmiAddStampTopSecret()
This method initializes jmiAddStampTopSecret
|
JMenuItem |
getJmiAddStampVoid()
This method initializes jmiAddStampVoid
|
JMenuItem |
getJmiToolProperties()
This method initializes jmiToolProperties
|
JPopupMenu |
getJpmToolProperties()
This method initializes jpmToolProperties
|
JSeparator |
gettsSeparator1()
Get the JSeparator that is between the Polyline and FreeText buttons.
|
JSeparator |
gettsSeparator2()
Get the JSeparator that is between the AttachFile and TextHighlight buttons.
|
JSeparator |
gettsSeparator3()
Get the JSeparator that is between the AreaHighlight and Distance buttons.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
add, addSeparator, addSeparator, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public AnnotToolbar()
public JToggleButton getjbCircle()
public JToggleButton getjbSquare()
public JToggleButton getjbStamp()
public JToggleButton getjbPolygon()
public JToggleButton getjbCloud()
public JToggleButton getjbPolyline()
public JSeparator gettsSeparator1()
public JToggleButton getjbLine()
public JToggleButton getjbArrow()
public JToggleButton getjbDistance()
public JToggleButton getjbPerimeter()
public JToggleButton getjbArea()
public JToggleButton getjbPencil()
public JToggleButton getjbFreeText()
public JToggleButton getjbCallOut()
public JToggleButton getjbTypeWriter()
public JToggleButton getjbNote()
public JToggleButton getjbTextInsert()
public JToggleButton getjbSound()
public JButton getjbImage()
public JToggleButton getjbLink()
public JMenuItem getJmiAddStampApproved()
public JMenuItem getJmiAddStampAsIs()
public JMenuItem getJmiAddStampConfidential()
public JMenuItem getJmiAddStampDepartmental()
public JMenuItem getJmiAddStampDraft()
public JMenuItem getJmiAddStampExperimental()
public JMenuItem getJmiAddStampExpired()
public JMenuItem getJmiAddStampFinal()
public JMenuItem getJmiAddStampForComment()
public JMenuItem getJmiAddStampForPublicRelease()
public JMenuItem getJmiAddStampNotApproved()
public JMenuItem getJmiAddStampNotForPublicRelease()
public JMenuItem getJmiAddStampSold()
public JMenuItem getJmiAddStampTopSecret()
public JMenuItem getJmiAddStampInformationOnly()
public JMenuItem getJmiAddStampPreliminaryResults()
public JMenuItem getJmiAddStampVoid()
public JMenuItem getJmiAddStampCompleted()
public JPopupMenu getJmAddStamps()
public JToggleButton getjbTextHighlight()
public JToggleButton getjbTextUnderline()
public JToggleButton getjbTextCrossout()
public JToggleButton getjbTextSquiggly()
public JToggleButton getjbTextReplacement()
public JToggleButton getjbHighlight()
public JSeparator gettsSeparator3()
public JToggleButton getjbCreateSignField()
public JButton getjbAttachFile()
public JSeparator gettsSeparator2()
public JPopupMenu getJpmToolProperties()
public JMenuItem getJmiToolProperties()
public JMenuItem getJcbmToolSticky()
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public static JMenuItem createStampMenuItem(Image image, ImageCompression imageCompression) throws PDFException
image
- a java imageimageCompression
- the settings for the imagePDFException
public static JMenuItem createStampMenuItem(String text, Color color) throws PDFException
text
- the text to display in the stampcolor
- the color of the textPDFException
public static JMenuItem createStampMenuItem(RubberStamp stamp)
stamp
- the stamp to display