public class DashParameter extends NamedObjectParameter<float[]>
BasicStroke.getDashArray()| Constructor | Description |
|---|---|
DashParameter(java.lang.String name) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
float[] |
dashValue(uk.ac.starlink.task.Environment env) |
Returns the value of this parameter as a dash array.
|
float[] |
fromString(java.lang.String name) |
Translates a string value for this parameter into the object value
which it represents.
|
java.lang.String |
getFormatDescription() |
Returns an XML string, suitable for inclusion into a parameter
description, which explains the format of values accepted by this
parameter.
|
java.lang.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, stringToObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectToString, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toStringpublic DashParameter(java.lang.String name)
name - parameter namepublic java.lang.String getFormatDescription()
public float[] dashValue(uk.ac.starlink.task.Environment env)
throws uk.ac.starlink.task.TaskException
uk.ac.starlink.task.TaskExceptionpublic java.lang.String toString(float[] dash)
NamedObjectParametertoString in class NamedObjectParameter<float[]>dash - object valuepublic float[] fromString(java.lang.String name)
NamedObjectParameterThe implementation must be such that
fromString(toString(o)).equals(o).
fromString in class NamedObjectParameter<float[]>name - option nameCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.