Lines Matching defs:ColorType
30 * Each <code>SynthStyle</code> has a set of <code>ColorType</code>s that
32 * {@link SynthStyle#getColor(SynthContext, ColorType)} method.
51 * protected Color getColorForState(SynthContext context, ColorType type){
63 public class ColorType {
65 * ColorType for the foreground of a region.
67 public static final ColorType FOREGROUND = new ColorType("Foreground");
70 * ColorType for the background of a region.
72 public static final ColorType BACKGROUND = new ColorType("Background");
75 * ColorType for the foreground of a region.
77 public static final ColorType TEXT_FOREGROUND = new ColorType(
81 * ColorType for the background of a region.
83 public static final ColorType TEXT_BACKGROUND =new ColorType(
87 * ColorType for the focus.
89 public static final ColorType FOCUS = new ColorType("Focus");
92 * Maximum number of <code>ColorType</code>s.
107 * Creates a new ColorType with the specified description.
109 * @param description String description of the ColorType.
111 protected ColorType(String description) {
114 "ColorType must have a valid description");
117 synchronized(ColorType.class) {
123 * Returns a unique id, as an integer, for this ColorType.
125 * @return a unique id, as an integer, for this ColorType.
132 * Returns the textual description of this <code>ColorType</code>.
133 * This is the same value that the <code>ColorType</code> was created