public class PointEvent extends Object
PointEvent
is used to notify a selection of a point with the
mouse.
Constructor and Description |
---|
PointEvent(Point2D p,
MouseEvent e)
Creates a new
PointEvent with all necessary data. |
PointEvent(Point2D p,
MouseEvent e,
MapControl mapControl) |
Modifier and Type | Method and Description |
---|---|
MouseEvent |
getEvent()
Gets the event that has been the cause of creating this one.
|
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.
|
public PointEvent(Point2D p, MouseEvent e)
Creates a new PointEvent
with all necessary data.
p
- the point 2D associated to this evente
- event that has been the cause of creating this onepublic PointEvent(Point2D p, MouseEvent e, MapControl mapControl)
public Point2D getPoint()
Gets the point 2D in screen coordinates where this event was produced.
public Point getMapPoint()
public void setPoint(Point2D p)
Sets the point 2D where this event was produced.
the
- point 2D associated to this eventpublic MouseEvent getEvent()
Gets the event that has been the cause of creating this one.