Class TLcdSimulatorTimeLabel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class TLcdSimulatorTimeLabel extends JLabel
This JLabel can be used to display the current time of a TLcdSimulator.
See Also:
  • Constructor Details

    • TLcdSimulatorTimeLabel

      public TLcdSimulatorTimeLabel()
      Constructs a new TLcdSimulatorTimeLabel without a TLcdSimulator to represent. The TLcdSimulator should be set with setSimulator.
    • TLcdSimulatorTimeLabel

      public TLcdSimulatorTimeLabel(TLcdSimulator newSimulator)
      Constructs a new TLcdSimulatorTimeLabel that represents newSimulator.
      Parameters:
      newSimulator - The TLcdSimulator to represent.
  • Method Details

    • getSimulator

      public TLcdSimulator getSimulator()
      Returns the TLcdSimulator of which this JLabel displays the time.
      Returns:
      The TLcdSimulator of which this JLabel displays the time.
    • setSimulator

      public void setSimulator(TLcdSimulator newSimulator)
      Sets the TLcdSimulator of which this JLabel displays the time.
      Parameters:
      newSimulator - The TLcdSimulator to set.
      See Also:
    • setDateFormat

      public void setDateFormat(DateFormat aDateFormat)
      Sets the DateFormat to be used for displaying the TLcdSimulator current time.
      Parameters:
      aDateFormat - The DateFormat to set.
      See Also:
    • getDateFormat

      public DateFormat getDateFormat()
      Returns the DateFormat used for displaying the TLcdSimulator current time.
      Returns:
      The DateFormat used for displaying the TLcdSimulator current time.