public class FontParameter extends StyleParameter<java.lang.String>
Constructor and Description |
---|
FontParameter(java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Font |
fontValue(uk.ac.starlink.task.Environment env)
Returns the value of this parameter as a font.
|
uk.ac.starlink.task.Parameter[] |
getAssociatedParameters()
Returns parameters associated with this one which select other
font characteristics.
|
getOptionList, getUsage, setUsage, stringifyOption
addOption, addOption, clearOptions, getName, getOption, getOptionNames, getOptions, getOptionValueList, objectToString, setDefaultOption, 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 FontParameter(java.lang.String name)
name
- parameter base namepublic uk.ac.starlink.task.Parameter[] getAssociatedParameters()
public java.awt.Font fontValue(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.