|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plottask.StyleFactory
public abstract class StyleFactory
Defines an object which can obtain a Style
object from the environment.
Constructor Summary | |
---|---|
protected |
StyleFactory(String prefix)
Constructor. |
Method Summary | |
---|---|
abstract uk.ac.starlink.task.Parameter[] |
getParameters(String stSuffix)
Returns the parameters used by this factory. |
abstract Style |
getStyle(uk.ac.starlink.task.Environment env,
String stSuffix)
Obtains a Style object from the environment by examining parameters. |
int |
getStyleIndex(String suffix)
Returns a zero-based index associated with a given suffix for this factory. |
String |
paramName(String baseName,
String stSuffix)
Assembles a parameter name from a base name and a dataset suffix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected StyleFactory(String prefix)
prefix
- prefix to be prepended to all parameters used by this
factoryMethod Detail |
---|
public abstract uk.ac.starlink.task.Parameter[] getParameters(String stSuffix)
stSuffix
- label identifying the data set for which the style
will be requiredpublic abstract Style getStyle(uk.ac.starlink.task.Environment env, String stSuffix) throws uk.ac.starlink.task.TaskException
env
- execution environmentstSuffix
- label identifying the data set for which the style
is required
uk.ac.starlink.task.TaskException
public String paramName(String baseName, String stSuffix)
baseName
- parameter base namestSuffix
- label identifying dataset
public int getStyleIndex(String suffix)
suffix
- identifier
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |