Class FileReporter

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FileReporter extends JPanel
This class loads data from a saved file and displays statistics about it.
Version:
$Revision: 1642447 $
See Also:
  • Constructor Details

    • FileReporter

      public FileReporter()
  • Method Details

    • init

      public void init(String file) throws IOException
      Initialize a file reporter from a file
      Parameters:
      file - The name of the file to read from
      Throws:
      IOException - when the corresponding file can not be opened or be read from
    • getData

      public List<Integer> getData(String key)
      Get the data currently assigned to a given key
      Parameters:
      key - The key for which the data should be given
      Returns:
      list of data for the given key
    • showPanel

      public void showPanel()
      Show main panel with length, graph, and stats.