Class PointEvent

java.lang.Object
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 Details

    • 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 Details

    • 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