com.googlecode.wickedcharts.highcharts.options.color
Class RgbaColor
java.lang.Object
com.googlecode.wickedcharts.highcharts.options.color.ColorReference
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.