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 TypeMethodDescriptionvoidclear()Clears the shapes map to remove references of the pages of the document when it is closed.voidputColorToMap(String key, String color) Puts a new color to the color map.voidprotected voidrender(RenderParameters parameters, boolean isActive) Renders the Tool's UI onto the givenGraphics2Dcontext using the givenRenderControls.voidupdateSelections(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:ToolRenders the Tool's UI onto the givenGraphics2Dcontext 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:
updateSelectionsin interfacecom.levigo.jadice.web.client.tools.internal.text.SelectTextGestureReceptiveTool
-