DXLinearGradientBrush Class
A linear gradient brush.
Declaration
public class DXLinearGradientBrush extends DXTilingBrush
Inherited Members
Inheritance
Constructors
DXLinearGradientBrush(PointF startPoint, PointF endPoint, Color color1, Color color2) Constructor
Initializes a new instance of the DXLinearGradientBrush class with specified settings.
Declaration
public DXLinearGradientBrush(PointF startPoint, PointF endPoint, Color color1, Color color2)
Parameters
| Name | Type | Description |
|---|---|---|
| startPoint | com.devexpress.system.drawing.PointF | The gradient start point. |
| endPoint | com.devexpress.system.drawing.PointF | The gradient end point. |
| color1 | Color | The start color. |
| color2 | Color | The end color. |
DXLinearGradientBrush(RectangleF rectangle, Color color1, Color color2, DXLinearGradientMode linearGradientMode) Constructor
Initializes a new instance of the DXLinearGradientBrush class with specified settings.
Declaration
public DXLinearGradientBrush(RectangleF rectangle, Color color1, Color color2, DXLinearGradientMode linearGradientMode)
Parameters
| Name | Type | Description |
|---|---|---|
| rectangle | RectangleF | The gradient rectangle. |
| color1 | Color | The start color. |
| color2 | Color | The end color. |
| linearGradientMode | DXLinearGradientMode | The linear gradient mode. |
DXLinearGradientBrush(RectangleF rectangle, Color color1, Color color2, float angle, boolean isAngleScalable) Constructor
Initializes a new instance of the DXLinearGradientBrush class with specified settings.
Declaration
public DXLinearGradientBrush(RectangleF rectangle, Color color1, Color color2, float angle, boolean isAngleScalable)
Parameters
| Name | Type | Description |
|---|---|---|
| rectangle | RectangleF | The gradient rectangle. |
| color1 | Color | The start color. |
| color2 | Color | The end color. |
| angle | float | The gradient angle. |
| isAngleScalable | boolean |
|
DXLinearGradientBrush(RectangleF rectangle, Color color1, Color color2, float angle) Constructor
Initializes a new instance of the DXLinearGradientBrush class with specified settings.
Declaration
public DXLinearGradientBrush(RectangleF rectangle, Color color1, Color color2, float angle)
Parameters
| Name | Type | Description |
|---|---|---|
| rectangle | RectangleF | The gradient rectangle. |
| color1 | Color | The start color. |
| color2 | Color | The end color. |
| angle | float | The gradient angle. |
DXLinearGradientBrush(RectangleF rectangle, Color color1, Color color2) Constructor
Initializes a new instance of the DXLinearGradientBrush class with specified settings.
Declaration
public DXLinearGradientBrush(RectangleF rectangle, Color color1, Color color2)
Parameters
| Name | Type | Description |
|---|---|---|
| rectangle | RectangleF | The gradient rectangle. |
| color1 | Color | The start color. |
| color2 | Color | The end color. |
Methods
clone() Method
Creates a copy of this linear gradient brush.
Declaration
public DXBrush clone()
Returns
| Type | Description |
|---|---|
| DXBrush | The cloned |
equals(Object obj) Method
Checks whether this linear gradient brush equals the specified linear gradient brush.
Declaration
public boolean equals(Object obj)
Parameters
| Name | Type | Description |
|---|---|---|
| obj | Object | The linear gradient brush to compare. |
Returns
| Type | Description |
|---|---|
| boolean |
|
getBlend() Method
Returns the blend.
Declaration
public DXBlend getBlend()
Returns
| Type | Description |
|---|---|
| DXBlend | The |
getInterpolationColors() Method
Returns interpolation colors.
Declaration
public DXColorBlend getInterpolationColors()
Returns
| Type | Description |
|---|---|
| DXColorBlend | The |
getLinearColors() Method
Returns linear colors.
Declaration
public Color[] getLinearColors()
Returns
| Type | Description |
|---|---|
| com.devexpress.system.drawing.Color[] | Linear colors. |
getRectangle() Method
Returns the gradient rectangle.
Declaration
public RectangleF getRectangle()
Returns
| Type | Description |
|---|---|
| RectangleF | The gradient rectangle. |
hashCode() Method
Returns a hash code value for this object.
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |
setBlend(DXBlend value) Method
Specifies the blend.
Declaration
public void setBlend(DXBlend value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | DXBlend | The blend. |
setBlendTriangularShape(float focus, float scale) Method
Specifies a triangular blend shape.
Declaration
public void setBlendTriangularShape(float focus, float scale)
Parameters
| Name | Type | Description |
|---|---|---|
| focus | float | The blend focus. |
| scale | float | The blend scale. |
setBlendTriangularShape(float focus) Method
Specifies a triangular blend shape.
Declaration
public void setBlendTriangularShape(float focus)
Parameters
| Name | Type | Description |
|---|---|---|
| focus | float | The blend focus. |
setInterpolationColors(DXColorBlend value) Method
Specifies interpolation colors.
Declaration
public void setInterpolationColors(DXColorBlend value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | DXColorBlend | Interpolation colors. |
setLinearColors(Color[] value) Method
Specifies linear colors.
Declaration
public void setLinearColors(Color[] value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | com.devexpress.system.drawing.Color[] | Linear colors. |
setRectangle(RectangleF value) Method
Specifies the gradient rectangle.
Declaration
public void setRectangle(RectangleF value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | RectangleF | The gradient rectangle. |