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