Class AbstractGraphicalDisplay

    • Field Detail

      • m_ShowFlowControlSubMenu

        protected boolean m_ShowFlowControlSubMenu
        whether to show flow control sub-menu.
      • m_MenuBar

        protected JMenuBar m_MenuBar
        the menu bar, if used.
      • m_MenuItemFileClear

        protected JMenuItem m_MenuItemFileClear
        the "clear" menu item.
      • m_MenuItemFileSaveAs

        protected JMenuItem m_MenuItemFileSaveAs
        the "save as" menu item.
      • m_MenuItemFileSaveTextAs

        protected JMenuItem m_MenuItemFileSaveTextAs
        the "save text as" menu item.
      • m_MenuItemFileClose

        protected JMenuItem m_MenuItemFileClose
        the "exit" menu item.
      • m_MenuItemFlowPauseResume

        protected JMenuItem m_MenuItemFlowPauseResume
        the "pause/resume" menu item.
      • m_MenuItemFlowStop

        protected JMenuItem m_MenuItemFlowStop
        the "stop" menu item.
      • m_GraphicFileChooser

        protected transient JComponentWriterFileChooser m_GraphicFileChooser
        the filedialog for saving the panel as picture.
      • m_TextFileChooser

        protected transient TextFileChooser m_TextFileChooser
        the filedialog for saving the textual data.
    • Constructor Detail

      • AbstractGraphicalDisplay

        public AbstractGraphicalDisplay()
    • Method Detail

      • setWriter

        public void setWriter​(JComponentWriter value)
        Sets the writer.
        Parameters:
        value - the writer
      • getWriter

        public JComponentWriter getWriter()
        Returns the writer.
        Returns:
        the writer
      • writerTipText

        public String writerTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setShowFlowControlSubMenu

        public void setShowFlowControlSubMenu​(boolean value)
        Sets whether to show a flow control sub-menu in the menubar.
        Parameters:
        value - true if to show
      • getShowFlowControlSubMenu

        public boolean getShowFlowControlSubMenu()
        Returns whether to show a flow control sub-menu in the menubar.
        Returns:
        true if to show
      • showFlowControlSubMenuTipText

        public String showFlowControlSubMenuTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • hasPanel

        protected boolean hasPanel()
        Checks whether a panel is available that can be saved.
        Returns:
        true if panel is available for saving
      • getGraphicFileChooser

        protected JComponentWriterFileChooser getGraphicFileChooser()
        Returns (and initializes if necessary) the file chooser for the images.
        Returns:
        the file chooser
      • getTextFileChooser

        protected TextFileChooser getTextFileChooser()
        Returns (and initializes if necessary) the file chooser for the text.
        Returns:
        the file chooser
      • createMenuBar

        protected JMenuBar createMenuBar()
        Assembles the menu bar.
        Returns:
        the menu bar
      • getMenuBar

        public JMenuBar getMenuBar()
        Creates a menu bar (singleton per panel object). Can be used in frames.
        Specified by:
        getMenuBar in interface MenuBarProvider
        Returns:
        the menu bar
      • updateMenu

        protected void updateMenu()
        updates the enabled state of the menu items.
      • supportsClear

        public boolean supportsClear()
        Whether "clear" is supported and shows up in the menu.

        Default implementation returns "false".
        Specified by:
        supportsClear in interface ClearableDisplay
        Returns:
        true if supported
      • saveAs

        protected void saveAs()
        Saves the panel as picture.
      • saveTextAs

        protected void saveTextAs()
        Saves the text.
      • close

        protected void close()
        Closes the dialog or frame.
      • canPauseOrResume

        protected boolean canPauseOrResume()
        Returns whether the flow can be paused/resumed.
        Returns:
        true if pause/resume available
      • isPaused

        protected boolean isPaused()
        Returns whether the flow is currently paused.
        Returns:
        true if currently paused
      • pauseResumeFlow

        protected void pauseResumeFlow()
        Pauses or resumes the flow.
      • stopFlow

        protected void stopFlow()
        Stops the flow.
      • cleanUpGUI

        protected void cleanUpGUI()
        Removes all graphical components.
        Overrides:
        cleanUpGUI in class AbstractDisplay
      • hasSendToItem

        public boolean hasSendToItem​(Class[] cls)
        Checks whether something to send is available.
        Specified by:
        hasSendToItem in interface SendToActionSupporter
        Parameters:
        cls - the requested classes
        Returns:
        true if an object is available for sending
      • wrapUp

        public void wrapUp()
        Cleans up after the execution has finished.
        Specified by:
        wrapUp in interface Actor
        Overrides:
        wrapUp in class AbstractDisplay