Class APreferencePanel

All Implemented Interfaces:
KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
GeneralPlotParamPanel

public abstract class APreferencePanel extends JPanel implements KeyListener
A base class for panels that will be used as tabs on the Preferences dialog
Author:
heddle
See Also:
  • Field Details

  • Constructor Details

    • APreferencePanel

      public APreferencePanel(PlotCanvas canvas, String tabname)
      Create a panel for use in editing plot preferences
      Parameters:
      canvas - the plot canvas
      tabname - the name that will appear on the editor tab
  • Method Details

    • titledPanel

      protected JPanel titledPanel(String title)
    • keyTyped

      public void keyTyped(KeyEvent kev)
      Default implementation is to do nothing
      Specified by:
      keyTyped in interface KeyListener
      Parameters:
      kev - the Key Event
    • keyPressed

      public void keyPressed(KeyEvent kev)
      Default implementation is to do nothing
      Specified by:
      keyPressed in interface KeyListener
      Parameters:
      kev - the Key Event
    • keyReleased

      public void keyReleased(KeyEvent kev)
      Default implementation is call apply() if the hey was "Enter"
      Specified by:
      keyReleased in interface KeyListener
      Parameters:
      kev - the Key Event
    • apply

      public abstract void apply()
      Apply all the changes