|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infoglue.deliver.util.graphics.ColorHelper
public class ColorHelper
This class is an attempt to give template-coders access to the Color-class in some ways. Basically used to enable good control in the templates.
| Constructor Summary | |
|---|---|
ColorHelper()
|
|
| Method Summary | |
|---|---|
java.awt.Color |
getColor(int r,
int g,
int b)
Used to get a color-object |
static java.awt.Color |
getColor(java.lang.String colonSeparatedRGBA)
Creates a Color object from a comma separated string like "12:34:6:154" values 0-255 and in order R,G,B,A |
static java.awt.Color |
getColor(java.lang.String separatedRGBA,
java.lang.String delimiter)
Creates a Color object from a separated string like "12-34-6-154" values 0-255 and in order R,G,B,A |
java.awt.Color |
getHexColor(java.lang.String hexadecimalValue)
Used to create a new color-object by hex-values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorHelper()
| Method Detail |
|---|
public java.awt.Color getColor(int r,
int g,
int b)
public java.awt.Color getHexColor(java.lang.String hexadecimalValue)
public static java.awt.Color getColor(java.lang.String colonSeparatedRGBA)
colonSeparatedRGBA - a string
public static java.awt.Color getColor(java.lang.String separatedRGBA,
java.lang.String delimiter)
separatedRGBA - a stringdelimiter - a delimiter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||