Class IshDetParamsDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
EnergySumParamsDialog, MatchFiltParamsDialog, SgramCorrParamsDialog

public abstract class IshDetParamsDialog extends PamDialog
See Also:
  • Field Details Link icon

  • Constructor Details Link icon

    • IshDetParamsDialog Link icon

      protected IshDetParamsDialog(Frame parentFrame, String dialogName, Class inputDataClass)
  • Method Details Link icon

    • showDialog3 Link icon

      public static IshDetParams showDialog3(Frame parentFrame, IshDetParams oldParams, IshDetParamsDialog singleInstance)
    • addDetectorSpecificControls Link icon

      protected abstract void addDetectorSpecificControls(JPanel g)
      Add parameter-setting controls to the dialog box that are specific to the type of detector in your subclass. Some controls are common to all detectors; they are handled in IshDetParamsDialog. But others are specific to one type of detector, and in subclasses, they should be added in addDetectorSpecificControls. See EnergySumParamsDialog for an example.
      Parameters:
      JPanel - g -- the panel to which you should add controls. Calling add will append them vertically; to use horizontal placement, make a sub-panel.
    • getParams Link icon

      public boolean getParams()
      Read the values from the dialog box, parse and place into energySumParams. The subclasses, before or after calling super.getParams(), do likewise for their detector-specific values.
      Specified by:
      getParams in class PamDialog
      Returns:
      boolean -- true if parameters are valid, false if not
    • cancelButtonPressed Link icon

      public void cancelButtonPressed()
      Description copied from class: PamDialog
      called when the cancel button is pressed before the dialog closes. Generally you should set the parameters returned by the dialog to null or some default value, or in some other way indicate that Cancel was pressed.
      Specified by:
      cancelButtonPressed in class PamDialog
    • restoreDefaultSettings Link icon

      public void restoreDefaultSettings()
      Description copied from class: PamDialog
      standard function which should us used to copy default parameters into the dialog controls.
      Specified by:
      restoreDefaultSettings in class PamDialog