public class LeaderLineOverlay extends FreeformOverlay
Overlay.LineStyle| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID |
_p, _pathbounds, 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 |
|---|
LeaderLineOverlay(PolylineCommand line,
java.util.List<Command> elements) |
| 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
|
boolean |
isClosed() |
protected void |
recalcBounds() |
protected void |
recalcBounds(android.graphics.Paint paint) |
protected void |
recalcPath()
Recalculate path object based on updated vertices
|
void |
setDpiScale(float scale) |
void |
setFontSize(int size) |
void |
setLabel(java.lang.String label) |
void |
setup(float tipLen,
float tipDeg,
android.graphics.PointF[] p) |
void |
setup(float tipLen,
float tipDeg,
android.graphics.PointF[] p,
int limit) |
void |
setup(android.graphics.PointF... p)
a triangle has three points
|
getPoints, offset, setup, setupgetBounds, getColor, getFillColor, getFontSize, getIntBounds, getIntBounds, getName, getStrokeStyle, getStrokeWidth, getUID, isFilled, offset, setColor, setFillColor, setName, setStrokeStyle, setStrokeWidth, withinBounds, withinBoundspublic static final java.lang.String ID
public LeaderLineOverlay(PolylineCommand line, java.util.List<Command> elements)
public void setup(android.graphics.PointF... p)
FreeformOverlaysetup in class FreeformOverlaypublic void setup(float tipLen,
float tipDeg,
android.graphics.PointF[] p,
int limit)
public void setup(float tipLen,
float tipDeg,
android.graphics.PointF[] p)
public void setLabel(java.lang.String label)
public void setFontSize(int size)
setFontSize in class Overlaypublic void setDpiScale(float scale)
setDpiScale in class Overlayprotected void recalcBounds()
recalcBounds in class FreeformOverlayprotected void recalcBounds(android.graphics.Paint paint)
protected void recalcPath()
recalcPath in class FreeformOverlaypublic void draw(android.graphics.Canvas canvas,
android.graphics.Paint paint)
Overlaydraw in class FreeformOverlaycanvas - Canvas to draw ontopaint - Paint object to usepublic boolean isClosed()
isClosed in class FreeformOverlay