Class HighlightTool
java.lang.Object
com.levigo.jadice.web.client.tool.Tool
com.levigo.jadice.web.client.tools.HighlightTool
- All Implemented Interfaces:
com.levigo.jadice.web.client.tools.internal.text.SelectTextGestureReceptiveTool
,MenuContributor
public class HighlightTool
extends Tool
implements com.levigo.jadice.web.client.tools.internal.text.SelectTextGestureReceptiveTool
Tool for Highlighting some Shapes (in DOCPUnits)
This is used by the TextSelection or some SearchTools.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.levigo.jadice.web.client.tool.Tool
Tool.ActivationRequest
-
Field Summary
Fields inherited from class com.levigo.jadice.web.client.tool.Tool
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the shapes map to remove references of the pages of the document when it is closed.void
putColorToMap
(String key, String color) Puts a new color to the color map.void
protected void
render
(RenderParameters parameters, boolean isActive) Renders the Tool's UI onto the givenGraphics2D
context using the givenRenderControls
.void
updateSelections
(List<Selection> selections) Methods inherited from class com.levigo.jadice.web.client.tool.Tool
contribute, ensureDebugId, getActivationFeedback, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getActivationRequestForTouchMove, getActivationRequestForTouchStart, getDispatchPriority, getManager, getRenderPriority, handleEditEvent, handleGestureChange, handleGestureEnd, handleGestureStart, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, handlePointerDown, handlePointerMove, handlePointerUp, handleTouchEnd, handleTouchMove, handleTouchStart, propagatePropertyChange, setActive, setCursor, setCursor, setEnabled, setManager, setStatusFeedback
-
Constructor Details
-
HighlightTool
public HighlightTool()
-
-
Method Details
-
removeAll
-
add
-
render
Description copied from class:Tool
Renders the Tool's UI onto the givenGraphics2D
context using the givenRenderControls
.This render method is called within the context and during the rendering of a single page. The page being rendered is passed to implementors of this method in order to be able to control and influence the page rendering.
-
putColorToMap
Puts a new color to the color map. Predefined colors are defined forRolloutSearch.KEY_CURRENT
,RolloutSearch.KEY_ALL
,TextSelectionTool.KEY_SELECT
.- Parameters:
key
- the key for the mapcolor
- the value for the map
-
clear
public void clear()Clears the shapes map to remove references of the pages of the document when it is closed. -
updateSelections
- Specified by:
updateSelections
in interfacecom.levigo.jadice.web.client.tools.internal.text.SelectTextGestureReceptiveTool
-