public class RadialGradientBrushStyle extends BrushStyle
Modifier and Type | Field and Description |
---|---|
float |
centerX |
float |
centerY |
int[] |
colors |
float |
radiusX |
float |
radiusY |
float[] |
stops |
Constructor and Description |
---|
RadialGradientBrushStyle(float centerX,
float centerY,
float radiusX,
float radiusY,
int[] colors,
float[] stops)
Creates a new instance of
RadialGradientBrushStyle |
RadialGradientBrushStyle(float centerX,
float centerY,
float radiusX,
float radiusY,
int centerColor,
int edgeColor)
Creates a new instance of
RadialGradientBrushStyle |
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 final float centerX
public final float centerY
public final float radiusX
public final float radiusY
public final int[] colors
public final float[] stops
public RadialGradientBrushStyle(float centerX, float centerY, float radiusX, float radiusY, int[] colors, float[] stops)
RadialGradientBrushStyle
centerX
- The x-coordinate of the gradient's centercenterY
- The y-coordinate of the gradient's centerradiusX
- The x radius of the gradientradiusY
- The y radium of the gradientcolors
- The array with gradient colorsstops
- The array with gradient stopspublic RadialGradientBrushStyle(float centerX, float centerY, float radiusX, float radiusY, int centerColor, int edgeColor)
RadialGradientBrushStyle
centerX
- The x-coordinate of the gradient's centercenterY
- The y-coordinate of the gradient's centerradiusX
- The x radius of the gradientradiusY
- The y radium of the gradientcenterColor
- The center color of the gradientedgeColor
- The edge color of the gradientpublic 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