public class EllipseOverlay extends Overlay
Overlay.LineStyle
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
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 |
---|
EllipseOverlay(EllipseCommand ellipse) |
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
|
android.graphics.PointF[] |
getPoints()
Get all points that control this overlay
|
void |
setup(android.graphics.PointF center,
float xRad,
float yRad) |
void |
setup(android.graphics.PointF center,
android.graphics.PointF xRad,
android.graphics.PointF yRad)
An ellipse has a center point and 2 radius points
|
getBounds, getColor, getFillColor, getFontSize, getIntBounds, getIntBounds, getName, getStrokeStyle, getStrokeWidth, getUID, isFilled, offset, offset, setColor, setDpiScale, setFillColor, setFontSize, setName, setStrokeStyle, setStrokeWidth, withinBounds, withinBounds
public static final java.lang.String ID
public EllipseOverlay(EllipseCommand ellipse)
public void setup(android.graphics.PointF center, android.graphics.PointF xRad, android.graphics.PointF yRad)
center
- Center pointxRad
- X-aligned radius pointyRad
- Y-aligned radius pointpublic void setup(android.graphics.PointF center, float xRad, float yRad)
public android.graphics.PointF[] getPoints()
Overlay
public void draw(android.graphics.Canvas canvas, android.graphics.Paint paint)
Overlay