org.gvsig.fmap.mapcontrol.tools.Events
Class PointEvent

java.lang.Object
  extended by org.gvsig.fmap.mapcontrol.tools.Events.PointEvent

public class PointEvent
extends Object

PointEvent is used to notify a selection of a point with the mouse.

Author:
Vicente Caballero Navarro

Constructor Summary
PointEvent(Point2D p, MouseEvent e)
          Creates a new PointEvent with all necessary data.
PointEvent(Point2D p, MouseEvent e, MapControl mapControl)
           
 
Method Summary
 MouseEvent getEvent()
          Gets the event that has been the cause of creating this one.
 org.gvsig.fmap.geom.primitive.Point getMapPoint()
          Gets the Geometry point 2D in map coordinates where this event was produced.
 Point2D getPoint()
          Gets the point 2D in screen coordinates where this event was produced.
 void setPoint(Point2D p)
          Sets the point 2D where this event was produced.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointEvent

public PointEvent(Point2D p,
                  MouseEvent e)

Creates a new PointEvent with all necessary data.

Parameters:
p - the point 2D associated to this event
e - event that has been the cause of creating this one

PointEvent

public PointEvent(Point2D p,
                  MouseEvent e,
                  MapControl mapControl)
Method Detail

getPoint

public Point2D getPoint()

Gets the point 2D in screen coordinates where this event was produced.

Returns:
the point 2D associated to this event

getMapPoint

public org.gvsig.fmap.geom.primitive.Point getMapPoint()
Gets the Geometry point 2D in map coordinates where this event was produced.

Returns:
the Geometry point 2D associated to this event

setPoint

public void setPoint(Point2D p)

Sets the point 2D where this event was produced.

Parameters:
the - point 2D associated to this event

getEvent

public MouseEvent getEvent()

Gets the event that has been the cause of creating this one.

Returns:
mouse event that has been the cause of creating this one


Copyright © 2004-2013 gvSIG. All Rights Reserved.