Class RatsTab.RatStatusPanel

    • Field Detail

      • m_Owner

        protected RatsTab m_Owner
        the owner.
      • m_ID

        protected int m_ID
        the flow ID.
      • m_Name

        protected String m_Name
        the name of the rat.
      • m_Pausable

        protected boolean m_Pausable
        whether it is pausable.
      • m_Paused

        protected boolean m_Paused
        whether it is paused.
      • m_Stoppable

        protected boolean m_Stoppable
        whether it is stoppable.
      • m_Stopped

        protected boolean m_Stopped
        whether it is stopped.
      • m_Interactive

        protected boolean m_Interactive
        whether it is interactive.
      • m_LabelName

        protected JLabel m_LabelName
        the label.
      • m_ButtonPauseResume

        protected adams.gui.core.BaseButton m_ButtonPauseResume
        the button for pause/resume.
      • m_ButtonStopStart

        protected adams.gui.core.BaseButton m_ButtonStopStart
        the button for stop/start.
      • m_LabelInteractive

        protected JLabel m_LabelInteractive
        the label for interactive actors.
    • Constructor Detail

      • RatStatusPanel

        public RatStatusPanel​(RatsTab owner,
                              int id,
                              String name,
                              boolean pausable,
                              boolean paused,
                              boolean stoppable,
                              boolean stopped,
                              boolean interactive)
        Initializes the panel.
        Parameters:
        owner - the owner
        id - the flow ID
        name - the name of the rat
        pausable - whether pausable at all
        paused - whether currently paused
        stoppable - whether stoppable at all
        stopped - whether currently stopped
        interactive - whether interactive actors contained
    • Method Detail

      • initGUI

        protected void initGUI()
        initializes the widgets.
        Overrides:
        initGUI in class adams.gui.core.BasePanel
      • finishInit

        protected void finishInit()
        Finalizes the initialization.
        Overrides:
        finishInit in class adams.gui.core.BasePanel
      • getLabelName

        public JLabel getLabelName()
        Returns the label with the name.
        Returns:
        the label
      • pauseResume

        protected void pauseResume()
        Pauses/resumes the rat.
      • stopStart

        protected void stopStart()
        Stops/starts the rat.