public abstract class MapViewState.MapViewPoint extends java.lang.Object
Constructor and Description |
---|
MapViewPoint() |
Modifier and Type | Method and Description |
---|---|
EastNorth |
getEastNorth()
Gets the
EastNorth coordinate of this point. |
java.awt.geom.Point2D |
getInView()
Get this point in view coordinates.
|
protected abstract double |
getInViewX() |
protected abstract double |
getInViewY() |
java.awt.geom.Point2D |
getInWindow()
Convert this point to window coordinates.
|
LatLon |
getLatLon()
Gets the current position in LatLon coordinates according to the current projection.
|
java.awt.geom.Point2D |
getOnScreen()
Convert this point to screen coordinates.
|
private java.awt.geom.Point2D.Double |
getUsingCorner(java.awt.Point corner) |
MapViewState.MapViewRectangle |
rectTo(MapViewState.MapViewPoint other)
Create a rectangle from this to the other point.
|
public MapViewPoint()
public java.awt.geom.Point2D getInView()
protected abstract double getInViewX()
protected abstract double getInViewY()
public java.awt.geom.Point2D getInWindow()
public java.awt.geom.Point2D getOnScreen()
private java.awt.geom.Point2D.Double getUsingCorner(java.awt.Point corner)
public EastNorth getEastNorth()
EastNorth
coordinate of this point.public MapViewState.MapViewRectangle rectTo(MapViewState.MapViewPoint other)
other
- The other point. Needs to be of the same MapViewState