public final class MapViewGeometryUtil extends java.lang.Object
Bounds and StreetsideSequence into Shapes that
can then easily be drawn on a MapViews Graphics2D-context.| Modifier | Constructor and Description |
|---|---|
private |
MapViewGeometryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.geom.Area |
getNonDownloadedArea(org.openstreetmap.josm.gui.MapView mv,
java.lang.Iterable<org.openstreetmap.josm.data.Bounds> downloadBounds)
Subtracts the download bounds from the rectangular bounds of the map view.
|
static java.awt.geom.Path2D |
getSequencePath(org.openstreetmap.josm.gui.NavigatableComponent nc,
StreetsideSequence seq)
Converts a
StreetsideSequence into a Path2D that can be drawn
on the specified NavigatableComponent's Graphics2D-context. |
private MapViewGeometryUtil()
public static java.awt.geom.Area getNonDownloadedArea(org.openstreetmap.josm.gui.MapView mv, java.lang.Iterable<org.openstreetmap.josm.data.Bounds> downloadBounds)
mv - the MapView that is used for the LatLon-to-Point-conversion and that determines
the Bounds from which the downloaded Bounds are subtracteddownloadBounds - multiple Bounds objects that represent the downloaded areaMapViews bounds and the downloaded areapublic static java.awt.geom.Path2D getSequencePath(org.openstreetmap.josm.gui.NavigatableComponent nc, StreetsideSequence seq)
StreetsideSequence into a Path2D that can be drawn
on the specified NavigatableComponent's Graphics2D-context.nc - the NavigatableComponent for which this conversion should be performed, typically a MapViewseq - the sequence to convertPath2D object to which the StreetsideSequence has been converted