org.jdesktop.wonderland.client.hud
Class HUDEvent

java.lang.Object
  extended by org.jdesktop.wonderland.client.hud.HUDEvent

public class HUDEvent
extends java.lang.Object

Defines events that apply to HUD objects.

Author:
nsimpson

Nested Class Summary
static class HUDEvent.HUDEventType
          Types of HUD object events
 
Constructor Summary
HUDEvent(HUDEvent event)
          Clone constructor
HUDEvent(HUDObject hudObject)
          Create a new instance of a HUD Event
HUDEvent(HUDObject hudObject, HUDEvent.HUDEventType eventType)
          Create a new instance of a HUD Event
HUDEvent(HUDObject hudObject, HUDEvent.HUDEventType eventType, java.util.Date eventTime)
          Create a new instance of a HUD Event
 
Method Summary
 java.util.Date getEventTime()
          Gets the time the event occurred
 HUDEvent.HUDEventType getEventType()
          Gets the type of the event
 HUDObject getObject()
          Gets the HUD object that triggered the event
 void setEventTime(java.util.Date eventTime)
          Sets the time that the event occurred
 void setEventType(HUDEvent.HUDEventType eventType)
          Sets the event type
 void setObject(HUDObject hudObject)
          Sets the HUD object that triggered the event
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HUDEvent

public HUDEvent(HUDObject hudObject)
Create a new instance of a HUD Event

Parameters:
hudObject - the HUD object associated with this event

HUDEvent

public HUDEvent(HUDObject hudObject,
                HUDEvent.HUDEventType eventType)
Create a new instance of a HUD Event

Parameters:
hudObject - the HUD object associated with this event
eventType - the event type

HUDEvent

public HUDEvent(HUDObject hudObject,
                HUDEvent.HUDEventType eventType,
                java.util.Date eventTime)
Create a new instance of a HUD Event

Parameters:
hudObject - the HUD object associated with this event
eventType - the event type
eventTime - the time of the event

HUDEvent

public HUDEvent(HUDEvent event)
Clone constructor

Parameters:
event - the event instance to clone
Method Detail

setObject

public void setObject(HUDObject hudObject)
Sets the HUD object that triggered the event

Parameters:
hudObject - the HUD object that triggered the event

getObject

public HUDObject getObject()
Gets the HUD object that triggered the event

Returns:
the HUD object that triggered the event

setEventType

public void setEventType(HUDEvent.HUDEventType eventType)
Sets the event type

Parameters:
eventType - the type of the event

getEventType

public HUDEvent.HUDEventType getEventType()
Gets the type of the event

Returns:
the event type

setEventTime

public void setEventTime(java.util.Date eventTime)
Sets the time that the event occurred

Parameters:
eventTime - the time of the event

getEventTime

public java.util.Date getEventTime()
Gets the time the event occurred

Returns:
the time of the event

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Open Wonderland - http://openwonderland.org