public class NorthOverlay extends ArrowOverlay
Overlay.LineStyle
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
static java.lang.String |
SYMBOL |
_path, HEAD, HEAD_LEFT, HEAD_RIGHT, 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 |
---|
NorthOverlay(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(android.graphics.Paint paint) |
void |
setDpiScale(float scale) |
void |
setFontSize(int size) |
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,
android.graphics.Paint paint) |
recalcBounds, recalcPath, setup, setup
getPoints
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 static final java.lang.String SYMBOL
public NorthOverlay(PolylineCommand line)
public void setup(android.graphics.PointF tail, android.graphics.PointF head, android.graphics.Paint paint)
public void setup(android.graphics.PointF tail, android.graphics.PointF head)
LineOverlay
setup
in class ArrowOverlay
protected void recalcBounds(android.graphics.Paint paint)
public void setFontSize(int size)
setFontSize
in class Overlay
public void setDpiScale(float scale)
setDpiScale
in class Overlay
public void offset(float x, float y)
Overlay
offset
in class ArrowOverlay
x
- X offsety
- Y offsetpublic void draw(android.graphics.Canvas canvas, android.graphics.Paint paint)
Overlay
draw
in class ArrowOverlay
canvas
- Canvas to draw ontopaint
- Paint object to use