AnalysisApplication Class

Spotfire 14.3 API Reference
Represents the currently running Spotfire instance. This object can therefore be used to control the running instance, for example open files or replace data.

If an analysis file (DXP file) has been opened in the application, an object representing that document is available through Document.

The AnalysisApplication events.
Inheritance Hierarchy

SystemObject
  Spotfire.Dxp.ApplicationAnalysisApplication

Namespace:  Spotfire.Dxp.Application
Assembly:  Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
[ToolContextAttribute]
public abstract class AnalysisApplication : IServiceProvider, 
	IDisposable

The AnalysisApplication type exposes the following members.

Properties

  NameDescription
Public propertyDocument
Gets the analysis document if one such has been opened; otherwise null is returned.
Public propertyDocumentMetadata
Gets the analysis document metadata.
Public propertyImportContext
Get the import context.
Public propertyToolbox
Gets the toolbox containing the tools available to the application.
Top
Methods

  NameDescription
Public methodClose
Closes the currently opened Document, if any. A DocumentClosing event is raised before the document is closed. If the close is not canceled, all close actions added to the ClosingEventArgsT are invoked before the document is closed.
Public methodCreateDataWriter
Creates the data writer given the typeId.
Public methodCreateFileDataSource
Creates the file data source from a path.
Protected methodDispose
Disposes private member resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExit
Instructs this analysis application instance to exit.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetService(Type)
Gets the service object of the specified type.
Public methodGetServiceT
Gets an instance of the requested service type.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpen(String)
Opens an analysis from the specified file, using the best matching reader. Any currently open document will be closed.
Public methodOpen(DataSource)
Opens a new document with data loaded from the specified source. Any currently open document will be closed.
Public methodOpen(String, DocumentOpenSettings)
Opens an analysis from the specified file, using the best matching reader. Any currently open document will be closed.
Public methodOpen(DataSource, DocumentOpenSettings)
Opens a new document with data loaded from the specified source. Any currently open document will be closed.
Public methodOpen(LibraryItem, DocumentOpenSettings)
Open the specified analysis or information link from the library.
Public methodOpenFromLibrary(Guid, DocumentOpenSettings) Obsolete.
Opens a library entry given the unique id (GUID) of that entry.
Public methodCode exampleOpenFromLibrary(String, String) Obsolete.
Opens a file from the Spotfire Server library with a known name located at a known path.
Public methodCode exampleOpenFromLibrary(String, String, DocumentOpenSettings) Obsolete.
Opens a file from the Spotfire Server library with a known name located at a known path.
Protected methodReapplyStateCore
Used for reapplying state in Web Player.
Public methodSave
Saves the current loaded document to its last save location. This is not possible if the loaded document was not an analysis file loaded from a file path or from the library.
Public methodSave(String) Obsolete.
Saves the currently opened Document, if any, to the file given by fileName.
Public methodSave(String, DocumentSaveSettings) Obsolete.
Saves the currently opened Document, if any, to the file given by fileName.
Public methodSaveAs(String, DocumentSaveSettings)
Saves the currently loaded document to the specified file name.
Public methodSaveAs(LibraryItem, String, LibraryItemMetadataSettings, DocumentSaveSettings)
Saves the currently loaded document to the library with the specified title in the specified folder.
Public methodSaveCopy(String, DocumentSaveSettings)
Saves a copy of the currently loaded document to the specified file name.
Public methodSaveCopy(LibraryItem, String, LibraryItemMetadataSettings, DocumentSaveSettings)
Saves a copy of the currently loaded document to the library with the specified title in the specified folder.
Public methodSaveToLibrary(Guid, DocumentSaveSettings) Obsolete.
Saves the current document in the Spotfire Server Library and overwrites an existing document. This operation can only be used to overwrite an already existing document in the library.
Public methodSaveToLibrary(String, String, String, String) Obsolete.
Saves the current document in the Spotfire Server Library.
Public methodSaveToLibrary(String, String, String, String, Boolean, DocumentSaveSettings) Obsolete.
Saves the current document in the Spotfire Server Library and overwrites an existing document if necessary.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events

  NameDescription
Public eventDocumentChanged
Occurs when the Document property has changed. That is, the document has been closed or a new document has been opened.
Public eventDocumentClosing
Occurs when the Document is closing. All components that listen to events from the document must also listen to this event with handlers that only adds close actions using AddCloseAction(ClosingEventArgsTCloseAction). The typical responsibility of a close action is to tear down views of the document, which includes disposing ExternalEventManagers.
Public eventDocumentSaving
Raised before the Document is saved.
Public eventExiting
Raised before this analysis application instance exits.
Top
Extension Methods

  NameDescription
Public Extension MethodGetServiceTService
Convenience generic extension method that calls GetService(Type) and casts the result.
(Defined by Extensions.)
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implementationPrivate methodIDisposableDispose
Releases resources used by the AnalysisApplication object.
Top
Remarks

New objects of this type cannot be created. Also, the one and only instance of this class is available throughout the entire lifetime of the running instance of the application as a service.
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference