|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgriffon.core.resources.formatters.AbstractFormatter
griffon.swing.formatters.ColorFormatter
public class ColorFormatter extends AbstractFormatter
| Nested Class Summary | |
|---|---|
private static class |
ColorFormatter.AbstractColorFormatterDelegate
|
private static interface |
ColorFormatter.ColorFormatterDelegate
|
private static class |
ColorFormatter.LongColorFormatterDelegate
|
private static class |
ColorFormatter.LongWithAlphaColorFormatterDelegate
|
private static class |
ColorFormatter.ShortColorFormatterDelegate
|
private static class |
ColorFormatter.ShortWithAlphaColorFormatterDelegate
|
| Field Summary | |
|---|---|
static String |
DEFAULT_PATTERN
|
static ColorFormatter |
LONG
|
static ColorFormatter |
LONG_WITH_ALPHA
|
private static String[] |
PATTERNS
|
static String |
PATTERN_LONG
|
static String |
PATTERN_LONG_WITH_ALPHA
|
static String |
PATTERN_SHORT
|
static String |
PATTERN_SHORT_WITH_ALPHA
|
static ColorFormatter |
SHORT
|
static ColorFormatter |
SHORT_WITH_ALPHA
|
private ColorFormatter.ColorFormatterDelegate |
delegate
|
| Constructor Summary | |
ColorFormatter()
|
|
protected ColorFormatter(String pattern)
|
|
| Method Summary | |
|---|---|
String
|
format(Color color)
|
static ColorFormatter
|
getInstance(String pattern)
|
Color
|
parse(String str)
|
static Color
|
parseColor(String str)
|
| Methods inherited from class AbstractFormatter | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, format, parse |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
public static final String DEFAULT_PATTERN
public static final ColorFormatter LONG
public static final ColorFormatter LONG_WITH_ALPHA
private static final String[] PATTERNS
public static final String PATTERN_LONG
public static final String PATTERN_LONG_WITH_ALPHA
public static final String PATTERN_SHORT
public static final String PATTERN_SHORT_WITH_ALPHA
public static final ColorFormatter SHORT
public static final ColorFormatter SHORT_WITH_ALPHA
private final ColorFormatter.ColorFormatterDelegate delegate
| Constructor Detail |
|---|
public ColorFormatter()
protected ColorFormatter(String pattern)
| Method Detail |
|---|
public String format(Color color)
public static ColorFormatter getInstance(String pattern)
public Color parse(String str)
public static Color parseColor(String str)
Groovy Documentation