public class StyleUtils extends Object
| Constructor and Description |
|---|
StyleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Bitmap |
createIcon(IconRow icon,
float density)
Create the icon bitmap
|
static Bitmap |
createIcon(IconRow icon,
float density,
IconCache iconCache)
Create the icon bitmap
|
static MarkerOptions |
createMarkerOptions(FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
Create new marker options populated with the feature row style (icon or style)
|
static MarkerOptions |
createMarkerOptions(FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density,
IconCache iconCache)
Create new marker options populated with the feature row style (icon or style)
|
static MarkerOptions |
createMarkerOptions(FeatureStyle featureStyle,
float density)
Create new marker options populated with the feature style (icon or style)
|
static MarkerOptions |
createMarkerOptions(FeatureStyle featureStyle,
float density,
IconCache iconCache)
Create new marker options populated with the feature style (icon or style)
|
static MarkerOptions |
createMarkerOptions(GeoPackage geoPackage,
FeatureRow featureRow,
float density)
Create new marker options populated with the feature row style (icon or style)
|
static MarkerOptions |
createMarkerOptions(GeoPackage geoPackage,
FeatureRow featureRow,
float density,
IconCache iconCache)
Create new marker options populated with the feature row style (icon or style)
|
static MarkerOptions |
createMarkerOptions(IconRow icon,
float density)
Create new marker options populated with the icon
|
static MarkerOptions |
createMarkerOptions(IconRow icon,
float density,
IconCache iconCache)
Create new marker options populated with the icon
|
static MarkerOptions |
createMarkerOptions(StyleRow style)
Create new marker options populated with the style
|
static PolygonOptions |
createPolygonOptions(FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
Create new polygon options populated with the feature row style
|
static PolygonOptions |
createPolygonOptions(FeatureStyle featureStyle,
float density)
Create new polygon options populated with the feature style
|
static PolygonOptions |
createPolygonOptions(GeoPackage geoPackage,
FeatureRow featureRow,
float density)
Create new polygon options populated with the feature row style
|
static PolygonOptions |
createPolygonOptions(StyleRow style,
float density)
Create new polygon options populated with the style
|
static PolylineOptions |
createPolylineOptions(FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
Create new polyline options populated with the feature row style
|
static PolylineOptions |
createPolylineOptions(FeatureStyle featureStyle,
float density)
Create new polyline options populated with the feature style
|
static PolylineOptions |
createPolylineOptions(GeoPackage geoPackage,
FeatureRow featureRow,
float density)
Create new polyline options populated with the feature row style
|
static PolylineOptions |
createPolylineOptions(StyleRow style,
float density)
Create new polyline options populated with the style
|
static boolean |
setFeatureStyle(MarkerOptions markerOptions,
FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
Set the feature row style (icon or style) into the marker options
|
static boolean |
setFeatureStyle(MarkerOptions markerOptions,
FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density,
IconCache iconCache)
Set the feature row style (icon or style) into the marker options
|
static boolean |
setFeatureStyle(MarkerOptions markerOptions,
FeatureStyle featureStyle,
float density)
Set the feature style (icon or style) into the marker options
|
static boolean |
setFeatureStyle(MarkerOptions markerOptions,
FeatureStyle featureStyle,
float density,
IconCache iconCache)
Set the feature style (icon or style) into the marker options
|
static boolean |
setFeatureStyle(MarkerOptions markerOptions,
GeoPackage geoPackage,
FeatureRow featureRow,
float density)
Set the feature row style (icon or style) into the marker options
|
static boolean |
setFeatureStyle(MarkerOptions markerOptions,
GeoPackage geoPackage,
FeatureRow featureRow,
float density,
IconCache iconCache)
Set the feature row style (icon or style) into the marker options
|
static boolean |
setFeatureStyle(PolygonOptions polygonOptions,
FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
Set the feature row style into the polygon options
|
static boolean |
setFeatureStyle(PolygonOptions polygonOptions,
FeatureStyle featureStyle,
float density)
Set the feature style into the polygon options
|
static boolean |
setFeatureStyle(PolygonOptions polygonOptions,
GeoPackage geoPackage,
FeatureRow featureRow,
float density)
Set the feature row style into the polygon options
|
static boolean |
setFeatureStyle(PolylineOptions polylineOptions,
FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
Set the feature row style into the polyline options
|
static boolean |
setFeatureStyle(PolylineOptions polylineOptions,
FeatureStyle featureStyle,
float density)
Set the feature style into the polyline options
|
static boolean |
setFeatureStyle(PolylineOptions polylineOptions,
GeoPackage geoPackage,
FeatureRow featureRow,
float density)
Set the feature row style into the polyline options
|
static boolean |
setIcon(MarkerOptions markerOptions,
IconRow icon,
float density)
Set the icon into the marker options
|
static boolean |
setIcon(MarkerOptions markerOptions,
IconRow icon,
float density,
IconCache iconCache)
Set the icon into the marker options
|
static boolean |
setStyle(MarkerOptions markerOptions,
StyleRow style)
Set the style into the marker options
|
static boolean |
setStyle(PolygonOptions polygonOptions,
StyleRow style,
float density)
Set the style into the polygon options
|
static boolean |
setStyle(PolylineOptions polylineOptions,
StyleRow style,
float density)
Set the style into the polyline options
|
public static MarkerOptions createMarkerOptions(GeoPackage geoPackage,
FeatureRow featureRow,
float density)
geoPackage - GeoPackagefeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static MarkerOptions createMarkerOptions(GeoPackage geoPackage,
FeatureRow featureRow,
float density,
IconCache iconCache)
geoPackage - GeoPackagefeatureRow - feature rowdensity - display density: DisplayMetrics.densityiconCache - icon cachepublic static boolean setFeatureStyle(MarkerOptions markerOptions,
GeoPackage geoPackage,
FeatureRow featureRow,
float density)
markerOptions - marker optionsgeoPackage - GeoPackagefeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static boolean setFeatureStyle(MarkerOptions markerOptions,
GeoPackage geoPackage,
FeatureRow featureRow,
float density,
IconCache iconCache)
markerOptions - marker optionsgeoPackage - GeoPackagefeatureRow - feature rowdensity - display density: DisplayMetrics.densityiconCache - icon cachepublic static MarkerOptions createMarkerOptions(FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
featureStyleExtension - feature style extensionfeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static boolean setFeatureStyle(MarkerOptions markerOptions,
FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
markerOptions - marker optionsfeatureStyleExtension - feature style extensionfeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static MarkerOptions createMarkerOptions(FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density,
IconCache iconCache)
featureStyleExtension - feature style extensionfeatureRow - feature rowdensity - display density: DisplayMetrics.densityiconCache - icon cachepublic static boolean setFeatureStyle(MarkerOptions markerOptions,
FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density,
IconCache iconCache)
markerOptions - marker optionsfeatureStyleExtension - feature style extensionfeatureRow - feature rowdensity - display density: DisplayMetrics.densityiconCache - icon cachepublic static MarkerOptions createMarkerOptions(FeatureStyle featureStyle,
float density)
featureStyle - feature styledensity - display density: DisplayMetrics.densitypublic static MarkerOptions createMarkerOptions(FeatureStyle featureStyle,
float density,
IconCache iconCache)
featureStyle - feature styledensity - display density: DisplayMetrics.densityiconCache - icon cachepublic static boolean setFeatureStyle(MarkerOptions markerOptions,
FeatureStyle featureStyle,
float density)
markerOptions - marker optionsfeatureStyle - feature styledensity - display density: DisplayMetrics.densitypublic static boolean setFeatureStyle(MarkerOptions markerOptions,
FeatureStyle featureStyle,
float density,
IconCache iconCache)
markerOptions - marker optionsfeatureStyle - feature styledensity - display density: DisplayMetrics.densityiconCache - icon cachepublic static MarkerOptions createMarkerOptions(IconRow icon,
float density)
icon - icon rowdensity - display density: DisplayMetrics.densitypublic static MarkerOptions createMarkerOptions(IconRow icon,
float density,
IconCache iconCache)
icon - icon rowdensity - display density: DisplayMetrics.densityiconCache - icon cachepublic static boolean setIcon(MarkerOptions markerOptions,
IconRow icon,
float density)
markerOptions - marker optionsicon - icon rowdensity - display density: DisplayMetrics.densitypublic static boolean setIcon(MarkerOptions markerOptions,
IconRow icon,
float density,
IconCache iconCache)
markerOptions - marker optionsicon - icon rowdensity - display density: DisplayMetrics.densityiconCache - icon cachepublic static Bitmap createIcon(IconRow icon, float density)
icon - icon rowdensity - display density: DisplayMetrics.densitypublic static Bitmap createIcon(IconRow icon, float density, IconCache iconCache)
icon - icon rowdensity - display density: DisplayMetrics.densityiconCache - icon cachepublic static MarkerOptions createMarkerOptions(StyleRow style)
style - style rowpublic static boolean setStyle(MarkerOptions markerOptions,
StyleRow style)
markerOptions - marker optionsstyle - style rowpublic static PolylineOptions createPolylineOptions(GeoPackage geoPackage,
FeatureRow featureRow,
float density)
geoPackage - GeoPackagefeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static boolean setFeatureStyle(PolylineOptions polylineOptions,
GeoPackage geoPackage,
FeatureRow featureRow,
float density)
polylineOptions - polyline optionsgeoPackage - GeoPackagefeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static PolylineOptions createPolylineOptions(FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
featureStyleExtension - feature style extensionfeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static boolean setFeatureStyle(PolylineOptions polylineOptions,
FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
polylineOptions - polyline optionsfeatureStyleExtension - feature style extensionfeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static PolylineOptions createPolylineOptions(FeatureStyle featureStyle,
float density)
featureStyle - feature styledensity - display density: DisplayMetrics.densitypublic static boolean setFeatureStyle(PolylineOptions polylineOptions,
FeatureStyle featureStyle,
float density)
polylineOptions - polyline optionsfeatureStyle - feature styledensity - display density: DisplayMetrics.densitypublic static PolylineOptions createPolylineOptions(StyleRow style,
float density)
style - style rowdensity - display density: DisplayMetrics.densitypublic static boolean setStyle(PolylineOptions polylineOptions,
StyleRow style,
float density)
polylineOptions - polyline optionsstyle - style rowdensity - display density: DisplayMetrics.densitypublic static PolygonOptions createPolygonOptions(GeoPackage geoPackage,
FeatureRow featureRow,
float density)
geoPackage - GeoPackagefeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static boolean setFeatureStyle(PolygonOptions polygonOptions,
GeoPackage geoPackage,
FeatureRow featureRow,
float density)
polygonOptions - polygon optionsgeoPackage - GeoPackagefeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static PolygonOptions createPolygonOptions(FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
featureStyleExtension - feature style extensionfeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static boolean setFeatureStyle(PolygonOptions polygonOptions,
FeatureStyleExtension featureStyleExtension,
FeatureRow featureRow,
float density)
polygonOptions - polygon optionsfeatureStyleExtension - feature style extensionfeatureRow - feature rowdensity - display density: DisplayMetrics.densitypublic static PolygonOptions createPolygonOptions(FeatureStyle featureStyle,
float density)
featureStyle - feature styledensity - display density: DisplayMetrics.densitypublic static boolean setFeatureStyle(PolygonOptions polygonOptions,
FeatureStyle featureStyle,
float density)
polygonOptions - polygon optionsfeatureStyle - feature styledensity - display density: DisplayMetrics.densitypublic static PolygonOptions createPolygonOptions(StyleRow style,
float density)
style - style rowdensity - display density: DisplayMetrics.densitypublic static boolean setStyle(PolygonOptions polygonOptions,
StyleRow style,
float density)
polygonOptions - polygon optionsstyle - style rowdensity - display density: DisplayMetrics.density