public class HighLightAnnotationHandler extends TextSelectionPageHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.icepdf.core.pobjects.Name |
highLightType |
highlightColor, logger, selectedCount, selectionAlpha, selectionColorcurrentRect, dash1, previousRectDrawn, rectToDraw, selectionBoxColour, strokedocumentViewController, documentViewModel, pageViewComponent| Constructor and Description |
|---|
HighLightAnnotationHandler(DocumentViewController documentViewController,
AbstractPageViewComponent pageViewComponent,
DocumentViewModel documentViewModel) |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.Rectangle |
convertToPageSpace(java.util.ArrayList<java.awt.Shape> bounds,
java.awt.geom.GeneralPath path)
Convert the shapes that make up the annotation to page space so that
they will scale correctly at different zooms.
|
void |
createTextMarkupAnnotation(java.util.ArrayList<java.awt.Shape> highlightBounds) |
void |
mouseClicked(java.awt.event.MouseEvent e)
Override the base functionality as we don't want to support double and
triple click work selection for highlights.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.
|
void |
paintTool(java.awt.Graphics g)
Paints the tools pre-annotation creation state.
|
installTool, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, paintSelectedText, setSelectionRectangle, uninstallToolclearRectangle, getCurrentRect, getRectToDraw, isOverPageComponent, paintSelectionBox, resetRectangle, setCurrentRect, setRectToDraw, setSelectionSize, updateDrawableRect, updateSelectionSizeconvertToPageSpace, getPageTransformpublic HighLightAnnotationHandler(DocumentViewController documentViewController, AbstractPageViewComponent pageViewComponent, DocumentViewModel documentViewModel)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class TextSelectionPageHandlere - mouse eventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class TextSelectionPageHandlerpublic void createTextMarkupAnnotation(java.util.ArrayList<java.awt.Shape> highlightBounds)
public void paintTool(java.awt.Graphics g)
ToolHandlerpaintTool in interface ToolHandlerpaintTool in class TextSelectionPageHandlerg - graphics contextprotected java.awt.Rectangle convertToPageSpace(java.util.ArrayList<java.awt.Shape> bounds,
java.awt.geom.GeneralPath path)