public abstract class StyleFactory
extends java.lang.Object
Style
object from the environment.Modifier | Constructor and Description |
---|---|
protected |
StyleFactory(java.lang.String prefix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract uk.ac.starlink.task.Parameter[] |
getParameters(java.lang.String stSuffix)
Returns the parameters used by this factory.
|
abstract Style |
getStyle(uk.ac.starlink.task.Environment env,
java.lang.String stSuffix)
Obtains a Style object from the environment by examining parameters.
|
int |
getStyleIndex(java.lang.String suffix)
Returns a zero-based index associated with a given suffix for this
factory.
|
java.lang.String |
paramName(java.lang.String baseName,
java.lang.String stSuffix)
Assembles a parameter name from a base name and a dataset suffix.
|
protected StyleFactory(java.lang.String prefix)
prefix
- prefix to be prepended to all parameters used by this
factorypublic abstract uk.ac.starlink.task.Parameter[] getParameters(java.lang.String stSuffix)
stSuffix
- label identifying the data set for which the style
will be requiredpublic abstract Style getStyle(uk.ac.starlink.task.Environment env, java.lang.String stSuffix) throws uk.ac.starlink.task.TaskException
env
- execution environmentstSuffix
- label identifying the data set for which the style
is requireduk.ac.starlink.task.TaskException
public java.lang.String paramName(java.lang.String baseName, java.lang.String stSuffix)
baseName
- parameter base namestSuffix
- label identifying datasetpublic int getStyleIndex(java.lang.String suffix)
suffix
- identifierCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.