Inheritance diagram for IwMapviewerConfigBase:Public Member Functions | |
| final void | applyConfiguration (final Mapviewer map, final int iwId) |
| int | describeContents () |
| String | getColorProfile () |
| Boolean | getIsLocationTrackingEnabled () |
| Boolean | getIsRotationEnabled () |
| MapType | getMapType () |
| MapPerspective | getPerspective () |
| Boolean | getShowVehicleIcon () |
| Boolean | isRouteGuidanceEnabled () |
| IwMapviewerConfigBase () | |
| IwMapviewerConfigBase (Context context, AttributeSet attrs) | |
| IwMapviewerConfigBase (final Mapviewer mapviewer) | |
| IwMapviewerConfigBase (IwMapviewerConfigBase toCopy) | |
| IwMapviewerConfigBase (Parcel in) | |
| void | setColorProfile (String colorProfile) |
| void | setIsLocationTrackingEnabled (boolean isLocationTrackingEnabled) |
| void | setIsRotationEnabled (boolean isRotationEnabled) |
| void | setMapType (MapType mapType) |
| void | setPerspective (MapPerspective perspective) |
| void | setRouteGuidanceEnabled (boolean enabled) |
| void | setShowVehicleIcon (boolean show) |
| String | toString () |
| void | writeToParcel (Parcel destination, int flags) |
Protected Member Functions | |
| void | applyConfigurationOnApiThread (final Mapviewer map, int iwId) |
| void | parseStyleAttributes (Context context, AttributeSet attrs) |
\breif Holds Mapviewer configurations that can be passed as Style AttributeSets e.g. perspective, day - night mode ...
Class is parcelable to use it in Intent
| IwMapviewerConfigBase | ( | final Mapviewer | mapviewer | ) |
Create config from a Mapviewer instance
| mapviewer | - mapviewer to create config from |
Default constructor, default configuration
| IwMapviewerConfigBase | ( | Context | context, |
| AttributeSet | attrs | ||
| ) |
Create a configuration from XML styled attributes
| context | - needed to parse attricutes |
| attrs | - attrs defined in xml |
| IwMapviewerConfigBase | ( | Parcel | in | ) |
Create config from parcel (restoreInstanceState)
| in | - parcel containing mapdate |
| IwMapviewerConfigBase | ( | IwMapviewerConfigBase | toCopy | ) |
copy construcor
| toCopy |
| final void applyConfiguration | ( | final Mapviewer | map, |
| final int | iwId | ||
| ) |
Set the stored configuration values on a mapviewer instance
may not be overwritten - overwrite applyConfigurationOnApiThread instead
| map | - map to read config from |
| iwId | - id of the mapviewer |
|
protected |
Set the stored configuration values on a mapviewer instance This method is always called from the ui thread and should be overridden by subclasses
| map |
Reimplemented in IwMapviewerConfig.
| int describeContents | ( | ) |
| String getColorProfile | ( | ) |
| Boolean getIsLocationTrackingEnabled | ( | ) |
| Boolean getIsRotationEnabled | ( | ) |
| MapType getMapType | ( | ) |
| MapPerspective getPerspective | ( | ) |
| Boolean getShowVehicleIcon | ( | ) |
| Boolean isRouteGuidanceEnabled | ( | ) |
|
protected |
Parse attributes from XML and store in variables
Not all attributes are in the styles because. Sometimes it does not makes sense to configer them for example routeGuidanceMode enabled which needs an active navigation
| context | - enables parsing of styles |
| attrs | - attributes |
Reimplemented in IwMapviewerConfig.
| void setColorProfile | ( | String | colorProfile | ) |
| void setIsLocationTrackingEnabled | ( | boolean | isLocationTrackingEnabled | ) |
| void setIsRotationEnabled | ( | boolean | isRotationEnabled | ) |
| void setMapType | ( | MapType | mapType | ) |
| void setPerspective | ( | MapPerspective | perspective | ) |
| void setRouteGuidanceEnabled | ( | boolean | enabled | ) |
| void setShowVehicleIcon | ( | boolean | show | ) |
| String toString | ( | ) |
| void writeToParcel | ( | Parcel | destination, |
| int | flags | ||
| ) |
Write this config data to a parcel (used onSaveInstanceState)
| destination | - parcel to write to |
| flags | - specific flags for the parcel |
Reimplemented in IwMapviewerConfig.