Package skyview.request
Class HTMLWriter
java.lang.Object
skyview.process.Processor
skyview.request.HTMLWriter
- All Implemented Interfaces:
Serializable,Component
- Direct Known Subclasses:
RGBWriter
This class writes the HTML output for SkyView web services
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA description for the compontent.getName()A name for the componentprotected voidprintoutTemplate(String fileSetting) Fill out the appropriate file template by reading the template and substituting in any variables with the current settings.voidprocess(Image[] inputs, Image output, int[] sources, Sampler samp, DepthSampler dpSamp) Process the image.protected voidThis method writes out the settings so that JavaScript can use them.static StringRead a file into a big string.voidupdateHeader(nom.tam.fits.Header hdr) Update the FITS header.protected voidupdateSettings(Image output, Sampler samp) Update the settings before creating the appropriate HTML.booleanDoes this processor actually modify the output array?voidWrite the footer for the HTML plagevoidWrite the header for the HTML page
-
Constructor Details
-
HTMLWriter
public HTMLWriter()
-
-
Method Details
-
updatesOutput
public boolean updatesOutput()Description copied from class:ProcessorDoes this processor actually modify the output array?- Specified by:
updatesOutputin classProcessor
-
process
Process the image. This should happen late. -
updateHeader
public void updateHeader(nom.tam.fits.Header hdr) Update the FITS header. This processor does not modify the FITS file.- Specified by:
updateHeaderin classProcessor- Parameters:
hdr- The header to be modified.
-
setSettings
protected void setSettings()This method writes out the settings so that JavaScript can use them. -
getName
A name for the component -
getDescription
A description for the compontent. -
writeHeader
public void writeHeader()Write the header for the HTML page -
printoutTemplate
Fill out the appropriate file template by reading the template and substituting in any variables with the current settings.- Parameters:
fileSetting- The file template to be used.
-
slurp
Read a file into a big string.- Parameters:
file- The file to be read- Returns:
-
updateSettings
Update the settings before creating the appropriate HTML.- Parameters:
output- The output imagesamp- The sampler used to create the output image.
-