public final class TextOptions
extends java.lang.Object
implements android.os.Parcelable, java.lang.Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
static TextOptionsCreator |
CREATOR |
| 构造器和说明 |
|---|
TextOptions() |
| 限定符和类型 | 方法和说明 |
|---|---|
TextOptions |
align(int alignX,
int alignY)
设置文字覆盖物的对齐方式,默认居中对齐。
|
TextOptions |
backgroundColor(int backgroundColor)
设置文字覆盖物的背景颜色
Set the background color of the text overlay. |
int |
describeContents() |
TextOptions |
fontColor(int fontColor)
设置文字覆盖物的字体颜色,默认黑色。
|
TextOptions |
fontSize(int fontSize)
设置文字覆盖物字体大小
Set the font size of the text overlay |
int |
getAlignX()
获取文字覆盖物的水平对齐方式
Get the horizontal alignment of the text overlay. |
int |
getAlignY()
获取文字覆盖物的垂直对齐方式
Get the vertical alignment of the text overlay. |
int |
getBackgroundColor()
获取文字覆盖物的背景颜色
Get the background color of the text overlay. |
int |
getFontColor()
获取文字覆盖物的字体颜色
Get the font color of the text overlay. |
int |
getFontSize()
获取文字覆盖物的字体大小
Get the font size of the text overlay. |
java.lang.Object |
getObject()
获取文字覆盖物额外信息
Get additional information of the text overlay |
LatLng |
getPosition()
获取文字覆盖物的地理坐标。
|
float |
getRotate()
获取文字覆盖物的旋转角度
Get the rotation angle of the text overlay. |
java.lang.String |
getText()
获取文字覆盖物的文字内容
Get the text content of the text overlay |
android.graphics.Typeface |
getTypeface()
获取文字覆盖物的字体。
|
float |
getZIndex()
获取文字覆盖物的z轴数值
Get the z-axis value of the text overlay. |
boolean |
isVisible()
获取文字覆盖物的可见性
Get the visibility of the text overlay |
TextOptions |
position(LatLng position)
设置文字覆盖物的地理坐标。
|
TextOptions |
rotate(float rotate)
设置文字覆盖物的旋转角度,逆时针。
|
TextOptions |
setObject(java.lang.Object object)
设置文字覆盖物的额外信息
Set additional information for the text overlay. |
TextOptions |
text(java.lang.String text)
设置文字覆盖物的文字内容。
|
TextOptions |
typeface(android.graphics.Typeface typeface)
设置文字覆盖物的字体。
|
TextOptions |
visible(boolean visible)
设置文字覆盖物的可见性。
|
void |
writeToParcel(android.os.Parcel out,
int paramInt) |
TextOptions |
zIndex(float zIndex)
设置文字覆盖物 zIndex。
|
public static final TextOptionsCreator CREATOR
public void writeToParcel(android.os.Parcel out,
int paramInt)
writeToParcel 在接口中 android.os.Parcelableout - paramInt - exclude javadoc中不显示
public int describeContents()
describeContents 在接口中 android.os.Parcelablepublic TextOptions position(LatLng position)
position - 地理位置
public TextOptions text(java.lang.String text)
text - 文字内容
public TextOptions typeface(android.graphics.Typeface typeface)
typeface - 字体
public TextOptions visible(boolean visible)
visible - 是否可见 true:为可见,false:不可见
public TextOptions zIndex(float zIndex)
zIndex - z轴数值
public TextOptions rotate(float rotate)
rotate - 角度public TextOptions align(int alignX, int alignY)
alignX - 水平对齐方式
alignY - 垂直对齐方式
public TextOptions backgroundColor(int backgroundColor)
backgroundColor - 背景颜色
public TextOptions setObject(java.lang.Object object)
object - 额外信息
public TextOptions fontColor(int fontColor)
fontColor - 字体颜色
public TextOptions fontSize(int fontSize)
fontSize - 字体大小
public LatLng getPosition()
public java.lang.String getText()
public android.graphics.Typeface getTypeface()
public float getRotate()
public int getAlignX()
public int getAlignY()
public int getBackgroundColor()
public int getFontColor()
public java.lang.Object getObject()
public int getFontSize()
public float getZIndex()
public boolean isVisible()