|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VOApp
Interface between two Virtual Observatory applications, such as Aladin (CDS), VOPlot( VO-India), TOPcat, APT (STScI) to exchange data and have an object selection mechanism. This interface is totally symmetrical, it has to be implemented in both applications NOTA: This interface is based on a previous version called ExtApp but as some methods have been modified, VOApp do not extend ExtApp but reimplements its methods. ExtApp is deprecated.
Field Summary | |
---|---|
static int |
MEASURE
Measure event, see addObserver() |
static int |
PIXEL
Pixel event, see addObserver() |
static int |
POSITION
Position event, see addObserver() |
Method Summary | |
---|---|
void |
addObserver(VOObserver app,
int eventMasq)
To register an observer of VO events implementing VOObserver interface. |
java.lang.String |
execCommand(java.lang.String cmd)
Allow an "external" application to control by script this application |
java.io.InputStream |
getFITS(java.lang.String dataID)
To get a dataset in FITS format (typically for images) |
java.io.InputStream |
getVOTable(java.lang.String dataID)
To get a dataset in VOTable format (typically for catalogs). |
java.lang.String |
putFITS(java.io.InputStream in,
java.lang.String label)
To load an image to another application |
java.lang.String |
putVOTable(java.io.InputStream in,
java.lang.String label)
To load a VOTable to another application |
java.lang.String |
putVOTable(VOApp app,
java.io.InputStream in,
java.lang.String label)
Allow an "external" application to send new data via an InputStream in VOTable format. |
void |
selectVOTableObject(java.lang.String[] oid)
Call or Callback asking the other application to SELECT objects found in a VOTable previous transmission via loadVOTable() method. |
void |
setVisible(boolean flag)
Allow an "external" application to show or hide this application |
void |
showVOTableObject(java.lang.String[] oid)
Call or Callback asking the other application to SHOW objects found in a VOTable previous transmission via loadVOTable() method. |
Field Detail |
---|
static final int POSITION
static final int PIXEL
static final int MEASURE
Method Detail |
---|
java.lang.String putVOTable(java.io.InputStream in, java.lang.String label)
in
- VOTable streamdataset
- label, or nulljava.lang.String putVOTable(VOApp app, java.io.InputStream in, java.lang.String label)
app
- "external" application compliante with ExtApp java interfacein
- VOTable streamdataset
- label, or null
java.io.InputStream getVOTable(java.lang.String dataID)
dataID
- the dataset identifier (application dependent
for instance, the plane name in Aladin)
java.lang.String putFITS(java.io.InputStream in, java.lang.String label)
in
- FITS streamdataset
- label, or nulljava.io.InputStream getFITS(java.lang.String dataID)
dataID
- the dataset identifier (application dependent
for instance, the plane name in Aladin)
void showVOTableObject(java.lang.String[] oid)
oid
- list of identifiers found in VOTables (see comment of the
loadVOTable() method.void selectVOTableObject(java.lang.String[] oid)
oid
- list of identifiers found in VOTables (see comment of the
loadVOTable() method.void setVisible(boolean flag)
java.lang.String execCommand(java.lang.String cmd)
cmd
- script command depending to this application
void addObserver(VOObserver app, int eventMasq)
app
- the application to registereventMasq
- a bit field (use POSITION or PIXEL),
(0 to remove the observer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |