public final class MapViewGeometryUtil extends 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 Area |
getNonDownloadedArea(MapView mv,
Iterable<Bounds> downloadBounds)
Subtracts the download bounds from the rectangular bounds of the map view.
|
static Path2D |
getSequencePath(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 Area getNonDownloadedArea(MapView mv, Iterable<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 Path2D getSequencePath(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