1 package fr.ove.openmath.jome.ctrlview.bidim;
2
3 import java.awt.Color;
4
5 /***
6 * Interface that must implement all objects that want to be colored.
7 *
8 * @author © 1999 DIRAT Laurent
9 * @version 2.0 29/06/1999
10 */
11 public interface Colorizable {
12 /***
13 * Sets the foreground color of the instance.
14 * @param foregroundColor the new color.
15 */
16 public void setForegroundColor(Color foregroundColor);
17
18 /***
19 * Returns the foreground color of the instance.
20 */
21 public Color getForegroundColor();
22
23 /***
24 * Sets the background color of the instance.
25 * @param backgroundColor the new color.
26 */
27 public void setBackgroundColor(Color backgroundColor);
28
29 /***
30 * Returns the background color of the instance.
31 */
32 public Color getBackgroundColor();
33
34 /***
35 * Sets the selection color of the instance.
36 * @param selectionColor the new color.
37 */
38 public void setSelectionColor(Color selectionColor);
39
40 /***
41 * Returns the selection color of the instance.
42 */
43 public Color getSelectionColor();
44 }