public class XMLSurvey extends Object implements Survey
Modifier and Type | Class and Description |
---|---|
protected class |
XMLSurvey.ImageFinderCallBack
The class the is called to find images in the Survey
XML file.
|
Constructor and Description |
---|
XMLSurvey(String file)
Create a survey whose characteristics are given in
an XML file.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doParse(SAXParser sp,
DefaultHandler handler)
Run a parser
|
String |
getDescription()
Get a description of the component
|
protected XMLSurvey.ImageFinderCallBack |
getFinderCallBack(Position pos,
double size,
double scale,
boolean needImages) |
Image[] |
getImages(Position pos,
double size,
double scale)
Find candidate images from this survey.
|
Map<String,String> |
getMetadata()
Get the metadata for the survey
|
String |
getName()
Get the name of the compontent
|
static Reader |
getSurveyReader(String file)
Get a buffered reader associated with the survey
given a string name.
|
void |
updateHeader(nom.tam.fits.Header h)
Update a FITS header with information from the XML file
|
void |
updateSettings()
Update the system settings
|
public XMLSurvey(String file)
public String getName()
public String getDescription()
getDescription
in interface Component
public Image[] getImages(Position pos, double size, double scale) throws Exception
protected XMLSurvey.ImageFinderCallBack getFinderCallBack(Position pos, double size, double scale, boolean needImages)
public void updateHeader(nom.tam.fits.Header h)
updateHeader
in interface Survey
public void updateSettings()
updateSettings
in interface Survey
protected void doParse(SAXParser sp, DefaultHandler handler) throws Exception
Exception
public static Reader getSurveyReader(String file) throws IOException
IOException