public class Plot2Example extends Object
Constructor and Description |
---|
Plot2Example(String label,
uk.ac.starlink.ttools.build.Plot2Example.Context context,
uk.ac.starlink.ttools.build.Plot2Example.PlotTask task,
String[] params)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Picture |
createPicture(String[] extraParams)
Constructs an object giving this example's plot ready for output.
|
static Map<String,String> |
getExamplesXml()
Returns a map from the names of the known examples to
their XML invocation text.
|
String |
getLabel()
Returns this example's name.
|
String[] |
getLines()
Returns the lines representing the stilts command you would type
to execute this example.
|
String[] |
getRequiredTableNames()
Returns the names of table files that must be in place for this
example to run.
|
String |
getXml()
Returns XML text representing the stilts command you would type
to execute this example.
|
static void |
main(String[] args)
Main method.
|
void |
testParams()
Tests that this example can execute, but does not run the
actual plotting code.
|
public Plot2Example(String label, uk.ac.starlink.ttools.build.Plot2Example.Context context, uk.ac.starlink.ttools.build.Plot2Example.PlotTask task, String[] params)
label
- name of examplecontext
- example execution contexttask
- the STILTS task used for the plotparams
- array of [*!]name=value pairs giving parameters;
a prepended "*" indicates emphasis;
a prepended "!" hides it from user view;
value
part may be enclosed in single quotes;
a null in the list signifies line break for formattingpublic String getLabel()
public String[] getLines()
public String getXml()
public Picture createPicture(String[] extraParams) throws IOException, TaskException, InterruptedException, LoadException
extraParams
- additional name=value strings to apply
when doing the plotIOException
TaskException
InterruptedException
LoadException
public void testParams() throws Exception
Exception
public String[] getRequiredTableNames()
public static Map<String,String> getExamplesXml()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.