public class LinearGradient extends BaseOption
Linear color gradients.
ref: https://www.highcharts.com/docs/chart-design-and-style/colors
Modifier and Type | Field and Description |
---|---|
static LinearGradient |
NULL |
Constructor and Description |
---|
LinearGradient() |
LinearGradient(Number x1,
Number x2,
Number y1,
Number y2)
Construct a linear gradient.
|
Modifier and Type | Method and Description |
---|---|
Number |
getX1()
Start horizontal position of the gradient.
|
Number |
getX2()
End horizontal position of the gradient.
|
Number |
getY1()
Start vertical position of the gradient.
|
Number |
getY2()
End vertical position of the gradient.
|
LinearGradient |
setX1(Number x1)
Start horizontal position of the gradient.
|
LinearGradient |
setX2(Number x2)
End horizontal position of the gradient.
|
LinearGradient |
setY1(Number y1)
Start vertical position of the gradient.
|
LinearGradient |
setY2(Number y2)
End vertical position of the gradient.
|
set_hcNulledOption
public static final LinearGradient NULL
public Number getX1()
public LinearGradient setX1(Number x1)
x1
- the value for the x1 optionpublic Number getX2()
public LinearGradient setX2(Number x2)
x2
- the value for the x2 optionpublic Number getY1()
public LinearGradient setY1(Number y1)
y1
- the value for the y1 optionpublic Number getY2()
public LinearGradient setY2(Number y2)
y2
- the value for the y2 optionCopyright © 2023. All rights reserved.