es.prodevelop.gvsig.mobile.gui.tool.event
Class PointEvent

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.gui.tool.event.PointEvent

public class PointEvent
extends java.lang.Object

Utility class to encapsulate mouse events, used to send info between behavior classes and tool listeners.

Author:
jldominguez
See Also:
PointBehavior, PointToolListener

Constructor Summary
PointEvent(java.awt.Point p, java.awt.event.MouseEvent e)
          Constructor.
 
Method Summary
 java.awt.event.MouseEvent getEvent()
          Gets the original mouse event.
 java.awt.Point getPoint()
          gets the point (screen coordinates) of the pixel where the point event happened.
 void setPoint(java.awt.Point p)
          Sets the point (screen coordinates) of the pixel where the point event happened
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointEvent

public PointEvent(java.awt.Point p,
                  java.awt.event.MouseEvent e)
Constructor.

Parameters:
p - the point on which the user has clicked
e - the original java mouse event.
Method Detail

getPoint

public java.awt.Point getPoint()
gets the point (screen coordinates) of the pixel where the point event happened.

Returns:
the point (screen coordinates) of the pixel where the point event happened

setPoint

public void setPoint(java.awt.Point p)
Sets the point (screen coordinates) of the pixel where the point event happened

Parameters:
p - the point (screen coordinates) of the pixel where the point event happened

getEvent

public java.awt.event.MouseEvent getEvent()
Gets the original mouse event.

Returns:
the original mouse event.