Class PreferencesDialog

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

public class PreferencesDialog extends JDialog implements ActionListener
Dialog to change the preferences for the application.
Author:
Debbie-Ann Facey, Khari A. Bryan, Prof Robert J. Lancashire
See Also:
  • Constructor Details

    • PreferencesDialog

      public PreferencesDialog(Frame frame, JSViewer viewer, String title, boolean modal, DisplaySchemesProcessor dsp)
      Initialises the PreferencesDialog
      Parameters:
      frame - the the parent frame
      viewer -
      title - the title
      modal - the modality
      dsp - an instance of DisplaySchemesProcessor
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Sets the color of the selected element on the current color button
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      ae - the ActionEvent
    • setCurrentColor

      public void setCurrentColor(String element, Color color)
    • getPreferences

      public Properties getPreferences()
      Returns the preferences (Properties Object)
      Returns:
      the preferences (Properties Object)
    • getSelectedDisplayScheme

      public ColorParameters getSelectedDisplayScheme()
      Retruns the current Display Scheme
      Returns:
      the current Display Scheme
    • shouldApplySpectrumDisplaySettingsNow

      public boolean shouldApplySpectrumDisplaySettingsNow()