1
2
3
4
5
6
7
8
9
10 package nl.tudelft.dsol.introspection.beans;
11
12 import java.awt.Color;
13 import java.awt.Font;
14
15 /***
16 * Test bean for testing introspection of simple and composite color and font
17 * properties.
18 * <p>
19 * (c) copyright 2003-2004 <a href="http://www.simulation.tudelft.nl">Delft
20 * University of Technology </a>, the Netherlands. <br>
21 * See for project information <a
22 * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
23 * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
24 * License (GPL) </a>, no warranty <br>
25 *
26 * @author <a
27 * href="http://web.eur.nl/fbk/dep/dep1/Introduction/Staff/People/Lang">Niels
28 * Lang </a><a
29 * href="http://www.tbm.tudelft.nl/webstaf/peterja/index.htm">Peter
30 * Jacobs </a>
31 * @version 1.1 Apr 15, 2004
32 * @since 1.4
33 */
34 public class GUIBean
35 {
36 /*** the color to use */
37 private Color color = Color.YELLOW;
38
39 /*** the font to use */
40 private Font font = new Font("Arial", Font.BOLD, 11);
41
42 /*** the colorSet */
43 private Color[] colorSet = new Color[]{Color.BLACK, Color.BLUE};
44
45 /***
46 * @return the Color
47 */
48 public Color getColor()
49 {
50 return this.color;
51 }
52
53 /***
54 * @return the Font
55 */
56 public Font getFont()
57 {
58 return this.font;
59 }
60
61 /***
62 * @param color the color of the bean
63 */
64 public void setColor(final Color color)
65 {
66 this.color = color;
67 }
68
69 /***
70 * sets the font
71 *
72 * @param font the font
73 */
74 public void setFont(final Font font)
75 {
76 this.font = font;
77 }
78
79 /***
80 * returns the colorSet
81 *
82 * @return Color[]
83 */
84 public Color[] getColorSet()
85 {
86 return this.colorSet;
87 }
88
89 /***
90 * sets the colorset.
91 *
92 * @param colorSet the colorSet
93 */
94 public void setColorSet(final Color[] colorSet)
95 {
96 this.colorSet = colorSet;
97 }
98
99 }