com.googlecode.wickedcharts.highcharts.options.color
Class RadialGradient

java.lang.Object
  extended by com.googlecode.wickedcharts.highcharts.options.color.ColorReference
      extended by com.googlecode.wickedcharts.highcharts.options.color.Gradient
          extended by 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

Constructor Summary
RadialGradient()
           
 
Method Summary
protected  ColorReference copy()
           
 Number getCx()
           
 Number getCy()
           
 Number getR()
           
 com.googlecode.wickedcharts.highcharts.options.color.RadialGradient.RadialGradientCoordinates getRadialGradient()
           
 RadialGradient setCx(Number cx)
          Sets the horizontal coordinate of the center of the gradient.
 RadialGradient setCy(Number cy)
          Sets the vertical coordinate of the center of the gradient.
 RadialGradient setR(Number r)
          Sets the radius (= size) of the gradient.
 
Methods inherited from class com.googlecode.wickedcharts.highcharts.options.color.Gradient
addStop, addStopsInternal, brighten, getStops
 
Methods inherited from class com.googlecode.wickedcharts.highcharts.options.color.ColorReference
getBrightness, isNull, setBrightness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadialGradient

public RadialGradient()
Method Detail

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.