public class HTMLWriter extends Object implements Processor
| Constructor and Description |
|---|
HTMLWriter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
A description for the compontent.
|
String |
getName()
A name for the component
|
protected void |
printoutTemplate(String fileSetting)
Fill out the appropriate file template by reading the template
and substituting in any variables with the current settings.
|
void |
process(Image[] inputs,
Image output,
int[] sources,
Sampler samp,
DepthSampler dpSamp)
Process the image.
|
protected void |
setSettings()
This method writes out the settings so that
JavaScript can use them.
|
static String |
slurp(String file)
Read a file into a big string.
|
void |
updateHeader(nom.tam.fits.Header hdr)
Update the FITS header.
|
protected void |
updateSettings(Image output,
Sampler samp)
Update the settings before creating the appropriate HTML.
|
void |
writeFooter()
Write the footer for the HTML plage
|
void |
writeHeader()
Write the header for the HTML page
|
public void process(Image[] inputs, Image output, int[] sources, Sampler samp, DepthSampler dpSamp)
public void updateHeader(nom.tam.fits.Header hdr)
updateHeader in interface Processorhdr - The header to be modified.protected void setSettings()
public String getName()
public String getDescription()
getDescription in interface Componentpublic void writeHeader()
public void writeFooter()
protected void printoutTemplate(String fileSetting)
fileSetting - The file template to be used.public static String slurp(String file)
file - The file to be read