public class HTMLWriter extends Processor
Constructor and Description |
---|
HTMLWriter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
A description for the compontent.
|
java.lang.String |
getName()
A name for the component
|
protected void |
printoutTemplate(java.lang.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 java.lang.String |
slurp(java.lang.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.
|
boolean |
updatesOutput()
Does this processor actually modify the output array?
|
void |
writeFooter()
Write the footer for the HTML plage
|
void |
writeHeader()
Write the header for the HTML page
|
public boolean updatesOutput()
Processor
updatesOutput
in class Processor
public void process(Image[] inputs, Image output, int[] sources, Sampler samp, DepthSampler dpSamp)
public void updateHeader(nom.tam.fits.Header hdr)
updateHeader
in class Processor
hdr
- The header to be modified.protected void setSettings()
public java.lang.String getName()
public java.lang.String getDescription()
public void writeHeader()
public void writeFooter()
protected void printoutTemplate(java.lang.String fileSetting)
fileSetting
- The file template to be used.public static java.lang.String slurp(java.lang.String file)
file
- The file to be read