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

java.lang.Object
  extended by com.googlecode.wickedcharts.highcharts.options.color.ColorReference
      extended by com.googlecode.wickedcharts.highcharts.options.color.Gradient
All Implemented Interfaces:
Nullable, Serializable
Direct Known Subclasses:
LinearGradient, RadialGradient

public abstract class Gradient
extends ColorReference

Abstract parent class for Gradient ColorReferences.

Author:
Tom Hombergs (tom.hombergs@gmail.com)
See Also:
Serialized Form

Constructor Summary
Gradient()
           
 
Method Summary
 Gradient addStop(Number percentage, ColorReference color)
           
protected  Gradient addStopsInternal(List<List<Object>> stops)
           
 ColorReference brighten(Float brightness)
          Brightens this color by the amount given.
 List<List<Object>> getStops()
           
 
Methods inherited from class com.googlecode.wickedcharts.highcharts.options.color.ColorReference
copy, getBrightness, isNull, setBrightness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gradient

public Gradient()
Method Detail

addStop

public Gradient addStop(Number percentage,
                        ColorReference color)

addStopsInternal

protected Gradient addStopsInternal(List<List<Object>> stops)

brighten

public ColorReference brighten(Float brightness)
Description copied from class: ColorReference
Brightens this color by the amount given. Returns a copy of this color object not this object itself.

Overrides:
brighten in class ColorReference
Parameters:
brightness - the amount to brighten (between 0 and 1).
Returns:
a copy of this color object, brightened by the given amount.

getStops

public List<List<Object>> getStops()


Copyright © 2013. All Rights Reserved.