Class MainScan1D

  • All Implemented Interfaces:
    xal.extension.application.ApplicationListener

    public class MainScan1D
    extends xal.extension.application.ApplicationAdaptor
    MainScan1D is a concrete subclass of ApplicationAdaptor for one dimensional scan.
    Author:
    shishlo
    • Field Summary

      • Fields inherited from class xal.extension.application.ApplicationAdaptor

        WILDCARD_FILE_EXTENSION
      • Fields inherited from class xal.extension.application.AbstractApplicationAdaptor

        docURLs, GUI_BRICKS_RESOURCE
    • Constructor Summary

      Constructors 
      Constructor Description
      MainScan1D()
      Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String applicationName()
      Specifies the name of the one dimensional scan application.
      void editPreferences​(xal.extension.application.XalDocument document)
      Activates the preference panel for the one dimensional scan.
      static void main​(String[] args)
      The main method of the application.
      xal.extension.application.XalDocument newDocument​(URL url)
      Returns an instance of the one dimensional scan document corresponding to the specified URL.
      xal.extension.application.XalDocument newEmptyDocument()
      Returns an instance of the one dimensional scan document.
      String[] readableDocumentTypes()
      Returns the text file suffixes of files this application can open.
      String[] writableDocumentTypes()
      Returns the text file suffixes of files this application can write.
      • Methods inherited from class xal.extension.application.ApplicationAdaptor

        generateEmptyDocument, newEmptyDocument
      • Methods inherited from class xal.extension.application.AbstractApplicationAdaptor

        applicationFinishedLaunching, applicationWillOpenInitialDocuments, applicationWillQuit, canOpenDocuments, customizeCommands, documentClosed, documentCreated, getDefaultDocumentFolder, getDefaultDocumentFolderURL, getDefaultWindowReference, getDocURLs, getResourceURL, getUserPreferencesNode, setOptions, setResourcesLocation, setResourcesParentDirectory, setResourcesParentDirectoryWithPath, showsWelcomeDialogAtLaunch, usesConsole
    • Constructor Detail

      • MainScan1D

        public MainScan1D()
        Constructor
    • Method Detail

      • readableDocumentTypes

        public String[] readableDocumentTypes()
        Returns the text file suffixes of files this application can open.
        Specified by:
        readableDocumentTypes in class xal.extension.application.AbstractApplicationAdaptor
        Returns:
        Suffixes of readable files
      • writableDocumentTypes

        public String[] writableDocumentTypes()
        Returns the text file suffixes of files this application can write.
        Specified by:
        writableDocumentTypes in class xal.extension.application.AbstractApplicationAdaptor
        Returns:
        Suffixes of writable files
      • newEmptyDocument

        public xal.extension.application.XalDocument newEmptyDocument()
        Returns an instance of the one dimensional scan document.
        Specified by:
        newEmptyDocument in class xal.extension.application.ApplicationAdaptor
        Returns:
        An instance of my custom document.
      • newDocument

        public xal.extension.application.XalDocument newDocument​(URL url)
        Returns an instance of the one dimensional scan document corresponding to the specified URL.
        Specified by:
        newDocument in class xal.extension.application.ApplicationAdaptor
        Parameters:
        url - The URL of the file to open.
        Returns:
        An instance of the one dimensional scan document.
      • applicationName

        public String applicationName()
        Specifies the name of the one dimensional scan application.
        Specified by:
        applicationName in class xal.extension.application.AbstractApplicationAdaptor
        Returns:
        Name of the application.
      • editPreferences

        public void editPreferences​(xal.extension.application.XalDocument document)
        Activates the preference panel for the one dimensional scan.
        Overrides:
        editPreferences in class xal.extension.application.ApplicationAdaptor
        Parameters:
        document - The document whose preferences are being changed.
      • main

        public static void main​(String[] args)
        The main method of the application.
        Parameters:
        args - The command line arguments