public class PaintModeParameter extends ChoiceParameter<PaintMode>
Constructor and Description |
---|
PaintModeParameter(String name,
GraphicExporter[] exporters)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ChoiceParameter<GraphicExporter> |
getFormatParameter()
Returns the parameter giving the graphics format to use.
|
OutputStreamParameter |
getOutputParameter()
Returns the parameter determining the output stream (if any)
to use for the graphics output.
|
Painter |
painterValue(Environment env)
Returns the value of this parameter as a Painter object.
|
void |
setValueFromPainter(Environment env,
Painter painter)
Sets the value for this parameter directly from a painter object.
|
getUsage, objectToString, setDefaultOption, setUsage, stringToObject
addOption, addOption, choiceToString, clearOptions, getName, getOption, getOptionNames, getOptions, getOptionValueList, stringifyOption, stringToChoice
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(String name, GraphicExporter[] exporters)
name
- parameter nameexporters
- list of graphic exporters for file output optionspublic OutputStreamParameter getOutputParameter()
public ChoiceParameter<GraphicExporter> getFormatParameter()
public void setValueFromPainter(Environment env, Painter painter) throws TaskException
painter
- value for parameterTaskException
public Painter painterValue(Environment env) throws TaskException
env
- execution environmentTaskException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.