Class OtsControlPanel.TimeEdit

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

public class OtsControlPanel.TimeEdit extends JFormattedTextField implements AppearanceControl
Entry field for time.
See Also:
  • Constructor Details

    • TimeEdit

      TimeEdit(org.djunits.value.vdouble.scalar.Time initialValue)
      Construct a new TimeEdit.
      Parameters:
      initialValue - Time; the initial value for the TimeEdit
  • Method Details

    • setTime

      public void setTime(org.djunits.value.vdouble.scalar.Time newValue)
      Set or update the time shown in this TimeEdit.
      Parameters:
      newValue - Time; the (new) value to set/show in this TimeEdit
    • getFontSize

      public Integer getFontSize()
      Returns the font size. May be null to ignore font size.
      Specified by:
      getFontSize in interface AppearanceControl
      Returns:
      Integer; font size, may be null to ignore font size from appearance.
    • toString

      public final String toString()
      Overrides:
      toString in class Component