01: /*
02: * @(#) ColorConverter.java
03: *
04: * Copyright 2002 - 2003 JIDE Software. All rights reserved.
05: */
06: package com.jidesoft.converter;
07:
08: /**
09: * Converter which converts Color to String and converts it back.
10: */
11: abstract public class ColorConverter implements ObjectConverter {
12:
13: /**
14: * ConverterContext for color to convert to RGB string.
15: */
16: public static ConverterContext CONTEXT_RGB = ConverterContext.DEFAULT_CONTEXT;
17:
18: /**
19: * ConverterContext for color to convert to HEX string.
20: */
21: public static ConverterContext CONTEXT_HEX = new ConverterContext(
22: "Color.Hex");
23:
24: /**
25: * Create a default color contverter.
26: */
27: public ColorConverter() {
28: }
29: }
|