public class LeaderLineOverlay extends FreeformOverlay
Overlay.LineStyle
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
_p, _path
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 |
---|
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, setup
getBounds, getColor, getFillColor, getFontSize, getIntBounds, getIntBounds, getName, getStrokeStyle, getStrokeWidth, getUID, isFilled, offset, setColor, setFillColor, setName, setStrokeStyle, setStrokeWidth, withinBounds, withinBounds
public static final java.lang.String ID
public LeaderLineOverlay(PolylineCommand line, java.util.List<Command> elements)
public void setup(android.graphics.PointF... p)
FreeformOverlay
setup
in class FreeformOverlay
public 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 Overlay
public void setDpiScale(float scale)
setDpiScale
in class Overlay
protected void recalcBounds()
recalcBounds
in class FreeformOverlay
protected void recalcBounds(android.graphics.Paint paint)
protected void recalcPath()
recalcPath
in class FreeformOverlay
public void draw(android.graphics.Canvas canvas, android.graphics.Paint paint)
Overlay
draw
in class FreeformOverlay
canvas
- Canvas to draw ontopaint
- Paint object to usepublic boolean isClosed()
isClosed
in class FreeformOverlay