Package xal.app.scan1d
Class MainScan1D
- java.lang.Object
-
- xal.extension.application.AbstractApplicationAdaptor
-
- xal.extension.application.ApplicationAdaptor
-
- xal.app.scan1d.MainScan1D
-
- All Implemented Interfaces:
xal.extension.application.ApplicationListener
public class MainScan1D extends xal.extension.application.ApplicationAdaptorMainScan1D is a concrete subclass of ApplicationAdaptor for one dimensional scan.- Author:
- shishlo
-
-
Constructor Summary
Constructors Constructor Description MainScan1D()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringapplicationName()Specifies the name of the one dimensional scan application.voideditPreferences(xal.extension.application.XalDocument document)Activates the preference panel for the one dimensional scan.static voidmain(String[] args)The main method of the application.xal.extension.application.XalDocumentnewDocument(URL url)Returns an instance of the one dimensional scan document corresponding to the specified URL.xal.extension.application.XalDocumentnewEmptyDocument()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
-
-
-
-
Method Detail
-
readableDocumentTypes
public String[] readableDocumentTypes()
Returns the text file suffixes of files this application can open.- Specified by:
readableDocumentTypesin classxal.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:
writableDocumentTypesin classxal.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:
newEmptyDocumentin classxal.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:
newDocumentin classxal.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:
applicationNamein classxal.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:
editPreferencesin classxal.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
-
-