Package fim

Class FIMGUI

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, Runnable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class FIMGUI extends dialog.TabbedGUI implements ActionListener
Class for a user interface to frequent item set mining programs.
Since:
2014.10.18
See Also:
  • Field Details

  • Constructor Details

    • FIMGUI

      public FIMGUI()
      Create a frequent item set mining GUI.

      The dialog is created as a stand-alone program. That is, closing or quitting it terminates the program.

      Since:
      2014.10.18 (Christian Borgelt)
    • FIMGUI

      public FIMGUI(Component owner)
      Create a frequent item set mining GUI.
      Parameters:
      owner - the component that is to own this dialog
      Since:
      2014.10.18 (Christian Borgelt)
  • Method Details

    • run

      public void run()
      Create the user interface.

      Following the recommendations in the Java tutorial, the user interface is created in the "run" method, which is invoked from the event queue, in order to avoid problems with threads.

      Specified by:
      run in interface Runnable
      Specified by:
      run in class dialog.TabbedGUI
      Since:
      2014.10.18 (Christian Borgelt)
    • getPath

      public File getPath()
      Get the path to the frequent item set mining program.
      Overrides:
      getPath in class dialog.TabbedGUI
      Returns:
      the path to the frequent item set mining programs
      Since:
      2014.10.18 (Christian Borgelt)
    • setPath

      public void setPath(File path)
      Set the path to the frequent item set mining programs.
      Overrides:
      setPath in class dialog.TabbedGUI
      Parameters:
      path - the path to the frequent item set mining programs
      Since:
      2014.10.18 (Christian Borgelt)
    • setTrActsFile

      public void setTrActsFile(File file)
      Set the transactions file.
      Parameters:
      file - the transactions file to set
      Since:
      2014.10.18 (Christian Borgelt)
    • setOutputFile

      public void setOutputFile(File file)
      Set the frequent item sets output file.
      Parameters:
      file - the frequent item sets output file to set
      Since:
      2014.10.18 (Christian Borgelt)
    • setItemSelFile

      public void setItemSelFile(File file)
      Set the item selection file.
      Parameters:
      file - the item selection file to set
      Since:
      2014.10.18 (Christian Borgelt)
    • showPatterns

      protected void showPatterns(JTextField txt)
      Show frequent item patterns.
      Parameters:
      txt - the text field containing the file name
      Since:
      2014.10.18 (Christian Borgelt)
    • showPatterns

      protected void showPatterns(File file)
      Show a set of frequent item patterns.
      Parameters:
      file - the file to load the frequent item sets from
      Since:
      2014.10.18 (Christian Borgelt)
    • showTrActs

      protected void showTrActs(JTextField txt)
      Show a set of transactions.
      Parameters:
      txt - the text field containing the file name
      Since:
      2014.10.18 (Christian Borgelt)
    • showTrActs

      protected void showTrActs(File file)
      Show a set of transactions.
      Parameters:
      file - the file to load the transactions from
      Since:
      2014.10.14 (Christian Borgelt)
    • createExecutor

      protected util.Executor createExecutor(int i)
      Get an executor for the frequent item set mining program.
      Specified by:
      createExecutor in class dialog.TabbedGUI
      Parameters:
      i - the index of the dialog tab
      Returns:
      the executor for the frequent item set mining program
      Since:
      2014.10.18 (Christian Borgelt)
    • getResultMsg

      protected String getResultMsg()
      Get the result message on successful termination.
      Overrides:
      getResultMsg in class dialog.TabbedGUI
      Returns:
      the result message
      Since:
      2014.10.18 (Christian Borgelt)
    • loadConfig

      protected void loadConfig(File file)
      Load a configuration file and set the input fields.
      Specified by:
      loadConfig in class dialog.TabbedGUI
      Parameters:
      file - the file to load the configuration from
      Since:
      2014.10.18 (Christian Borgelt)
    • saveConfig

      protected void saveConfig(File file)
      Save a configuration file
      Specified by:
      saveConfig in class dialog.TabbedGUI
      Parameters:
      file - the file to save the current configuration to
      Since:
      2007.07.08 (Christian Borgelt)
    • main

      public static void main(String[] args)
      Main function for command line invocation.
      Parameters:
      args - the command line arguments
      Since:
      2004.09.29 (Christian Borgelt)