package nl.tudelft.dsol.introspection.beans; import java.awt.Color; import java.awt.Font; /** * Test bean for testing introspection of simple and composite color and font properties. *

* Copyright (c) 2004-2022 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information https://simulation.tudelft.nl. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * * https://simulation.tudelft.nl/dsol/3.0/license.html. *

* @author Niels Lang * Peter Jacobs * @since 1.5 */ public class GUIBean { /** the color to use. */ private Color color = Color.YELLOW; /** the font to use. */ private Font font = new Font("Arial", Font.BOLD, 11); /** the colorSet. */ private Color[] colorSet = new Color[] {Color.BLACK, Color.BLUE}; /** * @return the Color */ public Color getColor() { return this.color; } /** * @return the Font */ public Font getFont() { return this.font; } /** * @param color the color of the bean */ public void setColor(final Color color) { this.color = color; } /** * sets the font * @param font the font */ public void setFont(final Font font) { this.font = font; } /** * returns the colorSet * @return Color[] */ public Color[] getColorSet() { return this.colorSet; } /** * sets the colorset. * @param colorSet the colorSet */ public void setColorSet(final Color[] colorSet) { this.colorSet = colorSet; } }