Class ScatterPlotApplet

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ScatterPlotApplet extends Applet implements ActionListener
A ScatterPlotApplet shows a scatter plot of data from a DataTableInput. The user can enter the data in a two-column table that is shown in the applet. It is also possible to configure the applet with a menu of file names. These files, which must be in the same directory as the Web page on which the applet appears, will appear in a menu. A file can contain data for the table, with two numbers per line. When the user loads the file, the data replaces the data in the table.
See Also:
  • Constructor Details

    • ScatterPlotApplet

      public ScatterPlotApplet()
  • Method Details

    • init

      public void init()
      The init() method is called by the system to set up the applet. If the applet does not appear as a button, then init() creates the main panel of the applet and calls setUpMainPanel to set it up.
      Overrides:
      init in class Applet
    • makeMainPanel

      public Panel makeMainPanel()
    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      Respond when user clicks a button; not meant to be called directly. This opens and closes the separate window.
      Specified by:
      actionPerformed in interface ActionListener
    • getParameter

      protected String getParameter(String paramName, String defaultValue)
      Return the applet parameter with a given param name, but if no such applet param exists, return a default value instead.