Class StatusLabel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, nl.tudelft.simulation.dsol.swing.gui.appearance.AppearanceControl, AppearanceControl

public class StatusLabel extends JLabel implements AppearanceControl
Status label at bottom of the screen with font color interpolated between background and foreground colors in GUI appearance.

Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
  • Constructor Details

    • StatusLabel

      public StatusLabel()
      Constructor.
  • Method Details

    • isBackground

      public boolean isBackground()
      Specified by:
      isBackground in interface nl.tudelft.simulation.dsol.swing.gui.appearance.AppearanceControl
    • isForeground

      public boolean isForeground()
      Specified by:
      isForeground in interface nl.tudelft.simulation.dsol.swing.gui.appearance.AppearanceControl
    • isFont

      public boolean isFont()
      Specified by:
      isFont in interface nl.tudelft.simulation.dsol.swing.gui.appearance.AppearanceControl
    • setBackground

      public void setBackground(Color bg)
      Overrides:
      setBackground in class JComponent
    • setForeground

      public void setForeground(Color fg)
      Overrides:
      setForeground in class JComponent