public class Description extends ComponentBase
mEnabled, mTextColor, mTextSize, mTypeface, mXOffset, mYOffset| Constructor and Description |
|---|
Description() |
| Modifier and Type | Method and Description |
|---|---|
MPPointF |
getPosition()
Returns the customized position of the description, or null if none set.
|
java.lang.String |
getText()
Returns the description text.
|
android.graphics.Paint.Align |
getTextAlign()
Returns the text alignment of the description.
|
void |
setPosition(float x,
float y)
Sets a custom position for the description text in pixels on the screen.
|
void |
setText(java.lang.String text)
Sets the text to be shown as the description.
|
void |
setTextAlign(android.graphics.Paint.Align align)
Sets the text alignment of the description text.
|
getTextColor, getTextSize, getTypeface, getXOffset, getYOffset, isEnabled, setEnabled, setTextColor, setTextSize, setTypeface, setXOffset, setYOffsetpublic void setText(java.lang.String text)
text - public java.lang.String getText()
public void setPosition(float x,
float y)
x - - xcoordinatey - - ycoordinatepublic MPPointF getPosition()
public void setTextAlign(android.graphics.Paint.Align align)
align - public android.graphics.Paint.Align getTextAlign()