Package it.tidalwave.mapviewer
Class MapViewPoint
java.lang.Object
it.tidalwave.mapviewer.MapViewPoint
- All Implemented Interfaces:
Cartesian
This class represents a point on the map. (0, 0) corresponds to the center of the map view.
- Author:
- Fabrizio Giudici
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MapViewPointReturns a new point given a (x,y) source.static MapViewPointof(javafx.scene.input.MouseEvent event) Returns a new point copying from aMouseEvent.toString()translated(double dx, double dy) Returns a point translated of the specified amount.
-
Constructor Details
-
MapViewPoint
public MapViewPoint()
-
-
Method Details
-
of
Returns a new point given a (x,y) source..- Parameters:
point- the source- Returns:
- a new point given a (x,y) source
-
of
Returns a new point copying from aMouseEvent..- Parameters:
event- the event- Returns:
- a new point copying from a
MouseEvent
-
translated
Returns a point translated of the specified amount..- Parameters:
dx- the horizontal translationdy- the vertical translation- Returns:
- a point translated of the specified amount
-
toString
-