package nl.tudelft.simulation.dsol.swing.gui.appearance; import javax.swing.JLabel; /** * Label with appearance control. *

* Copyright (c) 2020-2022 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information DSOL Manual. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * DSOL License. *

* @author Alexander Verbraeck */ public class AppearanceControlLabel extends JLabel implements AppearanceControl { /** */ private static final long serialVersionUID = 20180207L; /** * Generate an empty label with appearance control. */ public AppearanceControlLabel() { super(); } /** * Generate a label with appearance control with text. * @param text String; the text of the label */ public AppearanceControlLabel(final String text) { super(text); } /** {@inheritDoc} */ @Override public boolean isForeground() { return true; } /** {@inheritDoc} */ @Override public boolean isBackground() { return true; } /** {@inheritDoc} */ @Override public String toString() { return "AppearanceControlLabel []"; } }