Class PointEvent
java.lang.Object
org.gvsig.fmap.mapcontrol.tools.Events.PointEvent
PointEvent is used to notify a selection of a point with the
mouse.
- Author:
- Vicente Caballero Navarro
-
Constructor Summary
ConstructorsConstructorDescriptionPointEvent(Point2D p, MouseEvent e) Creates a newPointEventwith all necessary data.PointEvent(Point2D p, MouseEvent e, MapControl mapControl) -
Method Summary
Modifier and TypeMethodDescriptiongetEvent()Gets the event that has been the cause of creating this one.org.gvsig.fmap.geom.primitive.PointGets the Geometry point 2D in map coordinates where this event was produced.getPoint()Gets the point 2D in screen coordinates where this event was produced.voidSets the point 2D where this event was produced.
-
Constructor Details
-
PointEvent
Creates a new
PointEventwith all necessary data.- Parameters:
p- the point 2D associated to this evente- event that has been the cause of creating this one
-
PointEvent
-
-
Method Details
-
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
Sets the point 2D where this event was produced.
- Parameters:
the- point 2D associated to this event
-
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
-