|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.awt.Color2StringConverter
public final class Color2StringConverter
Utility methods that convert a color to its string representation and vice versa. The string representation consists of a colon-separated list of RGB and alpha (transparency) values.
| Field Summary | |
|---|---|
static java.lang.String |
SEPARATOR
Color value separator |
| Method Summary | |
|---|---|
static void |
addPredefinedColor(java.lang.String name,
java.awt.Color color)
Adds a predefined color. |
static java.lang.String |
color2Str(java.awt.Color color)
Converts a color to its string representation. |
static java.awt.Color |
str2Color(java.lang.String s)
Converts a string representation to a color. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SEPARATOR
| Method Detail |
|---|
public static void addPredefinedColor(java.lang.String name,
java.awt.Color color)
name - Name of the colorcolor - Color valuepublic static java.lang.String color2Str(java.awt.Color color)
color - Color or null
public static java.awt.Color str2Color(java.lang.String s)
s - String representation or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||