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 GestureOverwrite this to use default Gesture mechanism defined in onMousePressedprotected doubleReturn the percent value which determines the border width depending on the handle radius.getCursor(BaseRenderSettings settings) protected Colorprotected ColorgetPoint()getText()booleanisSelectionPoint(Point2D mousePointDocp, int tolleranceDocp) voidonMousePressed(MouseEditEvent e, Gesture.GestureHandler handler) voidonTouchStart(TouchEditEvent e, Gesture.GestureHandler handler) voidrender(com.levigo.jadice.web.client.util.internal.graphics.JadiceGraphics graphics) protected voidrender(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
-