Class CreateAdaptedConnectionOnDragHandler<R extends Model,O>
- java.lang.Object
-
- org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<org.eclipse.gef.mvc.fx.parts.IVisualPart<? extends javafx.scene.Node>>
-
- org.eclipse.gef.mvc.fx.handlers.AbstractHandler
-
- net.officefloor.gef.editor.internal.handlers.CreateAdaptedConnectionOnDragHandler<R,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
-
-
Constructor Summary
Constructors Constructor Description CreateAdaptedConnectionOnDragHandler()
-
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 theCircleSegmentHandlePart
for the targetIBendableContentPart.BendPoint
.protected AdaptedConnectablePart
getAdaptedConnectablePart()
Obtains theAdaptedConnectablePart
for the start of the drag.protected org.eclipse.gef.mvc.fx.viewer.IViewer
getContentViewer()
Obtains the contentIViewer
.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
-
-
-
-
Method Detail
-
getAdaptedConnectablePart
protected AdaptedConnectablePart getAdaptedConnectablePart()
Obtains theAdaptedConnectablePart
for the start of the drag.- Returns:
AdaptedConnectablePart
.
-
findBendTargetPart
protected org.eclipse.gef.mvc.fx.parts.CircleSegmentHandlePart findBendTargetPart(AdaptedConnectionPart<R,O,?> connectionPart, javafx.event.EventTarget eventTarget)
Finds theCircleSegmentHandlePart
for the targetIBendableContentPart.BendPoint
.- Parameters:
connectionPart
-AdaptedConnectionPart
.eventTarget
-EventTarget
.- Returns:
- Target
CircleSegmentHandlePart
.
-
getContentViewer
protected org.eclipse.gef.mvc.fx.viewer.IViewer getContentViewer()
Obtains the contentIViewer
.- Returns:
- Content
IViewer
.
-
cleanupDrag
protected void cleanupDrag()
Cleans up the drag.
-
startDrag
public void startDrag(javafx.scene.input.MouseEvent event)
- Specified by:
startDrag
in interfaceorg.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 interfaceorg.eclipse.gef.mvc.fx.handlers.IOnDragHandler
-
abortDrag
public void abortDrag()
- Specified by:
abortDrag
in interfaceorg.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 interfaceorg.eclipse.gef.mvc.fx.handlers.IOnDragHandler
-
hideIndicationCursor
public void hideIndicationCursor()
- Specified by:
hideIndicationCursor
in interfaceorg.eclipse.gef.mvc.fx.handlers.IOnDragHandler
-
showIndicationCursor
public boolean showIndicationCursor(javafx.scene.input.KeyEvent event)
- Specified by:
showIndicationCursor
in interfaceorg.eclipse.gef.mvc.fx.handlers.IOnDragHandler
-
showIndicationCursor
public boolean showIndicationCursor(javafx.scene.input.MouseEvent event)
- Specified by:
showIndicationCursor
in interfaceorg.eclipse.gef.mvc.fx.handlers.IOnDragHandler
-
-