Class BaseInteractiveViewer

    • Constructor Detail

      • BaseInteractiveViewer

        public BaseInteractiveViewer()
        Constructor
    • Method Detail

      • getSettings

        public Settings getSettings()
        Get the settings object for the application
        Specified by:
        getSettings in interface StepInteractiveViewer
        Returns:
        the settings object the settings object
      • applySettings

        public void applySettings​(Settings settings)
        No-op implementation. Subcasses should override to be notified about, and apply, any changed settings
        Parameters:
        settings - the settings object that might (or might not) have been altered by the user
      • setMainKFPerspective

        public void setMainKFPerspective​(MainKFPerspective perspective)
        Set the main knowledge flow perspective. Implementations can then access application settings if necessary
        Specified by:
        setMainKFPerspective in interface StepInteractiveViewer
        Parameters:
        perspective - the main knowledge flow perspective
      • setStep

        public void setStep​(Step step)
        Set the step that owns this viewer. Implementations may want to access data that has been computed by the step in question.
        Specified by:
        setStep in interface StepInteractiveViewer
        Parameters:
        step - the step that owns this viewer
      • getStep

        public Step getStep()
        Get the step that owns this viewer.
        Returns:
        the Step that owns this viewer
      • nowVisible

        public void nowVisible()
        Called by the KnowledgeFlow application once the enclosing JFrame is visible
        Specified by:
        nowVisible in interface StepInteractiveViewer
      • setParentWindow

        public void setParentWindow​(Window parent)
        Set the parent window for this viewer
        Specified by:
        setParentWindow in interface StepInteractiveViewer
        Parameters:
        parent - the parent window
      • addButton

        public void addButton​(JButton button)
        Adds a button to the bottom of the window.
        Parameters:
        button - the button to add.
      • closePressed

        public void closePressed()
        Called when the close button is pressed. This default implementation sets all references stored in this viewer to null so that garbage collection is facilitated. Subclasses should override if they need to do something before the window is closed.
      • getDefaultSettings

        public Defaults getDefaultSettings()
        Get default settings for the viewer. Default implementation returns null, i.e. no default settings. Subclasses can override if they have settings (with default values) that the user can edit.
        Returns:
        the default settings for this viewer, or null if there are no user-editable settings