|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jbudget.util.ColorParser
public class ColorParser
A class that contains functions for saving Colors as strings and creating Color objects from strings.
| Field Summary | |
|---|---|
private static java.util.regex.Pattern |
colorPattern
A regular expression pattern that is used for parsing the colors |
| Constructor Summary | |
|---|---|
private |
ColorParser()
No need for any instances. |
| Method Summary | |
|---|---|
static java.lang.String |
colorToString(java.awt.Color color)
Creates a string representation of a color. |
static java.awt.Color |
parse(java.lang.String string)
Parses the string and returns a color object that is represented by the string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.util.regex.Pattern colorPattern
| Constructor Detail |
|---|
private ColorParser()
| Method Detail |
|---|
public static java.lang.String colorToString(java.awt.Color color)
public static java.awt.Color parse(java.lang.String string)
java.lang.IllegalArgumentException - if the string can not be parsed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||