public interface DragSession
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ITEM |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.lang.String name,
T defaultValue)
Returns an attribute previously stored in this session or the
default value if no such attribute exists.
|
Draggable |
getDraggable()
Returns the application-provided "Draggable" that is used to
display the current drag location.
|
com.jme3.math.Vector2f |
getDragLocation()
Returns the current drag location in 'cursor space', ie: the 2D
coordinate of the screen or viewport that indicates the drag location.
|
com.jme3.scene.Spatial |
getDragSource()
Returns the container Spatial upon which the drag operation was
initiated.
|
DragStatus |
getDragStatus()
Return the drop status of this drag session.
|
com.jme3.collision.CollisionResult |
getDropCollision()
Returns the current 'drop' collision information or null if
there is no current drop target.
|
com.jme3.scene.Spatial |
getDropTarget()
Returns the current drop target or null if the drag is not
currently over a drop target.
|
boolean |
hasAttribute(java.lang.String name)
Returns true if the session has the specified attribute defined.
|
void |
set(java.lang.String name,
java.lang.Object attribute)
Sets an application-specific session attribute that lives as
long as this specific drag session.
|
void |
setDragStatus(DragStatus status)
Called by drop event handlers to indicate that a drop
target and location are valid or invalid.
|
static final java.lang.String ITEM
void set(java.lang.String name, java.lang.Object attribute)
<T> T get(java.lang.String name, T defaultValue)
boolean hasAttribute(java.lang.String name)
void setDragStatus(DragStatus status)
DragStatus getDragStatus()
com.jme3.scene.Spatial getDragSource()
com.jme3.scene.Spatial getDropTarget()
com.jme3.collision.CollisionResult getDropCollision()
Draggable getDraggable()
com.jme3.math.Vector2f getDragLocation()