com.googlecode.wickedcharts.highcharts.options.color
Class RadialGradient
java.lang.Object
com.googlecode.wickedcharts.highcharts.options.color.ColorReference
com.googlecode.wickedcharts.highcharts.options.color.Gradient
com.googlecode.wickedcharts.highcharts.options.color.RadialGradient
- All Implemented Interfaces:
- Nullable, Serializable
public class RadialGradient
- extends Gradient
RadialGradient color for chart objects.
- 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 |
RadialGradient
public RadialGradient()
copy
protected ColorReference copy()
- Specified by:
copy in class ColorReference
getCx
public Number getCx()
getCy
public Number getCy()
getR
public Number getR()
getRadialGradient
public com.googlecode.wickedcharts.highcharts.options.color.RadialGradient.RadialGradientCoordinates getRadialGradient()
setCx
public RadialGradient setCx(Number cx)
- Sets the horizontal coordinate of the center of the gradient.
- Parameters:
cx - percentage of the width where to display the center of the
gradient. Must be a value between 0 and 1. 0 = left. 1 = right.
- Returns:
- this
RadialGradient object for chaining.
setCy
public RadialGradient setCy(Number cy)
- Sets the vertical coordinate of the center of the gradient.
- Parameters:
cx - percentage of the heigth where to display the center of the
gradient. Must be a value between 0 and 1. 0 = top. 1 = bottom.
- Returns:
- this
RadialGradient object for chaining.
setR
public RadialGradient setR(Number r)
- Sets the radius (= size) of the gradient.
- Parameters:
r - percentage of the size of the object containing the gradient. Must
be a value between 0 and 1. 0 = small. 1 = spans the whole object.
- Returns:
- this
RadialGradient object for chaining.
Copyright © 2013. All Rights Reserved.