unc.cdva.events.clickevents
Class ClickEvent

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

public class ClickEvent
extends java.util.EventObject

Event triggered when you click on the screens Usually you send that kind of event to the rendering engine to retrieve the world coordinates of a click

Author:
Guillaume Conte
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ClickEvent(java.lang.Object source, int x, int y)
          Constructor which creates a new EventObject and sets the x and y values of this ClickEvent object
 
Method Summary
 int getX()
           
 int getY()
           
 void setX(int x)
           
 void setY(int y)
           
 
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

ClickEvent

public ClickEvent(java.lang.Object source,
                  int x,
                  int y)
Constructor which creates a new EventObject and sets the x and y values of this ClickEvent object

Parameters:
source - Object sent to the constructor of EventObject
x - x value for this ClickEvent object
y - y value for this ClickEvent object
See Also:
Object
Method Detail

getX

public int getX()
Returns:
the x location clicked on (in pixels)

getY

public int getY()
Returns:
the y location clicked on (in pixels)

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