public class SolidBrushStyle extends BrushStyle
Modifier and Type | Field and Description |
---|---|
int |
color |
Constructor and Description |
---|
SolidBrushStyle(int color)
Creates a new
SolidBrushStyle instance |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getColor()
Gets the color for this PenStyle
|
int |
hashCode() |
void |
initPaint(android.graphics.Paint paint,
int x,
int y,
int width,
int height)
Init a Paint instance with values provided by this brush style
|
boolean |
isVisible()
Gets whether this style is visible
|
public SolidBrushStyle(int color)
SolidBrushStyle
instancecolor
- The fill color for this brush stylepublic boolean isVisible()
public int getColor()
getColor
in class BrushStyle
public void initPaint(android.graphics.Paint paint, int x, int y, int width, int height)
initPaint
in class BrushStyle
paint
- The Paint to initx
- The X coordinates of area where Paint will be drawny
- The Y coordinates of area where Paint will be drawnwidth
- The width of area where Paint will be drawnheight
- The height of area where Paint will be drawnpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object