Class Handle
java.lang.Object
com.levigo.jadice.web.client.internal.annotation.Handle
- Direct Known Subclasses:
ResizeAnnotationsGesture.ResizeTypeHandle
,TextAnnotationWrangler.RotateHandle
A Point, the user can interact with the Annotation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Gesture
Overwrite this to use default Gesture mechanism defined in onMousePressedprotected double
Return the percent value which determines the border width depending on the handle radius.getCursor
(BaseRenderSettings settings) protected Color
protected Color
getPoint()
getText()
boolean
isSelectionPoint
(Point2D mousePointDocp, int tolleranceDocp) void
onMousePressed
(MouseEditEvent e, Gesture.GestureHandler handler) void
onTouchStart
(TouchEditEvent e, Gesture.GestureHandler handler) void
render
(com.levigo.jadice.web.client.util.internal.graphics.JadiceGraphics graphics) protected void
render
(com.levigo.jadice.web.client.util.internal.graphics.JadiceGraphics graphics, Point2D position, Color handleColor) void
-
Constructor Details
-
Handle
public Handle() -
Handle
-
Handle
@Deprecated public Handle(Point2D point, com.google.gwt.dom.client.Style.Cursor cursor, String text) Deprecated.Use Handle(Point 2D point, String cursor, String text) instead. To easily convert, just add .getCssname() to this method's cursor parameter. -
Handle
-
-
Method Details
-
setPoint
-
getPoint
-
getText
-
createGesture
Overwrite this to use default Gesture mechanism defined in onMousePressed- Parameters:
e
- A mouse event.- Returns:
- null.
-
onMousePressed
-
onTouchStart
-
isSelectionPoint
-
getHandleColor
-
getHandleBorderColor
-
getBorderSizeInPercent
protected double getBorderSizeInPercent()Return the percent value which determines the border width depending on the handle radius. Default is 25, which means the border width will be 25% of the handle radius.- Returns:
- the percent value
-
render
public void render(com.levigo.jadice.web.client.util.internal.graphics.JadiceGraphics graphics) -
render
-