unc.cdva.events.uievents
Class UIEvent

java.lang.Object
  extended by java.util.EventObject
      extended by unc.cdva.events.uievents.UIEvent
All Implemented Interfaces:
java.io.Serializable

public class UIEvent
extends java.util.EventObject

Define the UIEvents. Theses events are triggered by the UI, and processed by the game engine

Author:
Guillaume Conte
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UIEvent(java.lang.Object source)
          Constructor which creates a new EventObject
UIEvent(java.lang.Object source, int x, int y, float x3D, float y3D)
          Constructor which creates a new EventObject, sets the x and y values of this object, and sets the 3D x and y values of this object
UIEvent(java.lang.Object source, org.fenggui.Widget wi)
          Constructor which creates a new EventObject and set the widget of this object
 
Method Summary
 org.fenggui.Widget getWidget()
           
 int getX()
           
 float getX3D()
           
 int getY()
           
 float getY3D()
           
 void setWidget(org.fenggui.Widget widget)
           
 void setX(int x)
           
 void setX3D(float x3d)
           
 void setY(int y)
           
 void setY3D(float y3d)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UIEvent

public UIEvent(java.lang.Object source,
               org.fenggui.Widget wi)
Constructor which creates a new EventObject and set the widget of this object

Parameters:
source - Sent to EventObject constructor
wi - widget to set in this object
See Also:
Object

UIEvent

public UIEvent(java.lang.Object source,
               int x,
               int y,
               float x3D,
               float y3D)
Constructor which creates a new EventObject, sets the x and y values of this object, and sets the 3D x and y values of this object

Parameters:
source - Sent to EventObject constructor
x - x to set in this object
y - y to set in this object
x3D - 3D x value to set in this object
y3D - 3D y value to set in this object
See Also:
Object

UIEvent

public UIEvent(java.lang.Object source)
Constructor which creates a new EventObject

Parameters:
source - Sent to EventObject constructor
See Also:
Object
Method Detail

getWidget

public org.fenggui.Widget getWidget()
Returns:
widget Widget of this object

getX

public int getX()
Returns:
x the x value of this object

getY

public int getY()
Returns:
y the y value of this object

setWidget

public void setWidget(org.fenggui.Widget widget)
Parameters:
widget - the widget to set in this object

setX

public void setX(int x)
Parameters:
x - the x to set in this object

setY

public void setY(int y)
Parameters:
y - the y to set in this object

getX3D

public float getX3D()
Returns:
x3D the x3D value of this object

getY3D

public float getY3D()
Returns:
y3D the y3D of this object

setX3D

public void setX3D(float x3d)
Parameters:
x3d - the x3D to set in this object

setY3D

public void setY3D(float y3d)
Parameters:
y3d - the y3D to set in this object