public class PaintModeParameter extends uk.ac.starlink.task.ChoiceParameter<PaintMode>
Constructor and Description |
---|
PaintModeParameter(java.lang.String name,
GraphicExporter[] exporters)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
uk.ac.starlink.task.ChoiceParameter<GraphicExporter> |
getFormatParameter()
Returns the parameter giving the graphics format to use.
|
uk.ac.starlink.task.OutputStreamParameter |
getOutputParameter()
Returns the parameter determining the output stream (if any)
to use for the graphics output.
|
Painter |
painterValue(uk.ac.starlink.task.Environment env)
Returns the value of this parameter as a Painter object.
|
void |
setValueFromPainter(uk.ac.starlink.task.Environment env,
Painter painter)
Sets the value for this parameter directly from a painter object.
|
addOption, addOption, clearOptions, getName, getOption, getOptionNames, getOptions, getOptionValueList, getUsage, objectToString, setDefaultOption, setUsage, stringifyOption, stringToObject
clearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toString
public PaintModeParameter(java.lang.String name, GraphicExporter[] exporters)
name
- parameter nameexporters
- list of graphic exporters for file output optionspublic uk.ac.starlink.task.OutputStreamParameter getOutputParameter()
public uk.ac.starlink.task.ChoiceParameter<GraphicExporter> getFormatParameter()
public void setValueFromPainter(uk.ac.starlink.task.Environment env, Painter painter) throws uk.ac.starlink.task.TaskException
painter
- value for parameteruk.ac.starlink.task.TaskException
public Painter painterValue(uk.ac.starlink.task.Environment env) throws uk.ac.starlink.task.TaskException
env
- execution environmentuk.ac.starlink.task.TaskException
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.