java.lang.Object | |
↳ | com.neomades.maps.overlay.MarkerIconFactory |
This factory class creates MarkerIcon
s, that can be set on a
Marker
.
If the same icon is to be used on multiple markers, use a single
MarkerIcon
instance to save memory.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | HUE_AZURE | Azure color | |||||||||
int | HUE_BLUE | Blue color | |||||||||
int | HUE_CYAN | Cyan color | |||||||||
int | HUE_GREEN | Green color | |||||||||
int | HUE_MAGENTA | Magenta color | |||||||||
int | HUE_ORANGE | Orange color | |||||||||
int | HUE_RED | Red color | |||||||||
int | HUE_ROSE | Rose color | |||||||||
int | HUE_VIOLET | Violet color | |||||||||
int | HUE_YELLOW | Yellow color |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static MarkerIcon |
defaultIcon(int hue)
Creates a MarkerIcon that has a default image, with the tint color given in
parameter.
| ||||||||||
static MarkerIcon |
defaultIcon()
Creates a MarkerIcon that has a default image.
| ||||||||||
static MarkerIcon |
fromImage(Image image)
Creates a MarkerIcon from an image.
| ||||||||||
static MarkerIcon |
fromImage(int resID)
Creates a MarkerIcon using the resource ID of an image.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Azure color
Blue color
Cyan color
Green color
Magenta color
Orange color
Red color
Rose color
Violet color
Yellow color
Creates a MarkerIcon that has a default image, with the tint color given in parameter.
Below iOS 9
, only HUE_RED
, HUE_GREEN
and
HUE_VIOLET
are supported. The other values are ignored (the default
hue will be used).
hue | the hue to apply to the default marker. The value must be greater than 0 and less than 360 |
---|
IllegalArgumentException | if the hue parameter is negative or greater than 360 |
---|
Creates a MarkerIcon that has a default image.
Creates a MarkerIcon from an image.
To create the MarkerIcon, some platforms may duplicate the original image in
memory. So if the same image is to be used on multiple markers, use a single
MarkerIcon
instance to save memory.
image | the image to use (some implementations may clone it). |
---|
NullPointerException | if the image parameter is null |
---|
Creates a MarkerIcon using the resource ID of an image.
resID | the resource ID of the image to use |
---|
IllegalArgumentException | if the resource ID parameter is invalid |
---|