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.DragListenerListener interface for drag events.- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanduringDrag(org.w3c.dom.svg.SVGPoint startPoint, org.w3c.dom.svg.SVGPoint dragPoint, org.w3c.dom.events.Event evt, boolean inside)Method called during drags.booleanendDrag(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.booleanstartDrag(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:
trueto 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:
trueto 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:
trueto complete the drag
-
-