public class DragAndDropControl
extends com.jme3.scene.control.AbstractControl
Constructor and Description |
---|
DragAndDropControl(DragAndDropListener... initialListeners) |
Modifier and Type | Method and Description |
---|---|
void |
addDragAndDropListener(DragAndDropListener l) |
protected void |
attach(com.jme3.scene.Spatial s) |
protected DefaultDragSession |
clearSession(com.simsilica.lemur.event.AbstractCursorEvent event) |
protected void |
controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp) |
protected void |
controlUpdate(float tpf) |
protected void |
detach(com.jme3.scene.Spatial s) |
protected void |
dragExit(com.simsilica.lemur.event.CursorMotionEvent event,
com.jme3.scene.Spatial target,
com.jme3.scene.Spatial capture) |
protected void |
dragging(com.simsilica.lemur.event.CursorMotionEvent event,
com.jme3.scene.Spatial target,
com.jme3.scene.Spatial capture) |
protected boolean |
dragStarted(com.simsilica.lemur.event.CursorButtonEvent event,
com.jme3.collision.CollisionResult collision,
com.jme3.scene.Spatial target,
com.jme3.scene.Spatial capture) |
protected void |
dragStopped(com.simsilica.lemur.event.CursorButtonEvent event,
com.simsilica.lemur.event.CursorMotionEvent lastMotion,
com.jme3.scene.Spatial target,
com.jme3.scene.Spatial capture) |
protected void |
fireDone(DragEvent event) |
protected void |
fireDragOver(DragEvent event) |
protected void |
fireDrop(DragEvent event) |
protected void |
fireEnter(DragEvent event) |
protected void |
fireExit(DragEvent event) |
protected DefaultDragSession |
getSession(com.simsilica.lemur.event.AbstractCursorEvent event) |
void |
removeDragAndDropListener(DragAndDropListener l) |
void |
setSpatial(com.jme3.scene.Spatial s) |
public DragAndDropControl(DragAndDropListener... initialListeners)
public void addDragAndDropListener(DragAndDropListener l)
public void removeDragAndDropListener(DragAndDropListener l)
public void setSpatial(com.jme3.scene.Spatial s)
setSpatial
in interface com.jme3.scene.control.Control
setSpatial
in class com.jme3.scene.control.AbstractControl
protected void detach(com.jme3.scene.Spatial s)
protected void attach(com.jme3.scene.Spatial s)
protected DefaultDragSession getSession(com.simsilica.lemur.event.AbstractCursorEvent event)
protected DefaultDragSession clearSession(com.simsilica.lemur.event.AbstractCursorEvent event)
protected boolean dragStarted(com.simsilica.lemur.event.CursorButtonEvent event, com.jme3.collision.CollisionResult collision, com.jme3.scene.Spatial target, com.jme3.scene.Spatial capture)
protected void dragging(com.simsilica.lemur.event.CursorMotionEvent event, com.jme3.scene.Spatial target, com.jme3.scene.Spatial capture)
protected void dragStopped(com.simsilica.lemur.event.CursorButtonEvent event, com.simsilica.lemur.event.CursorMotionEvent lastMotion, com.jme3.scene.Spatial target, com.jme3.scene.Spatial capture)
protected void dragExit(com.simsilica.lemur.event.CursorMotionEvent event, com.jme3.scene.Spatial target, com.jme3.scene.Spatial capture)
protected void fireEnter(DragEvent event)
protected void fireExit(DragEvent event)
protected void fireDragOver(DragEvent event)
protected void fireDrop(DragEvent event)
protected void fireDone(DragEvent event)
protected void controlUpdate(float tpf)
controlUpdate
in class com.jme3.scene.control.AbstractControl
protected void controlRender(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp)
controlRender
in class com.jme3.scene.control.AbstractControl