public class TextAnnotationHandler extends CommonToolHandler implements ToolHandler
| Modifier and Type | Field and Description |
|---|---|
protected static java.awt.Color |
defaultFillColor |
protected static java.awt.Dimension |
ICON_SIZE |
documentViewController, documentViewModel, pageViewComponent| Constructor and Description |
|---|
TextAnnotationHandler(DocumentViewController documentViewController,
AbstractPageViewComponent pageViewComponent,
DocumentViewModel documentViewModel) |
| Modifier and Type | Method and Description |
|---|---|
static org.icepdf.core.pobjects.annotations.PopupAnnotation |
createPopupAnnotation(org.icepdf.core.util.Library library,
java.awt.Rectangle bbox,
org.icepdf.core.pobjects.annotations.MarkupAnnotation parent,
java.awt.geom.AffineTransform pageSpace) |
static org.icepdf.core.pobjects.annotations.TextAnnotation |
createTextAnnotation(org.icepdf.core.util.Library library,
java.awt.Rectangle bbox,
java.awt.geom.AffineTransform pageSpace) |
void |
installTool()
Callback code that allows post construct task to take place when the
tool is selected via the
AbstractDocumentView.setToolMode(int)
call. |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
paintTool(java.awt.Graphics g)
Paints the tools pre-annotation creation state.
|
void |
uninstallTool()
Callback code that allows pre destroy task to take place when the
tool is unselected via the
AbstractDocumentView.setToolMode(int)
call. |
convertToPageSpace, getPageTransformprotected static java.awt.Color defaultFillColor
protected static final java.awt.Dimension ICON_SIZE
public TextAnnotationHandler(DocumentViewController documentViewController, AbstractPageViewComponent pageViewComponent, DocumentViewModel documentViewModel)
public void paintTool(java.awt.Graphics g)
ToolHandlerpaintTool in interface ToolHandlerg - graphics contextpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic static org.icepdf.core.pobjects.annotations.TextAnnotation createTextAnnotation(org.icepdf.core.util.Library library,
java.awt.Rectangle bbox,
java.awt.geom.AffineTransform pageSpace)
public static org.icepdf.core.pobjects.annotations.PopupAnnotation createPopupAnnotation(org.icepdf.core.util.Library library,
java.awt.Rectangle bbox,
org.icepdf.core.pobjects.annotations.MarkupAnnotation parent,
java.awt.geom.AffineTransform pageSpace)
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void installTool()
ToolHandlerAbstractDocumentView.setToolMode(int)
call.installTool in interface ToolHandlerpublic void uninstallTool()
ToolHandlerAbstractDocumentView.setToolMode(int)
call.uninstallTool in interface ToolHandler