skyview.request
Class HTMLWriter

java.lang.Object
  extended by skyview.request.HTMLWriter
All Implemented Interfaces:
java.io.Serializable, Component, Processor
Direct Known Subclasses:
RGBWriter

public class HTMLWriter
extends java.lang.Object
implements Processor

See Also:
Serialized Form

Constructor Summary
HTMLWriter()
           
 
Method Summary
 java.lang.String getDescription()
          Get the description of this component.
 java.lang.String getName()
          Get the name of this component.
protected  void printoutTemplate(java.lang.String fileSetting)
           
 void process(Image[] inputs, Image output, int[] sources, Sampler samp, DepthSampler dpSamp)
          Perform the processing task associated with this object.
static java.lang.String slurp(java.lang.String file)
           
 void updateHeader(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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLWriter

public HTMLWriter()
Method Detail

process

public void process(Image[] inputs,
                    Image output,
                    int[] sources,
                    Sampler samp,
                    DepthSampler dpSamp)
Description copied from interface: Processor
Perform the processing task associated with this object.

Specified by:
process in interface Processor
Parameters:
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).

updateHeader

public void updateHeader(Header hdr)
Description copied from interface: Processor
Update the FITS header to indicate what processing was done.

Specified by:
updateHeader in interface Processor

getName

public java.lang.String getName()
Description copied from interface: Component
Get the name of this component.

Specified by:
getName in interface Component

getDescription

public java.lang.String getDescription()
Description copied from interface: Component
Get the description of this component.

Specified by:
getDescription in interface Component

writeHeader

public void writeHeader()

writeFooter

public void writeFooter()

printoutTemplate

protected void printoutTemplate(java.lang.String fileSetting)

slurp

public static java.lang.String slurp(java.lang.String file)

updateSettings

protected void updateSettings(Image output,
                              Sampler samp)
Update the settings before creating the appropiate HTML