Groovy Documentation

griffon.swing.formatters
[Java] Class ColorFormatter

java.lang.Object
  griffon.core.resources.formatters.AbstractFormatter
      griffon.swing.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
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

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

format

public String format(Color color)


getInstance

public static ColorFormatter getInstance(String pattern)


parse

public Color parse(String str)


parseColor

public static Color parseColor(String str)


 

Groovy Documentation