Class ArffViewer

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

public class ArffViewer extends JFrame implements WindowListener
A little tool for viewing ARFF files.
Version:
$Revision: 10434 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • ArffViewer

      public ArffViewer()
      initializes the object
  • Method Details

    • 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
    • windowActivated

      public void windowActivated(WindowEvent e)
      invoked when a window is activated
      Specified by:
      windowActivated in interface WindowListener
      Parameters:
      e - the window event
    • windowClosed

      public void windowClosed(WindowEvent e)
      invoked when a window is closed
      Specified by:
      windowClosed in interface WindowListener
      Parameters:
      e - the window event
    • 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
    • windowDeactivated

      public void windowDeactivated(WindowEvent e)
      invoked when a window is deactivated
      Specified by:
      windowDeactivated in interface WindowListener
      Parameters:
      e - the window event
    • windowDeiconified

      public void windowDeiconified(WindowEvent e)
      invoked when a window is deiconified
      Specified by:
      windowDeiconified in interface WindowListener
      Parameters:
      e - the window event
    • windowIconified

      public void windowIconified(WindowEvent e)
      invoked when a window is iconified
      Specified by:
      windowIconified 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