Interface between Aladin and Specview
The interface between Aladin and Specview is straightforward, as the only required feature is being able to load a spectra from a "metadata tree" into Specview. Thus, no callback from Specview to Aladin is needed.
Aladin handles a reference to a Specview object. This object is lazy created (ie when needed) with the following constructor (in class spv.Specview):
/**
* Constructor. This is the constructor to call from external software
* that uses Specview as a bundable component.
*/
public Specview()
Then, each time a spectrum is loaded by the user, we call the overplot method:
/**
* This is the method to be called from a external application in order
* to plot or overplot a spectrum. The first call to this method will
* create a new plot. Successive calls to this method will keep
* overploting the new data onto whatever was already being displayed
* by Speciew.
* In case the input file contains more than one spectrum, the URL must
* contain all required information to point to the desired spectrum(a)
* within the file. See Specview's help file or the Javadoc pages
* related to the spectrum factory classes. For example: if one wants
* to display only the spectral orders stored in rows 15 to 17 in FITS
* extension number 1 in STIS 1-D file C:/data/o47s01k9q_x1d.fits, one
* should use as URL the string:
* "file:C:/data/o47s01k9q_x1d.fits[1][15,16,17]"
* or, from a remote location:
* "http://specview.stsci.edu/o47s01k9q_x1d.fits[1][15,16,17]"
*
*
* @param url the URL of the file containing the spectrum to be displayed
* @see spv.spectrum.factory.SpectrumFactory
*/
public void overplot (URL url)
|