Package com.simsilica.lemur.dnd
Class DragAndDropControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.simsilica.lemur.dnd.DragAndDropControl
- All Implemented Interfaces:
Savable
,Control
,JmeCloneable
,Cloneable
-
Field Summary
Fields inherited from class com.jme3.scene.control.AbstractControl
enabled, spatial
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
protected DefaultDragSession
clearSession
(AbstractCursorEvent event) protected void
controlRender
(RenderManager rm, ViewPort vp) To be implemented in subclass.protected void
controlUpdate
(float tpf) To be implemented in subclass.protected void
protected void
dragExit
(CursorMotionEvent event, Spatial target, Spatial capture) protected void
dragging
(CursorMotionEvent event, Spatial target, Spatial capture) protected boolean
dragStarted
(CursorButtonEvent event, CollisionResult collision, Spatial target, Spatial capture) protected void
dragStopped
(CursorButtonEvent event, CursorMotionEvent lastMotion, Spatial target, Spatial capture) protected void
protected void
fireDragOver
(DragEvent event) protected void
protected void
protected void
protected DefaultDragSession
getSession
(AbstractCursorEvent event) void
void
Methods inherited from class com.jme3.scene.control.AbstractControl
cloneFields, cloneForSpatial, getSpatial, isEnabled, jmeClone, read, render, setEnabled, update, write
-
Constructor Details
-
DragAndDropControl
-
-
Method Details
-
addDragAndDropListener
-
removeDragAndDropListener
-
setSpatial
- Specified by:
setSpatial
in interfaceControl
- Overrides:
setSpatial
in classAbstractControl
- Parameters:
s
- the spatial to be controlled. This should not be called from user code.
-
detach
-
attach
-
getSession
-
clearSession
-
dragStarted
protected boolean dragStarted(CursorButtonEvent event, CollisionResult collision, Spatial target, Spatial capture) -
dragging
-
dragStopped
protected void dragStopped(CursorButtonEvent event, CursorMotionEvent lastMotion, Spatial target, Spatial capture) -
dragExit
-
fireEnter
-
fireExit
-
fireDragOver
-
fireDrop
-
fireDone
-
controlUpdate
protected void controlUpdate(float tpf) Description copied from class:AbstractControl
To be implemented in subclass.- Specified by:
controlUpdate
in classAbstractControl
- Parameters:
tpf
- time per frame (in seconds)
-
controlRender
Description copied from class:AbstractControl
To be implemented in subclass.- Specified by:
controlRender
in classAbstractControl
- Parameters:
rm
- the RenderManager rendering the controlled Spatial (not null)vp
- the ViewPort being rendered (not null)
-