Package uk.ac.starlink.ttools.plottask
Class FontParameter
- java.lang.Object
-
- uk.ac.starlink.task.Parameter<T>
-
- uk.ac.starlink.task.AbstractChoiceParameter<T,T>
-
- uk.ac.starlink.task.ChoiceParameter<T>
-
- uk.ac.starlink.ttools.plottask.StyleParameter<java.lang.String>
-
- uk.ac.starlink.ttools.plottask.FontParameter
-
public class FontParameter extends StyleParameter<java.lang.String>
Parameter for font selection.- Since:
- 12 Aug 2008
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description FontParameter(java.lang.String name)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class uk.ac.starlink.ttools.plottask.StyleParameter
getOptionList, getUsage, setUsage, stringifyOption
-
Methods inherited from class uk.ac.starlink.task.ChoiceParameter
objectToString, setDefaultOption, stringToObject
-
Methods inherited from class uk.ac.starlink.task.AbstractChoiceParameter
addOption, addOption, choiceToString, clearOptions, getName, getOption, getOptionNames, getOptions, getOptionValueList, stringToChoice
-
Methods inherited from class uk.ac.starlink.task.Parameter
clearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toString
-
-
-
-
Method Detail
-
getAssociatedParameters
public uk.ac.starlink.task.Parameter<?>[] getAssociatedParameters()
Returns parameters associated with this one which select other font characteristics.- Returns:
- array of font parameters
-
fontValue
public java.awt.Font fontValue(uk.ac.starlink.task.Environment env) throws uk.ac.starlink.task.TaskException
Returns the value of this parameter as a font.- Parameters:
env
- execution environment- Returns:
- font
- Throws:
uk.ac.starlink.task.TaskException
-
-