01: /*
02: * Created on May 16, 2006
03: */
04: package uk.org.ponder.rsf.components.decorators;
05:
06: import java.awt.Color;
07:
08: /** Alters the foreground and background rendering colours of the decorated
09: * component. Unless these are "computed" colours (i.e. those not drawn from
10: * a fixed subset), it would be preferable to define these in template-side
11: * style sheets or other client-side definitions.
12: * </p>A <code>null</code> value for either <code>foreground</code> or
13: * <code>background</code> indicates that any existing client definition for
14: * the colour will be left unchanged.
15: * @author Antranig Basman (antranig@caret.cam.ac.uk)
16: *
17: */
18:
19: public class UIColourDecorator implements UIDecorator {
20: public Color foreground;
21: public Color background;
22:
23: public UIColourDecorator(Color foreground, Color background) {
24: this .foreground = foreground;
25: this .background = background;
26: }
27:
28: public UIColourDecorator() {
29: }
30: }
|