Package elki.visualization.batikutil
Interface DragableArea.DragListener
-
- All Known Implementing Classes:
MoveObjectsToolVisualization.Instance
,OPTICSPlotCutVisualization.Instance
,OPTICSPlotSelectionVisualization.Instance
,SelectionToolAxisRangeVisualization.Instance
,SelectionToolCubeVisualization.Instance
,SelectionToolDotVisualization.Instance
,SelectionToolLineVisualization.Instance
,SilhouettePlotSelectionToolVisualization.Instance
- Enclosing class:
- DragableArea
public static interface DragableArea.DragListener
Listener interface for drag events.- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
duringDrag(org.w3c.dom.svg.SVGPoint startPoint, org.w3c.dom.svg.SVGPoint dragPoint, org.w3c.dom.events.Event evt, boolean inside)
Method called during drags.boolean
endDrag(org.w3c.dom.svg.SVGPoint startPoint, org.w3c.dom.svg.SVGPoint dragPoint, org.w3c.dom.events.Event evt, boolean inside)
Method called when a drag was ended.boolean
startDrag(org.w3c.dom.svg.SVGPoint startPoint, org.w3c.dom.events.Event evt)
Action to do on drag start.
-
-
-
Method Detail
-
startDrag
boolean startDrag(org.w3c.dom.svg.SVGPoint startPoint, org.w3c.dom.events.Event evt)
Action to do on drag start.- Parameters:
startPoint
- Point where the drag was started.evt
- The event object- Returns:
true
to start the drag operation
-
duringDrag
boolean duringDrag(org.w3c.dom.svg.SVGPoint startPoint, org.w3c.dom.svg.SVGPoint dragPoint, org.w3c.dom.events.Event evt, boolean inside)
Method called during drags.- Parameters:
startPoint
- Drag starting pointdragPoint
- Drag end pointevt
- The event objectinside
- Inside the tracked element- Returns:
true
to continue the drag
-
endDrag
boolean endDrag(org.w3c.dom.svg.SVGPoint startPoint, org.w3c.dom.svg.SVGPoint dragPoint, org.w3c.dom.events.Event evt, boolean inside)
Method called when a drag was ended.- Parameters:
startPoint
- Drag starting pointdragPoint
- Drag end pointevt
- The event objectinside
- Whether the end point was inside the area- Returns:
true
to complete the drag
-
-