public class DashParameter extends NamedObjectParameter<float[]>
BasicStroke.getDashArray()
Constructor and Description |
---|
DashParameter(String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float[] |
dashValue(Environment env)
Returns the value of this parameter as a dash array.
|
float[] |
fromString(String name)
Translates a string value for this parameter into the object value
which it represents.
|
String |
getFormatDescription()
Returns an XML string, suitable for inclusion into a parameter
description, which explains the format of values accepted by this
parameter.
|
String |
toString(float[] dash)
Translates a possible option value of this parameter into a string
which represents it as a string value.
|
addOption, getNames, getOptionList, getOptions, getUsage, setDefaultOption, setUsage, stringToObject
clearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectToString, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toString
public DashParameter(String name)
name
- parameter namepublic String getFormatDescription()
public float[] dashValue(Environment env) throws TaskException
TaskException
public String toString(float[] dash)
NamedObjectParameter
toString
in class NamedObjectParameter<float[]>
dash
- object valuepublic float[] fromString(String name)
NamedObjectParameter
The implementation must be such that
fromString(toString(o)).equals(o)
.
fromString
in class NamedObjectParameter<float[]>
name
- option nameCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.