public class PlotExample extends Object
| Constructor and Description | 
|---|
PlotExample(String name,
           String taskName,
           String[] params,
           String[] comments)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static PlotExample[] | 
createPlot2dExamples()
Returns a list of examples for the plot2d task. 
 | 
static PlotExample[] | 
createPlot3dExamples()
Returns a list of examples for the plot3d task. 
 | 
static PlotExample[] | 
createPlotHistExamples()
Returns a list of examples for the plothist task. 
 | 
static void | 
main(String[] args)
Writes example files ready for incorporation into documentation. 
 | 
String | 
writeImage()
Generates and outputs the image file showing the result of this
 example. 
 | 
void | 
writeXml(PrintStream out)
Outputs the XML for this example as a <dt><dd> element
 pair. 
 | 
public PlotExample(String name, String taskName, String[] params, String[] comments) throws TaskException, LoadException
name - example nametaskName - name of the STILTS task being usedparams - array of name=value pairs giving parameters;
                  a null in the list signifies line break for formattingcomments - array of lines consituting the example description;
                  concatenated must form one or more XML <p>
                  elementsTaskExceptionLoadExceptionpublic void writeXml(PrintStream out) throws IOException
out - destination streamIOExceptionpublic String writeImage() throws IOException, TaskException
IOExceptionTaskExceptionpublic static PlotExample[] createPlot2dExamples() throws TaskException, LoadException
TaskExceptionLoadExceptionpublic static PlotExample[] createPlot3dExamples() throws TaskException, LoadException
TaskExceptionLoadExceptionpublic static PlotExample[] createPlotHistExamples() throws TaskException, LoadException
TaskExceptionLoadExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.