LinearGradientBrush
Contents
[
Hide
]
Inheritance: java.lang.Object, com.groupdocs.signature.domain.extensions.Brush
public class LinearGradientBrush extends Brush
Represents linear gradient brush.
Constructors
Constructor | Description |
---|---|
LinearGradientBrush() | Initializes a new instance of the LinearGradientBrush class with default values. |
LinearGradientBrush(Color startColor, Color endColor, float angle) | Initializes a new instance of the LinearGradientBrush class. |
LinearGradientBrush(String startColor, String endColor, float angle) | Initializes a new instance of the LinearGradientBrush class. |
Methods
Method | Description |
---|---|
getStartColor() | Gets or sets start gradient color. |
setStartColor(Color value) | Gets or sets start gradient color. |
setStartColor(String value) | Gets or sets start gradient color. |
getEndColor() | Gets or sets finish gradient color. |
setEndColor(Color value) | Gets or sets finish gradient color. |
setEndColor(String value) | Gets or sets finish gradient color. |
getAngle() | Gets or sets gradient angle. |
setAngle(float value) | Gets or sets gradient angle. |
LinearGradientBrush()
public LinearGradientBrush()
Initializes a new instance of the LinearGradientBrush class with default values.
LinearGradientBrush(Color startColor, Color endColor, float angle)
public LinearGradientBrush(Color startColor, Color endColor, float angle)
Initializes a new instance of the LinearGradientBrush class.
Parameters:
Parameter | Type | Description |
---|---|---|
startColor | java.awt.Color | Start color. |
endColor | java.awt.Color | End color. |
angle | float | Angle. Default value is 0. |
LinearGradientBrush(String startColor, String endColor, float angle)
public LinearGradientBrush(String startColor, String endColor, float angle)
Initializes a new instance of the LinearGradientBrush class.
Parameters:
Parameter | Type | Description |
---|---|---|
startColor | java.lang.String | Start color. |
endColor | java.lang.String | End color. |
angle | float | Angle. Default value is 0. |
getStartColor()
public final Color getStartColor()
Gets or sets start gradient color.
Returns: java.awt.Color
setStartColor(Color value)
public final void setStartColor(Color value)
Gets or sets start gradient color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color |
setStartColor(String value)
public final void setStartColor(String value)
Gets or sets start gradient color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getEndColor()
public final Color getEndColor()
Gets or sets finish gradient color.
Returns: java.awt.Color
setEndColor(Color value)
public final void setEndColor(Color value)
Gets or sets finish gradient color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color |
setEndColor(String value)
public final void setEndColor(String value)
Gets or sets finish gradient color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getAngle()
public final float getAngle()
Gets or sets gradient angle.
Returns: float
setAngle(float value)
public final void setAngle(float value)
Gets or sets gradient angle.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |