public class MapGoogle extends Map
Modifier and Type | Field and Description |
---|---|
static String |
MAPTYPE_HYBRID |
static String |
MAPTYPE_ROAD |
static String |
MAPTYPE_SATELLITE |
static String |
MAPTYPE_TERRAIN |
label, panel, panelHeight, panelWidth
Modifier and Type | Method and Description |
---|---|
protected void |
generateMapImage(net.studioblueplanet.tomtomwatch.MapGoogle.MapRoute mapRoute)
This method generates the map image showing the route
|
static String |
getMapType()
Returns the map type currently set
|
void |
hideTrack()
Hides the track
|
static void |
setMapType(String newMapType)
Sets the map type
|
String |
showTrack(ActivityData activityData)
This method show the track in this frame on a google map
|
String |
showTrack(Route route)
This method show the route track in this frame on a google map
|
protected void |
showTrackImage(BufferedImage image)
Shows a previously cached map image
|
public static final String MAPTYPE_ROAD
public static final String MAPTYPE_SATELLITE
public static final String MAPTYPE_TERRAIN
public static final String MAPTYPE_HYBRID
public MapGoogle(JPanel panel)
panel
- Panel to use for showing the mappublic static String getMapType()
public static void setMapType(String newMapType)
newMapType
- The new map typeprotected void generateMapImage(net.studioblueplanet.tomtomwatch.MapGoogle.MapRoute mapRoute)
mapRoute
- Route to showprotected void showTrackImage(BufferedImage image)
image
- The image to showpublic String showTrack(ActivityData activityData)
public String showTrack(Route route)
Copyright © 2023. All rights reserved.