Class ArffViewer

    • Constructor Detail

      • ArffViewer

        public ArffViewer()
        initializes the object
    • Method Detail

      • setCenteredLocation

        public void setCenteredLocation()
        positions the window at the center of the screen
      • setConfirmExit

        public void setConfirmExit​(boolean confirm)
        whether to present a MessageBox on Exit or not
        Parameters:
        confirm - whether a MessageBox pops up or not to confirm exit
      • getConfirmExit

        public boolean getConfirmExit()
        returns the setting of whether to display a confirm messagebox or not on exit
        Returns:
        whether a messagebox is displayed or not
      • setExitOnClose

        public void setExitOnClose​(boolean value)
        whether to do a System.exit(0) on close
        Parameters:
        value - enables/disables the System.exit(0)
      • getExitOnClose

        public boolean getExitOnClose()
        returns TRUE if a System.exit(0) is done on a close
        Returns:
        true if System.exit(0) is done
      • getMainPanel

        public ArffViewerMainPanel getMainPanel()
        returns the main panel
        Returns:
        the main panel
      • refresh

        public void refresh()
        validates and repaints the frame
      • windowClosing

        public void windowClosing​(WindowEvent e)
        invoked when a window is in the process of closing
        Specified by:
        windowClosing in interface WindowListener
        Parameters:
        e - the window event
      • windowOpened

        public void windowOpened​(WindowEvent e)
        invoked when a window is has been opened
        Specified by:
        windowOpened in interface WindowListener
        Parameters:
        e - the window event
      • toString

        public String toString()
        returns only the classname
        Overrides:
        toString in class Component
        Returns:
        the classname
      • main

        public static void main​(String[] args)
                         throws Exception
        shows the frame and it tries to load all the arff files that were provided as arguments.
        Parameters:
        args - the commandline parameters
        Throws:
        Exception - if something goes wrong