|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgriffon.core.resources.formatters.AbstractFormatter
griffon.javafx.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 | |
|---|---|
private static int
|
alpha(javafx.scene.paint.Color color)
|
private static int
|
blue(javafx.scene.paint.Color color)
|
String
|
format(javafx.scene.paint.Color color)
|
static ColorFormatter
|
getInstance(String pattern)
|
private static int
|
green(javafx.scene.paint.Color color)
|
javafx.scene.paint.Color
|
parse(String str)
|
static javafx.scene.paint.Color
|
parseColor(String str)
|
private static int
|
red(javafx.scene.paint.Color color)
|
private static int
|
toIntColor(double c)
|
| Methods inherited from class AbstractFormatter | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, parse, format |
| 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 |
|---|
private static int alpha(javafx.scene.paint.Color color)
private static int blue(javafx.scene.paint.Color color)
public String format(javafx.scene.paint.Color color)
public static ColorFormatter getInstance(String pattern)
private static int green(javafx.scene.paint.Color color)
public javafx.scene.paint.Color parse(String str)
public static javafx.scene.paint.Color parseColor(String str)
private static int red(javafx.scene.paint.Color color)
private static int toIntColor(double c)
Groovy Documentation