unc.cdva.events.uievents
Class UIEvent
java.lang.Object
java.util.EventObject
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
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 |
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 |
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 constructorwi
- 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 constructorx
- x to set in this objecty
- y to set in this objectx3D
- 3D x value to set in this objecty3D
- 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
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