Class LineAnnotationWrangler.DragHandleLineGesture
java.lang.Object
com.levigo.jadice.web.client.util.Gesture
com.levigo.jadice.web.client.internal.annotation.AbstractWranglerGesture<LineAnnotation>
com.levigo.jadice.web.client.internal.annotation.wrangler.LineAnnotationWrangler.DragHandleLineGesture
- Enclosing class:
LineAnnotationWrangler
protected class LineAnnotationWrangler.DragHandleLineGesture
extends AbstractWranglerGesture<LineAnnotation>
Gesture for resizing the line.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.util.Gesture
Gesture.GestureHandler
-
Field Summary
FieldsFields inherited from class com.levigo.jadice.web.client.internal.annotation.AbstractWranglerGesture
grid
-
Constructor Summary
ConstructorsConstructorDescriptionDragHandleLineGesture
(LineAnnotation annotation, boolean isP1Moving, PointedEditEvent e) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleMove
(Point2D movingPoint) Handles the touch and mouse move eventsprotected void
setAnnotationPoint
(LineAnnotation annotation, Point2D movingPoint, Point2D fixedPoint, boolean isP1Moving) Methods inherited from class com.levigo.jadice.web.client.internal.annotation.AbstractWranglerGesture
getAnnotation, getPage, getPageView, handleEnd, init, registerUndo
Methods inherited from class com.levigo.jadice.web.client.util.Gesture
addDomHandler, addHandler, currentGestureStop, getDescription, getSnapToForSelection, onStart, onStop, start, stop
-
Field Details
-
isP1Moving
protected final boolean isP1Moving -
fixedPoint
-
-
Constructor Details
-
DragHandleLineGesture
-
-
Method Details
-
handleMove
Handles the touch and mouse move events- Specified by:
handleMove
in classAbstractWranglerGesture<LineAnnotation>
- Parameters:
movingPoint
- the touch or mouse position in the page
-
setAnnotationPoint
protected void setAnnotationPoint(LineAnnotation annotation, Point2D movingPoint, Point2D fixedPoint, boolean isP1Moving)
-