public class LabelOverlay extends Overlay
Overlay.LineStyle
Modifier and Type | Field and Description |
---|---|
protected android.graphics.PointF |
_anchor |
protected boolean |
_boundsNeedUpdate |
protected java.lang.String |
_label |
static java.lang.String |
ID |
bounds, color, dpiScale, fillColor, fontSize, LINE_TYPE_DASH, LINE_TYPE_DASH_DOT, LINE_TYPE_DASH_DOT_DOT, LINE_TYPE_DOT, LINE_TYPE_SOLID, name, strokeStyle, strokeWidth, TAG, uid
Constructor and Description |
---|
LabelOverlay(TextCommand text) |
Modifier and Type | Method and Description |
---|---|
void |
draw(android.graphics.Canvas canvas,
android.graphics.Paint paint)
Draw overlay on canvas
By default this sets up the paint with this overlay's attributes
|
android.graphics.PointF[] |
getPoints()
Get all points that control this overlay
|
void |
recalcBounds(android.graphics.Paint paint) |
void |
setDpiScale(float scale) |
void |
setFontSize(int size) |
void |
setLabel(java.lang.String newLabel) |
void |
setup(android.graphics.PointF center,
java.lang.String label) |
void |
setup(android.graphics.PointF point,
java.lang.String label,
android.graphics.Paint paint) |
getBounds, getColor, getFillColor, getFontSize, getIntBounds, getIntBounds, getName, getStrokeStyle, getStrokeWidth, getUID, isFilled, offset, offset, setColor, setFillColor, setName, setStrokeStyle, setStrokeWidth, withinBounds, withinBounds
public static final java.lang.String ID
protected android.graphics.PointF _anchor
protected java.lang.String _label
protected boolean _boundsNeedUpdate
public LabelOverlay(TextCommand text)
public void setup(android.graphics.PointF point, java.lang.String label, android.graphics.Paint paint)
public void setup(android.graphics.PointF center, java.lang.String label)
public void setLabel(java.lang.String newLabel)
public android.graphics.PointF[] getPoints()
Overlay
public void setFontSize(int size)
setFontSize
in class Overlay
public void setDpiScale(float scale)
setDpiScale
in class Overlay
public void draw(android.graphics.Canvas canvas, android.graphics.Paint paint)
Overlay
public void recalcBounds(android.graphics.Paint paint)