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.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public 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)
Brush
createPaint
in class Brush
bounds
- The bounds of the area where this brush will be applied.