public class DotSpan
extends java.lang.Object
implements android.text.style.LineBackgroundSpan
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_RADIUS
Default radius used
|
Constructor and Description |
---|
DotSpan()
Create a span to draw a dot using default radius and color
|
DotSpan(float radius)
Create a span to draw a dot using a specified radius
|
DotSpan(float radius,
int color)
Create a span to draw a dot using a specified radius and color
|
DotSpan(int color)
Create a span to draw a dot using a specified color
|
Modifier and Type | Method and Description |
---|---|
void |
drawBackground(android.graphics.Canvas canvas,
android.graphics.Paint paint,
int left,
int right,
int top,
int baseline,
int bottom,
java.lang.CharSequence charSequence,
int start,
int end,
int lineNum) |
public static final float DEFAULT_RADIUS
public DotSpan()
DotSpan(float, int)
,
DEFAULT_RADIUS
public DotSpan(int color)
color
- color of the dotDotSpan(float, int)
,
DEFAULT_RADIUS
public DotSpan(float radius)
radius
- radius for the dotDotSpan(float, int)
public DotSpan(float radius, int color)
radius
- radius for the dotcolor
- color of the dotpublic void drawBackground(android.graphics.Canvas canvas, android.graphics.Paint paint, int left, int right, int top, int baseline, int bottom, java.lang.CharSequence charSequence, int start, int end, int lineNum)
drawBackground
in interface android.text.style.LineBackgroundSpan