public class HatchBrush extends Brush
Constructor and Description |
---|
HatchBrush()
Initializes a new
HatchBrush instance. |
HatchBrush(HatchBrush prototype)
Initializes a new
HatchBrush instance. |
HatchBrush(HatchStyle hatchStyle,
Color foregroundColor,
Color backgroundColor)
Initializes a new
HatchBrush instance. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this brush.
|
android.graphics.Paint |
createPaint(android.graphics.RectF bounds)
Brush.createPaint override.
|
Color |
getBackgroundColor()
Gets the color of spaces between the hatch lines drawn by this brush.
|
Color |
getForegroundColor()
Gets the color of hatch lines drawn by this brush.
|
HatchStyle |
getHatchStyle()
Gets the hatch style of this brush.
|
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable.
|
void |
setBackgroundColor(Color value)
Sets the color of spaces between the hatch lines drawn by this brush.
|
void |
setForegroundColor(Color value)
Sets the color of hatch lines drawn by this brush.
|
void |
setHatchStyle(HatchStyle value)
Sets the hatch style of this brush.
|
static void |
updateShaderScale(GraphicsUnit unit,
float zoom) |
void |
writeExternal(java.io.ObjectOutput out)
Implements Externalizable.
|
public HatchBrush(HatchStyle hatchStyle, Color foregroundColor, Color backgroundColor)
HatchBrush
instance.public HatchBrush()
HatchBrush
instance.public HatchBrush(HatchBrush prototype)
HatchBrush
instance.public java.lang.Object clone()
public Color getBackgroundColor()
Color
instance specifying the hatch background color.public void setBackgroundColor(Color value)
value
- A Color
instance specifying the hatch background color.public Color getForegroundColor()
Color
instance specifying the hatch foreground color.public void setForegroundColor(Color value)
value
- A Color
instance specifying the hatch foreground color.public HatchStyle getHatchStyle()
HatchStyle
enumeration.public void setHatchStyle(HatchStyle value)
value
- A member of the HatchStyle
enumeration.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 android.graphics.Paint createPaint(android.graphics.RectF bounds)
createPaint
in class Brush
bounds
- The bounds of the area where this brush will be applied.public static void updateShaderScale(GraphicsUnit unit, float zoom)