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 |
_p
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 |
---|
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) |
getPoints
getBounds, getColor, getFillColor, getFontSize, getIntBounds, getIntBounds, getName, getStrokeStyle, getStrokeWidth, getUID, isFilled, offset, setColor, setDpiScale, setFillColor, setFontSize, setName, setStrokeStyle, setStrokeWidth, withinBounds, withinBounds
public 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)
LineOverlay
setup
in class LineOverlay
public 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)
Overlay
public void draw(android.graphics.Canvas canvas, android.graphics.Paint paint)
Overlay
draw
in class LineOverlay
canvas
- Canvas to draw ontopaint
- Paint object to use