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 TypeMethodDescriptionvoidprotected voidprotected DefaultDragSessionclearSession(AbstractCursorEvent event) protected voidcontrolRender(RenderManager rm, ViewPort vp) To be implemented in subclass.protected voidcontrolUpdate(float tpf) To be implemented in subclass.protected voidprotected voiddragExit(CursorMotionEvent event, Spatial target, Spatial capture) protected voiddragging(CursorMotionEvent event, Spatial target, Spatial capture) protected booleandragStarted(CursorButtonEvent event, CollisionResult collision, Spatial target, Spatial capture) protected voiddragStopped(CursorButtonEvent event, CursorMotionEvent lastMotion, Spatial target, Spatial capture) protected voidprotected voidfireDragOver(DragEvent event) protected voidprotected voidprotected voidprotected DefaultDragSessiongetSession(AbstractCursorEvent event) voidvoidMethods 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:
setSpatialin interfaceControl- Overrides:
setSpatialin 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:AbstractControlTo be implemented in subclass.- Specified by:
controlUpdatein classAbstractControl- Parameters:
tpf- time per frame (in seconds)
-
controlRender
Description copied from class:AbstractControlTo be implemented in subclass.- Specified by:
controlRenderin classAbstractControl- Parameters:
rm- the RenderManager rendering the controlled Spatial (not null)vp- the ViewPort being rendered (not null)
-