org.jdesktop.wonderland.client.jme.input
Class DropTargetEvent3D

java.lang.Object
  extended by org.jdesktop.wonderland.client.input.Event
      extended by org.jdesktop.wonderland.client.jme.input.DropTargetEvent3D
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DropTargetDragEvent3D, DropTargetDragExitEvent3D, DropTargetDropEvent3D

public abstract class DropTargetEvent3D
extends Event

3D representation of a DropTarget event

Author:
Jonathan Kaplan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdesktop.wonderland.client.input.Event
entity, EVENT_CLASS_ID, isFocussed
 
Constructor Summary
protected DropTargetEvent3D()
          Default constructor for cloning
 
Method Summary
 Event clone(Event event)
          Copy the members of this class into the given event.
abstract  java.awt.datatransfer.DataFlavor[] getDataFlavors()
          Get the data flavors for this event.
 java.awt.dnd.DropTargetEvent getDropEvent()
          Get the drop target event associated with this 3D event
 org.jdesktop.mtgame.Entity getEntity()
          Returns the entity hit by the event, based on the destination pick details which were calculated by the input system.
 com.jme.scene.Node getNode()
          Returns the node which the pick hit.
 org.jdesktop.mtgame.PickDetails getPickDetails()
          Returns the original pick details of the event.
 org.jdesktop.mtgame.PickInfo getPickInfo()
          INTERNAL ONLY.
abstract  java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor dataFlavor)
          Get data for a particular data flavor.
 void setPickDetails(org.jdesktop.mtgame.PickDetails pickDetails)
          INTERNAL ONLY
Sets the original destination pick details of the event, as calculated by the input system, accounting for grabs.
 void setPickInfo(org.jdesktop.mtgame.PickInfo pickInfo)
          INTERNAL ONLY.
 
Methods inherited from class org.jdesktop.wonderland.client.input.Event
allocateEventClassID, free, getClassID, isFocussed, setEntity, setFocussed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropTargetEvent3D

protected DropTargetEvent3D()
Default constructor for cloning

Method Detail

getDropEvent

public java.awt.dnd.DropTargetEvent getDropEvent()
Get the drop target event associated with this 3D event


getPickDetails

public org.jdesktop.mtgame.PickDetails getPickDetails()
Returns the original pick details of the event.


setPickDetails

public void setPickDetails(org.jdesktop.mtgame.PickDetails pickDetails)
INTERNAL ONLY
Sets the original destination pick details of the event, as calculated by the input system, accounting for grabs.


getNode

public com.jme.scene.Node getNode()
Returns the node which the pick hit.


getEntity

public org.jdesktop.mtgame.Entity getEntity()
Returns the entity hit by the event, based on the destination pick details which were calculated by the input system. Normally, this will be the pick hit entity unless previously overridden by the input system grab calculations.

Overrides:
getEntity in class Event

setPickInfo

public void setPickInfo(org.jdesktop.mtgame.PickInfo pickInfo)
INTERNAL ONLY.
Used by the input system to specify the pickInfo for this input event.


getPickInfo

public org.jdesktop.mtgame.PickInfo getPickInfo()
INTERNAL ONLY.
Returns the pickInfo for this event. This provides full event information to Wonderland components which need it, such as the World Builder.


getDataFlavors

public abstract java.awt.datatransfer.DataFlavor[] getDataFlavors()
Get the data flavors for this event. Returns the data flavors associated with the event, or null if no data flavors are associated.


getTransferData

public abstract java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor dataFlavor)
Get data for a particular data flavor. Returns null if no data flavors are associated with the event.


clone

public Event clone(Event event)
Description copied from class: Event
Copy the members of this class into the given event.

Overrides:
clone in class Event


Open Wonderland - http://openwonderland.org