AnalysisApplication Class TIBCO Spotfire 7.6 API Reference
Represents the currently running TIBCO 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.

Inheritance Hierarchy

SystemObject
  Spotfire.Dxp.ApplicationAnalysisApplication

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

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

The AnalysisApplication type exposes the following members.

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.
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 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 TIBCO Spotfire Server library with a known name located at a known path.
Public methodCode exampleOpenFromLibrary(String, String, DocumentOpenSettings) Obsolete.
Opens a file from the TIBCO Spotfire Server library with a known name located at a known path.
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 TIBCO 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 TIBCO Spotfire Server Library.
Public methodSaveToLibrary(String, String, String, String, Boolean, DocumentSaveSettings) Obsolete.
Saves the current document in the TIBCO Spotfire Server Library and overwrites an existing document if necessary.
Top
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
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
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: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference