Package cpod.fx

Class CPODSettingsPane


public class CPODSettingsPane extends SettingsPane<CPODParams>
CPOD FX based settings pane.
Author:
Jamie Macaulay
  • Constructor Details

    • CPODSettingsPane

      public CPODSettingsPane(CPODControl2 cpodControl2)
  • Method Details

    • getExtensionFilters

      public ArrayList<javafx.stage.FileChooser.ExtensionFilter> getExtensionFilters()
      Get the extension filter for the file dialog. e.g. new ExtensionFilter("Pytorch Model", "*.pk")
      Returns:
      a list of extension fitlers for the file dialog.
    • getParams

      public CPODParams getParams(CPODParams currParams)
      Description copied from class: SettingsPane
      Get settings from the pane.
      Specified by:
      getParams in class SettingsPane<CPODParams>
      Returns:
      settings class
    • setParams

      public void setParams(CPODParams cpodParams)
      Description copied from class: SettingsPane
      Called whenever the pane is first shown/open to set pane to show current settings.
      Specified by:
      setParams in class SettingsPane<CPODParams>
      Parameters:
      cpodParams - - current settings class.
    • getName

      public String getName()
      Description copied from class: SettingsPane
      Get the name of the pane.
      Specified by:
      getName in class SettingsPane<CPODParams>
      Returns:
      name of the pane
    • getContentNode

      public javafx.scene.Node getContentNode()
      Description copied from class: SettingsPane
      Get node for GUI change of settings.
      Specified by:
      getContentNode in class SettingsPane<CPODParams>
    • paneInitialized

      public void paneInitialized()
      Description copied from class: SettingsPane
      Called when settings pane is first initialised. This can be used if for example, a the size of a pane is needed for a param. (Sizes are only initialised when Nodes are shown);
      Specified by:
      paneInitialized in class SettingsPane<CPODParams>