cds.aladin
Class PlanObjet

java.lang.Object
  extended by cds.aladin.PlanObjet
All Implemented Interfaces:
TableParserConsumer

public final class PlanObjet
extends java.lang.Object
implements TableParserConsumer

Gestionnaire des objets d'un plan catalogue ou tool.

Version:
1.5 : (14 mars 2003) Recherche d'un éventuel champ _OID, et appelle a Source.setOID() dans ce cas, 1.5 : (25 juillet 2002) VOTable s'ajoute a Astrores, 1.4 : (21 mars 2002) 2 tentatives d'ouverture de l'URL, 1.3 : (8 mars 2001) Suppression limite objets pour donnees locales, 1.2 : (19 janvier 2001) Correction bug de l'objet unique en TSV, 1.1 : (23 nov 2000) Correction bug du clip lors d'un Draw(), 1.0 : (11 mai 99) Toilettage du code, 0.9 - 31 mars 1998
Author:
P. Fernique CDS

Method Summary
 void endResource()
          L'interface AstroRes
 void endTable()
          L'interface AstroRes
 int getDecIndex()
          Retourne l'indice de la colonne DEC si connu, sinon -1
 int getRaIndex()
          Retourne l'indice de la colonne RA si connu, sinon -1
 void setField(Field f)
          L'interface AstroRes
 void setFilter(java.lang.String filter)
          Interface pour le positionnement d'un filtre dédié
 void setRecord(double ra, double dec, java.lang.String[] value)
          L'interface TableParserConsumer
 void setResourceInfo(java.lang.String name, java.lang.String value)
          L'interface AstroRes
 void setTableInfo(java.lang.String name, java.lang.String value)
          L'interface AstroRes
 void setTableRaDecIndex(int nRa, int nDec)
          This method is called by the TableParserConsumer for delivering RA and DEC column index
 void setTarget(java.lang.String target)
          This method is called by the TableParser parser when the XML tag INFO ID="Target"... is encountered.
 void startResource(java.lang.String name)
          L'interface AstroRes
 void startTable(java.lang.String name)
          L'interface AstroRes
 void tableParserInfo(java.lang.String msg)
          This method is called by the TableParserConsumer for delivering parsing information
 void tableParserWarning(java.lang.String msg)
          This method is called by the TableParserConsumer for delivering not crucial error
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

startResource

public void startResource(java.lang.String name)
L'interface AstroRes

Specified by:
startResource in interface TableParserConsumer
Parameters:
name - the ID of the resource, or null if there isn't

setFilter

public void setFilter(java.lang.String filter)
Interface pour le positionnement d'un filtre dédié

Specified by:
setFilter in interface TableParserConsumer

setResourceInfo

public void setResourceInfo(java.lang.String name,
                            java.lang.String value)
L'interface AstroRes

Specified by:
setResourceInfo in interface TableParserConsumer
Parameters:
name - The name of the embedded element
value - The contain of the embedded element

endResource

public void endResource()
L'interface AstroRes

Specified by:
endResource in interface TableParserConsumer

startTable

public void startTable(java.lang.String name)
L'interface AstroRes

Specified by:
startTable in interface TableParserConsumer
Parameters:
name - the ID of the resource, or null if there isn't

setTableInfo

public void setTableInfo(java.lang.String name,
                         java.lang.String value)
L'interface AstroRes

Specified by:
setTableInfo in interface TableParserConsumer
Parameters:
name - The name of the embedded element
value - The contain of the embedded element

endTable

public void endTable()
L'interface AstroRes

Specified by:
endTable in interface TableParserConsumer

setField

public void setField(Field f)
L'interface AstroRes

Specified by:
setField in interface TableParserConsumer
Parameters:
f - the Field

setRecord

public void setRecord(double ra,
                      double dec,
                      java.lang.String[] value)
L'interface TableParserConsumer

Specified by:
setRecord in interface TableParserConsumer
Parameters:
ra - the position of the astronomical object associated
value - each field of the line

tableParserWarning

public void tableParserWarning(java.lang.String msg)
This method is called by the TableParserConsumer for delivering not crucial error

Specified by:
tableParserWarning in interface TableParserConsumer

tableParserInfo

public void tableParserInfo(java.lang.String msg)
This method is called by the TableParserConsumer for delivering parsing information

Specified by:
tableParserInfo in interface TableParserConsumer

setTableRaDecIndex

public void setTableRaDecIndex(int nRa,
                               int nDec)
This method is called by the TableParserConsumer for delivering RA and DEC column index

Specified by:
setTableRaDecIndex in interface TableParserConsumer
Parameters:
nRa - RA column index (0=first column)
nDec - DEC column index (0=first column)

getRaIndex

public int getRaIndex()
Retourne l'indice de la colonne RA si connu, sinon -1


getDecIndex

public int getDecIndex()
Retourne l'indice de la colonne DEC si connu, sinon -1


setTarget

public void setTarget(java.lang.String target)
Description copied from interface: TableParserConsumer
This method is called by the TableParser parser when the XML tag INFO ID="Target"... is encountered.

Specified by:
setTarget in interface TableParserConsumer
Parameters:
target - the target of the table in ASU format (ex:001.286804+67.840004,bm=14.100000/14.1)


Copyright © 2009 UDS/CNRS