程序包 weka.gui

类 Main

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, OptionHandler

public class Main extends JFrame implements OptionHandler
Menu-based GUI for Weka, replacement for the GUIChooser. Valid options are:

 -gui <MDI|SDI>
  Determines the layout of the GUI:
  MDI = MDI Layout
  SDI = SDI Layout
  (default: MDI)
 
版本:
$Revision: 10438 $
作者:
fracpete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 字段详细资料

    • GUI_MDI

      public static final int GUI_MDI
      displays the GUI as MDI.
      另请参阅:
    • GUI_SDI

      public static final int GUI_SDI
      displays the GUI as SDI.
      另请参阅:
    • TAGS_GUI

      public static final Tag[] TAGS_GUI
      GUI tags.
  • 构造器详细资料

    • Main

      public Main()
      default constructor.
  • 方法详细资料

    • addChildFrame

      public void addChildFrame(Container c)
      adds the given child frame to the list of frames.
      参数:
      c - the child frame to add
    • removeChildFrame

      public boolean removeChildFrame(Container c)
      tries to remove the child frame, it returns true if it could do such.
      参数:
      c - the child frame to remove
      返回:
      true if the child frame could be removed
    • showWindow

      public boolean showWindow(Container c)
      brings child frame to the top.
      参数:
      c - the frame to activate
      返回:
      true if frame was activated
    • showWindow

      public boolean showWindow(Class windowClass)
      brings the first frame to the top that is of the specified window class.
      参数:
      windowClass - the class to display the first child for
      返回:
      true, if a child was found and brought to front
    • getWindowList

      public Iterator getWindowList()
      returns all currently open frames.
      返回:
      an iterator over all currently open frame
    • getWindow

      public Container getWindow(Class windowClass)
      returns the first instance of the given window class, null if none can be found.
      参数:
      windowClass - the class to retrieve the first instance for
      返回:
      null, if no instance can be found
    • getWindow

      public Container getWindow(String title)
      returns the first window with the given title, null if none can be found.
      参数:
      title - the title to look for
      返回:
      null, if no instance can be found
    • containsWindow

      public boolean containsWindow(Class windowClass)
      checks, whether an instance of the given window class is already in the Window list.
      参数:
      windowClass - the class to check for an instance in the current window list
      返回:
      true if the class is already listed in the Window list
    • containsWindow

      public boolean containsWindow(String title)
      checks, whether a window with the given title is already in the Window list.
      参数:
      title - the title to check for in the current window list
      返回:
      true if a window with the given title is already listed in the Window list
    • minimizeWindows

      public void minimizeWindows()
      minimizes all windows.
    • restoreWindows

      public void restoreWindows()
      restores all windows.
    • windowListChanged

      public void windowListChanged()
      is called when window list changed somehow (add or remove).
    • setVisible

      public void setVisible(boolean b)
      Shows or hides this component depending on the value of parameter b.
      覆盖:
      setVisible 在类中 Window
      参数:
      b - if true, shows this component; otherwise, hides this component
    • createSingleton

      public static void createSingleton(String[] args)
      Create the singleton instance of the Main GUI.
      参数:
      args - commandline options
    • getSingleton

      public static Main getSingleton()
      Return the singleton instance of the Main GUI.
      返回:
      the singleton instance
    • addStartupListener

      public static void addStartupListener(StartUpListener s)
      Add a listener to be notified when startup is complete.
      参数:
      s - a listener to add
    • listOptions

      public Enumeration listOptions()
      Gets an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      返回:
      an enumeration of all the available options.
    • getOptions

      public String[] getOptions()
      returns the options of the current setup.
      指定者:
      getOptions 在接口中 OptionHandler
      返回:
      the current options
    • setOptions

      public void setOptions(String[] options) throws Exception
      Parses the options for this object.

      Valid options are:

       -gui <MDI|SDI>
        Determines the layout of the GUI:
        MDI = MDI Layout
        SDI = SDI Layout
        (default: MDI)
       
      指定者:
      setOptions 在接口中 OptionHandler
      参数:
      options - the options to use
      抛出:
      Exception - if setting of options fails
    • setGUIType

      public void setGUIType(SelectedTag value)
      Sets the type of GUI to use.
      参数:
      value - .the GUI type
    • getGUIType

      public SelectedTag getGUIType()
      Gets the currently set type of GUI to display.
      返回:
      the current GUI Type.
    • main

      public static void main(String[] args)
      starts the application.
      参数:
      args - the commandline arguments - ignored