U - Type of the marker view to be composedT - Type of the builder to be used for composingpublic 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 |
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 |
anchor(float u,
float v)
Set the anchor of the MarkerView.
|
T |
flat(boolean flat)
Set the flat state 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
public T position(LatLng position)
position - the location to position the MarkerViewpublic T snippet(java.lang.String snippet)
snippet - the snippet of the MarkerViewpublic T title(java.lang.String title)
title - the title of the MarkerViewpublic T icon(Icon icon)
icon - the icon of the MarkerViewpublic T flat(boolean flat)
flat - the flat state of the MarkerViewpublic T anchor(float u, float v)
u - the u-valuev - the v-valuepublic T infoWindowAnchor(float u, float v)
u - the u-valuev - the v-valuespublic T rotation(float rotation)
rotation - the rotation valuepublic T visible(boolean visible)
visible - the visible statepublic LatLng getPosition()
public java.lang.String getSnippet()
public java.lang.String getTitle()
public Icon getIcon()
public boolean isFlat()
public float getAnchorU()
public float getAnchorV()
public float getInfoWindowAnchorU()
public float getInfoWindowAnchorV()
public float getRotation()
public boolean isVisible()
public abstract T getThis()
public abstract U getMarker()