Interface DragableArea.DragListener

    • 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 point
        dragPoint - Drag end point
        evt - The event object
        inside - 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 point
        dragPoint - Drag end point
        evt - The event object
        inside - Whether the end point was inside the area
        Returns:
        true to complete the drag