Groovy Documentation

griffon.javafx.formatters
[Java] Class ColorFormatter

java.lang.Object
  griffon.core.resources.formatters.AbstractFormatter
      griffon.javafx.formatters.ColorFormatter

public class ColorFormatter
extends AbstractFormatter

Authors:
Andres Almiray
Since:
1.3.0


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

DEFAULT_PATTERN

public static final String DEFAULT_PATTERN


LONG

public static final ColorFormatter LONG


LONG_WITH_ALPHA

public static final ColorFormatter LONG_WITH_ALPHA


PATTERNS

private static final String[] PATTERNS


PATTERN_LONG

public static final String PATTERN_LONG


PATTERN_LONG_WITH_ALPHA

public static final String PATTERN_LONG_WITH_ALPHA


PATTERN_SHORT

public static final String PATTERN_SHORT


PATTERN_SHORT_WITH_ALPHA

public static final String PATTERN_SHORT_WITH_ALPHA


SHORT

public static final ColorFormatter SHORT


SHORT_WITH_ALPHA

public static final ColorFormatter SHORT_WITH_ALPHA


delegate

private final ColorFormatter.ColorFormatterDelegate delegate


 
Constructor Detail

ColorFormatter

public ColorFormatter()


ColorFormatter

protected ColorFormatter(String pattern)


 
Method Detail

alpha

private static int alpha(javafx.scene.paint.Color color)


blue

private static int blue(javafx.scene.paint.Color color)


format

public String format(javafx.scene.paint.Color color)


getInstance

public static ColorFormatter getInstance(String pattern)


green

private static int green(javafx.scene.paint.Color color)


parse

public javafx.scene.paint.Color parse(String str)


parseColor

public static javafx.scene.paint.Color parseColor(String str)


red

private static int red(javafx.scene.paint.Color color)


toIntColor

private static int toIntColor(double c)


 

Groovy Documentation