Class RadialGradientBrushStyle
Defines brush style which allows to fill shapes with radial gradient
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class RadialGradientBrushStyle extends BrushStyle
Constructors
RadialGradientBrushStyle(float centerX, float centerY, float radiusX, float radiusY, int centerColor, int edgeColor)
Creates a new instance of RadialGradientBrushStyle
Declaration
public RadialGradientBrushStyle(float centerX, float centerY, float radiusX, float radiusY, int centerColor, int edgeColor)
Parameters
Type | Name | Description |
---|---|---|
float | centerX | The x-coordinate of the gradient's center |
float | centerY | The y-coordinate of the gradient's center |
float | radiusX | The x radius of the gradient |
float | radiusY | The y radium of the gradient |
int | centerColor | The center color of the gradient |
int | edgeColor | The edge color of the gradient |
RadialGradientBrushStyle(float centerX, float centerY, float radiusX, float radiusY, int[] colors, float[] stops)
Creates a new instance of RadialGradientBrushStyle
Declaration
public RadialGradientBrushStyle(float centerX, float centerY, float radiusX, float radiusY, int[] colors, float[] stops)
Parameters
Type | Name | Description |
---|---|---|
float | centerX | The x-coordinate of the gradient's center |
float | centerY | The y-coordinate of the gradient's center |
float | radiusX | The x radius of the gradient |
float | radiusY | The y radium of the gradient |
int[] | colors | The array with gradient colors |
float[] | stops | The array with gradient stops |
Fields
centerX
Declaration
public final float centerX
Field Value
Type | Description |
---|---|
float |
centerY
Declaration
public final float centerY
Field Value
Type | Description |
---|---|
float |
colors
Declaration
public final int[] colors
Field Value
Type | Description |
---|---|
int[] |
radiusX
Declaration
public final float radiusX
Field Value
Type | Description |
---|---|
float |
radiusY
Declaration
public final float radiusY
Field Value
Type | Description |
---|---|
float |
stops
Declaration
public final float[] stops
Field Value
Type | Description |
---|---|
float[] |
Methods
equals(Object o)
Declaration
public boolean equals(Object o)
Parameters
Type | Name | Description |
---|---|---|
Object | o |
Returns
Type | Description |
---|---|
boolean |
Overrides
getColor()
Gets the color for this PenStyle
Declaration
public int getColor()
Returns
Type | Description |
---|---|
int |
Overrides
hashCode()
Declaration
public int hashCode()
Returns
Type | Description |
---|---|
int |
Overrides
initPaint(Paint paint, float opacity, int x, int y, int width, int height)
Init a Paint instance with values provided by this brush style
Declaration
public void initPaint(Paint paint, float opacity, int x, int y, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.Paint | paint | |
float | opacity | |
int | x | |
int | y | |
int | width | |
int | height |
Overrides
isVisible()
Gets whether this style is visible
Declaration
public boolean isVisible()
Returns
Type | Description |
---|---|
boolean |