org.wicketstuff.flot
Class Color
java.lang.Object
org.wicketstuff.flot.Color
- All Implemented Interfaces:
- java.io.Serializable
public class Color
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Constructor Summary |
Color(double r,
double g,
double b)
|
Color(int r,
int g,
int b)
|
|
Method Summary |
float |
blue()
|
float |
green()
|
java.lang.String |
html()
|
static Color |
random()
|
float |
red()
|
Color |
scale(float fr,
float fg,
float fb)
Returns a copy of this color the values of which are multiplied with the according factors and cropped to 0..1. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BLACK
public static final Color BLACK
WHITE
public static final Color WHITE
BLUE
public static final Color BLUE
GREEN
public static final Color GREEN
RED
public static final Color RED
Color
public Color(int r,
int g,
int b)
Color
public Color(double r,
double g,
double b)
red
public float red()
green
public float green()
blue
public float blue()
html
public java.lang.String html()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
random
public static Color random()
scale
public Color scale(float fr,
float fg,
float fb)
- Returns a copy of this color the values of which are multiplied with the according factors and cropped to 0..1.
- Parameters:
fr - The factor for red.fg - The factor for green.fb - The factor for blue.
- Returns:
Copyright © 2010. All Rights Reserved.