public class HTMLWriter extends Object implements Processor
Constructor and Description |
---|
HTMLWriter() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the description of this component.
|
String |
getName()
Get the name of this component.
|
protected void |
printoutTemplate(String fileSetting) |
void |
process(Image[] inputs,
Image output,
int[] sources,
Sampler samp,
DepthSampler dpSamp)
Perform the processing task associated with this object.
|
protected void |
setSettings()
This method writes out the settings so that
JavaScript can use them.
|
static String |
slurp(String file) |
void |
updateHeader(nom.tam.fits.Header hdr)
Update the FITS header to indicate what processing was done.
|
protected void |
updateSettings(Image output,
Sampler samp)
Update the settings before creating the appropiate HTML
|
void |
writeFooter() |
void |
writeHeader() |
public void process(Image[] inputs, Image output, int[] sources, Sampler samp, DepthSampler dpSamp)
Processor
process
in interface Processor
inputs
- The array of input survey images.output
- The output user image. A null output may signal
that an error has taken place. If this processor wishes
to do something in response to the error, it may look at the ErrorMsg setting.sources
- An array giving the source image for each output pixel.samp
- The sampler object used to do spatial sampling of the input images.dpSamp
- The sampler in the energy dimension (often null).public void updateHeader(nom.tam.fits.Header hdr)
Processor
updateHeader
in interface Processor
protected void setSettings()
public String getName()
Component
public String getDescription()
Component
getDescription
in interface Component
public void writeHeader()
public void writeFooter()
protected void printoutTemplate(String fileSetting)