|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.task.Parameter
uk.ac.starlink.task.ChoiceParameter
uk.ac.starlink.ttools.plottask.StyleParameter
public class StyleParameter
ChoiceParameter subclass suitable for use with plotting style configuration. Adds a few useful customisations.
Constructor Summary | |
---|---|
StyleParameter(String name)
Constructs a StyleParameter without initialising any options. |
|
StyleParameter(String name,
Object[] options)
Constructs a StyleParameter with a given list of options. |
Method Summary | |
---|---|
String |
getName(Object option)
|
String |
getOptionList()
Returns a formatted XML string giving an unordered list of the options for this parameter. |
String |
getUsage()
|
void |
setUsage(String usage)
|
Methods inherited from class uk.ac.starlink.task.ChoiceParameter |
---|
addOption, addOption, getOption, getOptionNames, getOptions, objectValue, setDefaultOption, setValueFromString |
Methods inherited from class uk.ac.starlink.task.Parameter |
---|
checkGotValue, clearValue, getDefault, getDescription, getName, getPosition, getPreferExplicit, getPrompt, isNullPermitted, setDefault, setDescription, setDescription, setGotValue, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringValue, stringValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StyleParameter(String name, Object[] options)
name
- parameter nameoptions
- list of optionspublic StyleParameter(String name)
name
- parameter nameMethod Detail |
---|
public void setUsage(String usage)
setUsage
in class uk.ac.starlink.task.ChoiceParameter
public String getUsage()
getUsage
in class uk.ac.starlink.task.ChoiceParameter
public String getOptionList()
public String getName(Object option)
getName
in class uk.ac.starlink.task.ChoiceParameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |