public class SolidBrush extends Brush
| Constructor and Description |
|---|
SolidBrush()
Initializes a new SolidBrush instance.
|
SolidBrush(Color color)
Initializes a new SolidBrush instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Create a copy of this brush.
|
android.graphics.Paint |
createPaint(android.graphics.RectF bounds)
Creates android.graphics.Paint object corresponding to this brush.
|
Color |
getColor()
Gets the color that fills the interior of objects painted with this brush.
|
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable.
|
void |
setColor(Color value)
Sets the color that fills the interior of objects painted with this brush.
|
void |
writeExternal(java.io.ObjectOutput out)
Implements Externalizable.
|
public SolidBrush(Color color)
color - A Color object representing the brush color.public SolidBrush()
public java.lang.Object clone()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
java.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic Color getColor()
Color object representing the brush color.public void setColor(Color value)
value - The new brush color.public android.graphics.Paint createPaint(android.graphics.RectF bounds)
BrushcreatePaint in class Brushbounds - The bounds of the area where this brush will be applied.