public class TextureBrushStyle extends BrushStyle
Modifier and Type | Field and Description |
---|---|
android.graphics.Bitmap |
texture |
Constructor and Description |
---|
TextureBrushStyle(android.graphics.Bitmap texture)
Creates a new
TextureBrushStyle 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 TextureBrushStyle(android.graphics.Bitmap texture)
TextureBrushStyle
instancetexture
- The bitmap with texturepublic 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