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

java.lang.Object
  extended by com.googlecode.wickedcharts.highcharts.options.color.ColorReference
      extended by com.googlecode.wickedcharts.highcharts.options.color.RgbaColor
All Implemented Interfaces:
Nullable, Serializable

public class RgbaColor
extends ColorReference

A ColorReference defined by RGBA values (red, green, blue, alpha).

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

Constructor Summary
RgbaColor(Integer red, Integer green, Integer blue)
          Constructs a RgbaColor with RGB values.
RgbaColor(Integer red, Integer green, Integer blue, Float alpha)
          Constructs a RgbaColor with RGBA values.
 
Method Summary
protected  ColorReference copy()
           
 Float getAlpha()
           
 Integer getBlue()
           
 Integer getGreen()
           
 Integer getRed()
           
 
Methods inherited from class com.googlecode.wickedcharts.highcharts.options.color.ColorReference
brighten, getBrightness, isNull, setBrightness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RgbaColor

public RgbaColor(Integer red,
                 Integer green,
                 Integer blue)
Constructs a RgbaColor with RGB values. The alpha value is considered 1.

Parameters:
red - the red value (0-255)
green - the green value (0-255)
blue - the blue value (0-255)

RgbaColor

public RgbaColor(Integer red,
                 Integer green,
                 Integer blue,
                 Float alpha)
Constructs a RgbaColor with RGBA values.

Parameters:
red - the red value (0-255)
green - the green value (0-255)
blue - the blue value (0-255)
alpha - the alpha value (0-1)
Method Detail

copy

protected ColorReference copy()
Specified by:
copy in class ColorReference

getAlpha

public Float getAlpha()

getBlue

public Integer getBlue()

getGreen

public Integer getGreen()

getRed

public Integer getRed()


Copyright © 2013. All Rights Reserved.