public class StyleCache extends Object
| Constructor and Description |
|---|
StyleCache(FeatureStyleExtension featureStyleExtension,
float density)
Constructor
|
StyleCache(FeatureStyleExtension featureStyleExtension,
float density,
int iconCacheSize)
Constructor
|
StyleCache(GeoPackage geoPackage,
float density)
Constructor
|
StyleCache(GeoPackage geoPackage,
float density,
int iconCacheSize)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the cache
|
Bitmap |
createIcon(IconRow icon)
Create the icon bitmap
|
MarkerOptions |
createMarkerOptions(FeatureRow featureRow)
Create new marker options populated with the feature row style (icon or style)
|
MarkerOptions |
createMarkerOptions(FeatureStyle featureStyle)
Create new marker options populated with the feature style (icon or style)
|
MarkerOptions |
createMarkerOptions(IconRow icon)
Create new marker options populated with the icon
|
MarkerOptions |
createMarkerOptions(StyleRow style)
Create new marker options populated with the style
|
PolygonOptions |
createPolygonOptions(FeatureRow featureRow)
Create new polygon options populated with the feature row style
|
PolygonOptions |
createPolygonOptions(FeatureStyle featureStyle)
Create new polygon options populated with the feature style
|
PolygonOptions |
createPolygonOptions(StyleRow style)
Create new polygon options populated with the style
|
PolylineOptions |
createPolylineOptions(FeatureRow featureRow)
Create new polyline options populated with the feature row style
|
PolylineOptions |
createPolylineOptions(FeatureStyle featureStyle)
Create new polyline options populated with the feature style
|
PolylineOptions |
createPolylineOptions(StyleRow style)
Create new polyline options populated with the style
|
float |
getDensity()
Get the display density
|
FeatureStyleExtension |
getFeatureStyleExtension()
Get the feature style extension
|
void |
setDensity(float density)
Set the display density
|
boolean |
setFeatureStyle(MarkerOptions markerOptions,
FeatureRow featureRow)
Set the feature row style (icon or style) into the marker options
|
boolean |
setFeatureStyle(MarkerOptions markerOptions,
FeatureStyle featureStyle)
Set the feature style (icon or style) into the marker options
|
boolean |
setFeatureStyle(PolygonOptions polygonOptions,
FeatureRow featureRow)
Set the feature row style into the polygon options
|
boolean |
setFeatureStyle(PolygonOptions polygonOptions,
FeatureStyle featureStyle)
Set the feature style into the polygon options
|
boolean |
setFeatureStyle(PolylineOptions polylineOptions,
FeatureRow featureRow)
Set the feature row style into the polyline options
|
boolean |
setFeatureStyle(PolylineOptions polylineOptions,
FeatureStyle featureStyle)
Set the feature style into the polyline options
|
boolean |
setIcon(MarkerOptions markerOptions,
IconRow icon)
Set the icon into the marker options
|
boolean |
setStyle(MarkerOptions markerOptions,
StyleRow style)
Set the style into the marker options
|
boolean |
setStyle(PolygonOptions polygonOptions,
StyleRow style)
Set the style into the polygon options
|
boolean |
setStyle(PolylineOptions polylineOptions,
StyleRow style)
Set the style into the polyline options
|
public StyleCache(GeoPackage geoPackage,
float density)
geoPackage - GeoPackagedensity - display density: DisplayMetrics.densitypublic StyleCache(GeoPackage geoPackage,
float density,
int iconCacheSize)
geoPackage - GeoPackagedensity - display density: DisplayMetrics.densityiconCacheSize - number of icon bitmaps to cachepublic StyleCache(FeatureStyleExtension featureStyleExtension,
float density)
featureStyleExtension - feature style extensiondensity - display density: DisplayMetrics.densitypublic StyleCache(FeatureStyleExtension featureStyleExtension,
float density,
int iconCacheSize)
featureStyleExtension - feature style extensiondensity - display density: DisplayMetrics.densityiconCacheSize - number of icon bitmaps to cachepublic void clear()
public FeatureStyleExtension getFeatureStyleExtension()
public float getDensity()
public void setDensity(float density)
density - densitypublic MarkerOptions createMarkerOptions(FeatureRow featureRow)
featureRow - feature rowpublic boolean setFeatureStyle(MarkerOptions markerOptions,
FeatureRow featureRow)
markerOptions - marker optionsfeatureRow - feature rowpublic MarkerOptions createMarkerOptions(FeatureStyle featureStyle)
featureStyle - feature stylepublic boolean setFeatureStyle(MarkerOptions markerOptions,
FeatureStyle featureStyle)
markerOptions - marker optionsfeatureStyle - feature stylepublic MarkerOptions createMarkerOptions(IconRow icon)
icon - icon rowpublic boolean setIcon(MarkerOptions markerOptions,
IconRow icon)
markerOptions - marker optionsicon - icon rowpublic Bitmap createIcon(IconRow icon)
icon - icon rowpublic MarkerOptions createMarkerOptions(StyleRow style)
style - style rowpublic boolean setStyle(MarkerOptions markerOptions,
StyleRow style)
markerOptions - marker optionsstyle - style rowpublic PolylineOptions createPolylineOptions(FeatureRow featureRow)
featureRow - feature rowpublic boolean setFeatureStyle(PolylineOptions polylineOptions,
FeatureRow featureRow)
polylineOptions - polyline optionsfeatureRow - feature rowpublic PolylineOptions createPolylineOptions(FeatureStyle featureStyle)
featureStyle - feature stylepublic boolean setFeatureStyle(PolylineOptions polylineOptions,
FeatureStyle featureStyle)
polylineOptions - polyline optionsfeatureStyle - feature stylepublic PolylineOptions createPolylineOptions(StyleRow style)
style - style rowpublic boolean setStyle(PolylineOptions polylineOptions,
StyleRow style)
polylineOptions - polyline optionsstyle - style rowpublic PolygonOptions createPolygonOptions(FeatureRow featureRow)
featureRow - feature rowpublic boolean setFeatureStyle(PolygonOptions polygonOptions,
FeatureRow featureRow)
polygonOptions - polygon optionsfeatureRow - feature rowpublic PolygonOptions createPolygonOptions(FeatureStyle featureStyle)
featureStyle - feature stylepublic boolean setFeatureStyle(PolygonOptions polygonOptions,
FeatureStyle featureStyle)
polygonOptions - polygon optionsfeatureStyle - feature stylepublic PolygonOptions createPolygonOptions(StyleRow style)
style - style rowpublic boolean setStyle(PolygonOptions polygonOptions,
StyleRow style)
polygonOptions - polygon optionsstyle - style row