U - Type of the marker view to be composed.T - Type of the builder to be used for composing.public abstract class BaseMarkerViewOptions<U extends MarkerView,T extends BaseMarkerViewOptions<U,T>>
extends java.lang.Object
implements android.os.Parcelable
Extending this class requires implementing Parceable interface.
| Modifier and Type | Field and Description |
|---|---|
protected float |
alpha |
protected float |
anchorU |
protected float |
anchorV |
protected boolean |
flat |
protected Icon |
icon |
protected float |
infoWindowAnchorU |
protected float |
infoWindowAnchorV |
protected LatLng |
position |
protected float |
rotation |
protected boolean |
selected |
protected java.lang.String |
snippet |
protected java.lang.String |
title |
protected boolean |
visible |
| Constructor and Description |
|---|
BaseMarkerViewOptions()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
T |
alpha(float alpha)
Set the alpha of the
MarkerView. |
T |
anchor(float u,
float v)
Set the anchor of the
MarkerView. |
T |
flat(boolean flat)
Set the flat state of the MarkerView.
|
float |
getAlpha()
Get the alpha of the MarkerView.
|
float |
getAnchorU()
Get the u-value of the
MarkerView anchor. |
float |
getAnchorV()
Get the v-value of the
MarkerView anchor. |
Icon |
getIcon()
Get the icon of the
MarkerView. |
float |
getInfoWindowAnchorU()
Get the u-value of the MarkerView InfoWindow anchor.
|
float |
getInfoWindowAnchorV()
Get the v-value of the MarkerView InfoWindow anchor.
|
abstract U |
getMarker()
Get the MarkerView.
|
LatLng |
getPosition()
Get the geographical location of the
MarkerView. |
float |
getRotation()
Get the rotation of the MarkerView.
|
java.lang.String |
getSnippet()
Get the snippet of the
MarkerView. |
abstract T |
getThis()
Get the instance of the object for which this method was called.
|
java.lang.String |
getTitle()
Get the title of the
MarkerView. |
T |
icon(Icon icon)
Set the icon of the MarkerView.
|
T |
infoWindowAnchor(float u,
float v)
Set the InfoWindow anchor of the
MarkerView. |
boolean |
isFlat()
Get the flat state of the
MarkerView. |
boolean |
isVisible()
Get the visibility state of the MarkerView.
|
T |
position(LatLng position)
Set the geographical location of the MarkerView.
|
T |
rotation(float rotation)
Set the rotation of the
MarkerView. |
T |
snippet(java.lang.String snippet)
Set the snippet of the MarkerView.
|
T |
title(java.lang.String title)
Set the title of the MarkerView.
|
T |
visible(boolean visible)
Set the visibility state of the
MarkerView. |
protected LatLng position
protected java.lang.String snippet
protected java.lang.String title
protected Icon icon
protected boolean flat
protected float anchorU
protected float anchorV
protected float infoWindowAnchorU
protected float infoWindowAnchorV
protected float rotation
protected boolean visible
protected boolean selected
protected float alpha
public T position(LatLng position)
position - the location to position the MarkerView.public T snippet(java.lang.String snippet)
snippet - the snippet of the MarkerView.public T title(java.lang.String title)
title - the title of the MarkerView.public T icon(Icon icon)
icon - the icon of the MarkerView.public T flat(boolean flat)
flat - the flat state of the MarkerView.public T anchor(float u, float v)
MarkerView.u - the u-value.v - the v-value.public T infoWindowAnchor(float u, float v)
MarkerView.u - the u-value.v - the v-values.public T rotation(float rotation)
MarkerView.rotation - the rotation value.public T visible(boolean visible)
MarkerView.visible - the visible state.public T alpha(float alpha)
MarkerView.alpha - the alpha value.public LatLng getPosition()
MarkerView.public java.lang.String getSnippet()
MarkerView.public java.lang.String getTitle()
MarkerView.public Icon getIcon()
MarkerView.public boolean isFlat()
MarkerView.public float getAnchorU()
MarkerView anchor.public float getAnchorV()
MarkerView anchor.public float getInfoWindowAnchorU()
public float getInfoWindowAnchorV()
public float getRotation()
public boolean isVisible()
public float getAlpha()
public abstract T getThis()
public abstract U getMarker()