Class CreateAdaptedConnectionOnDragHandler<R extends Model,​O>

  • All Implemented Interfaces:
    org.eclipse.gef.common.adapt.IAdaptable.Bound<org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node>>, org.eclipse.gef.mvc.fx.handlers.IHandler, org.eclipse.gef.mvc.fx.handlers.IOnDragHandler

    public class CreateAdaptedConnectionOnDragHandler<R extends Model,​O>
    extends org.eclipse.gef.mvc.fx.handlers.AbstractHandler
    implements org.eclipse.gef.mvc.fx.handlers.IOnDragHandler
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound

        org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<T extends org.eclipse.gef.common.adapt.IAdaptable>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void abortDrag()  
      protected void cleanupDrag()
      Cleans up the drag.
      void drag​(javafx.scene.input.MouseEvent event, org.eclipse.gef.geometry.planar.Dimension delta)  
      void endDrag​(javafx.scene.input.MouseEvent event, org.eclipse.gef.geometry.planar.Dimension delta)  
      protected org.eclipse.gef.mvc.fx.parts.CircleSegmentHandlePart findBendTargetPart​(AdaptedConnectionPart<R,​O,​?> connectionPart, javafx.event.EventTarget eventTarget)
      Finds the CircleSegmentHandlePart for the target IBendableContentPart.BendPoint.
      protected AdaptedConnectablePart getAdaptedConnectablePart()
      Obtains the AdaptedConnectablePart for the start of the drag.
      protected org.eclipse.gef.mvc.fx.viewer.IViewer getContentViewer()
      Obtains the content IViewer.
      void hideIndicationCursor()  
      boolean showIndicationCursor​(javafx.scene.input.KeyEvent event)  
      boolean showIndicationCursor​(javafx.scene.input.MouseEvent event)  
      void startDrag​(javafx.scene.input.MouseEvent event)  
      • Methods inherited from class org.eclipse.gef.mvc.fx.handlers.AbstractHandler

        commit, execute, getHost, init, isRegistered, isRegisteredForHost, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisuals
      • Methods inherited from class org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl

        adaptableProperty, getAdaptable, setAdaptable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound

        adaptableProperty, getAdaptable, setAdaptable
      • Methods inherited from interface org.eclipse.gef.mvc.fx.handlers.IHandler

        getHost
    • Constructor Detail

      • CreateAdaptedConnectionOnDragHandler

        public CreateAdaptedConnectionOnDragHandler()
    • Method Detail

      • findBendTargetPart

        protected org.eclipse.gef.mvc.fx.parts.CircleSegmentHandlePart findBendTargetPart​(AdaptedConnectionPart<R,​O,​?> connectionPart,
                                                                                          javafx.event.EventTarget eventTarget)
        Finds the CircleSegmentHandlePart for the target IBendableContentPart.BendPoint.
        Parameters:
        connectionPart - AdaptedConnectionPart.
        eventTarget - EventTarget.
        Returns:
        Target CircleSegmentHandlePart.
      • getContentViewer

        protected org.eclipse.gef.mvc.fx.viewer.IViewer getContentViewer()
        Obtains the content IViewer.
        Returns:
        Content IViewer.
      • cleanupDrag

        protected void cleanupDrag()
        Cleans up the drag.
      • startDrag

        public void startDrag​(javafx.scene.input.MouseEvent event)
        Specified by:
        startDrag in interface org.eclipse.gef.mvc.fx.handlers.IOnDragHandler
      • drag

        public void drag​(javafx.scene.input.MouseEvent event,
                         org.eclipse.gef.geometry.planar.Dimension delta)
        Specified by:
        drag in interface org.eclipse.gef.mvc.fx.handlers.IOnDragHandler
      • abortDrag

        public void abortDrag()
        Specified by:
        abortDrag in interface org.eclipse.gef.mvc.fx.handlers.IOnDragHandler
      • endDrag

        public void endDrag​(javafx.scene.input.MouseEvent event,
                            org.eclipse.gef.geometry.planar.Dimension delta)
        Specified by:
        endDrag in interface org.eclipse.gef.mvc.fx.handlers.IOnDragHandler
      • hideIndicationCursor

        public void hideIndicationCursor()
        Specified by:
        hideIndicationCursor in interface org.eclipse.gef.mvc.fx.handlers.IOnDragHandler
      • showIndicationCursor

        public boolean showIndicationCursor​(javafx.scene.input.KeyEvent event)
        Specified by:
        showIndicationCursor in interface org.eclipse.gef.mvc.fx.handlers.IOnDragHandler
      • showIndicationCursor

        public boolean showIndicationCursor​(javafx.scene.input.MouseEvent event)
        Specified by:
        showIndicationCursor in interface org.eclipse.gef.mvc.fx.handlers.IOnDragHandler