public class ArrowOverlay extends LineOverlay
Overlay.LineStyle| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.Path |
_path |
protected static int |
HEAD |
protected static int |
HEAD_LEFT |
protected static int |
HEAD_RIGHT |
static java.lang.String |
ID |
protected static int |
TAIL |
_pbounds, 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 |
|---|
ArrowOverlay(PolylineCommand line) |
| 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
|
void |
offset(float x,
float y)
Offset the entire overlay by a given x,y value
|
protected void |
recalcBounds() |
protected void |
recalcPath() |
void |
setup(android.graphics.PointF tail,
android.graphics.PointF head)
a line has two points and can have an arrowhead
|
void |
setup(android.graphics.PointF tail,
android.graphics.PointF head,
float tipDeg,
float tipLen) |
void |
setup(android.graphics.PointF tail,
android.graphics.PointF head,
android.graphics.PointF tipOffset) |
getPointsgetBounds, getColor, getFillColor, getFontSize, getIntBounds, getIntBounds, getName, getStrokeStyle, getStrokeWidth, getUID, isFilled, offset, setColor, setDpiScale, setFillColor, setFontSize, setName, setStrokeStyle, setStrokeWidth, withinBounds, withinBoundspublic static final java.lang.String ID
protected static final int TAIL
protected static final int HEAD
protected static final int HEAD_LEFT
protected static final int HEAD_RIGHT
protected android.graphics.Path _path
public ArrowOverlay(PolylineCommand line)
public void setup(android.graphics.PointF tail,
android.graphics.PointF head)
LineOverlaysetup in class LineOverlaypublic void setup(android.graphics.PointF tail,
android.graphics.PointF head,
android.graphics.PointF tipOffset)
public void setup(android.graphics.PointF tail,
android.graphics.PointF head,
float tipDeg,
float tipLen)
protected void recalcBounds()
protected void recalcPath()
public void offset(float x,
float y)
Overlaypublic void draw(android.graphics.Canvas canvas,
android.graphics.Paint paint)
Overlaydraw in class LineOverlaycanvas - Canvas to draw ontopaint - Paint object to use