|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.bebop.util.Color
A class for Bebop color parameters.
private Page buildSomePage() { Page page = new Page("Some Page"); Label label = new Label("Some Text"); // Make the label text green. label.setColor(new Color(0,255,0)); // Here's another way of doing the same thing. label.setColor(Color.green); page.add(label); page.lock(); return page; }
Field Summary | |
static Color |
black
An instance of the color black. |
static Color |
blue
An instance of the color blue. |
static Color |
cyan
An instance of the color cyan. |
static Color |
darkGray
An instance of the color darkGray. |
static Color |
gray
An instance of the color gray. |
static Color |
green
An instance of the color green. |
static Color |
lightGray
An instance of the color lightGray. |
static Color |
magenta
An instance of the color magenta. |
static Color |
nobukoBlue
An instance of the color nobukoBlue, an exotic medium torquoise. |
static Color |
orange
An instance of the color orange. |
static Color |
pink
An instance of the color pink. |
static Color |
red
An instance of the color red. |
static String |
versionId
|
static Color |
white
An instance of the color white. |
static Color |
yellow
An instance of the color yellow. |
Constructor Summary | |
Color(float redValue,
float greenValue,
float blueValue)
Make a color from the constituents red, green, and blue. |
|
Color(int redValue,
int greenValue,
int blueValue)
Make a color from the constituents red, green, and blue. |
Method Summary | |
String |
toHTMLString()
Produce an HTML hex-based representation of this color. |
String |
toString()
Return a string with hex values padded out two places with a leading 0. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String versionId
public static final Color black
public static final Color blue
public static final Color cyan
public static final Color darkGray
public static final Color gray
public static final Color green
public static final Color lightGray
public static final Color magenta
public static final Color orange
public static final Color pink
public static final Color red
public static final Color white
public static final Color yellow
public static final Color nobukoBlue
Constructor Detail |
public Color(int redValue, int greenValue, int blueValue)
public Color(float redValue, float greenValue, float blueValue)
Method Detail |
public String toString()
public String toHTMLString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |