com.googlecode.wickedcharts.highcharts.options.color
Class LinearGradient
java.lang.Object
com.googlecode.wickedcharts.highcharts.options.color.ColorReference
com.googlecode.wickedcharts.highcharts.options.color.Gradient
com.googlecode.wickedcharts.highcharts.options.color.LinearGradient
- All Implemented Interfaces:
- Nullable, Serializable
public class LinearGradient
- extends Gradient
A ColorReference defining a linear gradient with one or more changes
between colors.
- Author:
- Tom Hombergs (tom.hombergs@gmail.com)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearGradient
public LinearGradient(LinearGradient.GradientDirection direction)
- Constructs a linear gradient with a predefined direction.
- Parameters:
direction - the direction of the gradient.
LinearGradient
public LinearGradient(Number x1,
Number y1,
Number x2,
Number y2)
- Constructs a linear gradient with a custom direction. The direction is
defined by a starting and ending point.
- Parameters:
x1 - x-axis percentage of the starting point of the gradient. Must be a
value between 0 and 1.y1 - y-axis percentage of the starting point of the gradient. Must be a
value between 0 and 1.x2 - x-axis percentage of the ending point of the gradient. Must be a
value between 0 and 1.y2 - y-axis percentage of the ending point of the gradient. Must be a
value between 0 and 1.
copy
protected ColorReference copy()
- Specified by:
copy in class ColorReference
getLinearGradient
public List<Number> getLinearGradient()
Copyright © 2013. All Rights Reserved.