Package dialog

Class DomainsPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DomainsPanel extends DialogPanel
Class for a domains determination panel for graphical user interfaces.
Since:
2007.02.11
See Also:
  • Field Details

    • EXTERNAL

      public static final int EXTERNAL
      mode: external programs checkbox
      See Also:
    • LOCATE

      public static final int LOCATE
      mode: locate programs button
      See Also:
    • format

      protected FormatPanel format
      the associated data format panel
    • path

      protected File path
      the path to the C programs
    • fn_tab

      protected JTextField fn_tab
      the name of the table file
    • autotype

      protected JCheckBox autotype
      whether to determine types automatically
    • sortvals

      protected JCheckBox sortvals
      whether to sort the values of nominal attributes
    • fn_dom

      protected JTextField fn_dom
      the name of the domains file
    • extern

      protected JCheckBox extern
      the path to the C programs
  • Constructor Details

    • DomainsPanel

      public DomainsPanel(int mode)
      Create a domains determination panel.
      Parameters:
      mode - the mode (additional input selector)
      Since:
      2007.07.26 (Christian Borgelt)
    • DomainsPanel

      public DomainsPanel(FormatPanel format)
      Create a domains determination panel.
      Parameters:
      format - the corresponding format panel
      Since:
      2007.02.11 (Christian Borgelt)
    • DomainsPanel

      public DomainsPanel(int mode, FormatPanel format)
      Create a domains determination panel.
      Parameters:
      mode - the mode (additional input selector)
      format - the associated data format panel
      Since:
      2007.02.11 (Christian Borgelt)
  • Method Details

    • getFormat

      public FormatPanel getFormat()
      Get the associated data format panel.
      Returns:
      the associated data format panel
      Since:
      2014.04.02 (Christian Borgelt)
    • setFormat

      public void setFormat(FormatPanel format)
      Set the associated data format panel.
      Parameters:
      format - the associated data format panel
      Since:
      2007.07.27 (Christian Borgelt)
    • getDataFile

      public File getDataFile()
      Get the data file.
      Returns:
      the data file
      Since:
      2007.07.24 (Christian Borgelt)
    • setDataFile

      public void setDataFile(File file)
      Set the data file.
      Parameters:
      file - the data file to set
      Since:
      2007.07.24 (Christian Borgelt)
    • getDomainsFile

      public File getDomainsFile()
      Get the domains file.
      Returns:
      the domains file
      Since:
      2007.07.24 (Christian Borgelt)
    • setDomainsFile

      public void setDomainsFile(File file)
      Set the domains file.
      Parameters:
      file - the domains file to set
      Since:
      2007.07.24 (Christian Borgelt)
    • getOps

      public int getOps()
      Get the additional operations.
      Returns:
      the additional operations
      Since:
      2007.07.27 (Christian Borgelt)
    • setOps

      public void setOps(int ops)
      Set the additional operations.
      Parameters:
      ops - the additional operations
      Since:
      2007.07.27 (Christian Borgelt)
    • createCmd

      public String[] createCmd()
      Create a command to determine attribute domains.
      Returns:
      the command to determine attribute domains
      Since:
      2004.05.25 (Christian Borgelt)
    • createFinder

      public table.DomainsFinder createFinder()
      Create a domain finder.
      Returns:
      a domain finder for the current settings
      Since:
      2007.05.08 (Christian Borgelt)
    • useExternal

      public boolean useExternal()
      Get flag for external program usage.
      Returns:
      whether to use external programs
      Since:
      2007.05.17 (Christian Borgelt)
    • setExternal

      public void setExternal(boolean extern)
      Get flag for external program usage.
      Parameters:
      extern - whether to use external programs
      Since:
      2007.05.17 (Christian Borgelt)
    • getPath

      public File getPath()
      Get the path to the C programs.
      Returns:
      the path to the C programs
      Since:
      2007.02.11 (Christian Borgelt)
    • setPath

      public void setPath(File path)
      Set the path to the C programs.
      Parameters:
      path - the path to the C programs
      Since:
      2007.02.11 (Christian Borgelt)
    • shrinkCmd

      protected static String[] shrinkCmd(String[] cmd, int n)
      Shrink a command to a given length.
      Parameters:
      cmd - the command to shrink
      n - the number of arguments
      Returns:
      a string with the shrunk command
      Since:
      2007.02.16 (Christian Borgelt)
    • loadConfig

      public void loadConfig(FileReader reader) throws IOException
      Load domain arguments from a configuration file.
      Parameters:
      reader - file reader to read from
      Throws:
      IOException - if a read error occurs
      Since:
      2013.11.26 (Christian Borgelt)
    • saveConfig

      public void saveConfig(FileWriter writer) throws IOException
      Save domain arguments to a configuration file.
      Parameters:
      writer - file writer to write to
      Throws:
      IOException - if a write error occurs
      Since:
      2013.11.26 (Christian Borgelt)