Package uk.ac.starlink.ttools.plottask
Class BarStyleFactory
- java.lang.Object
-
- uk.ac.starlink.ttools.plottask.StyleFactory
-
- uk.ac.starlink.ttools.plottask.BarStyleFactory
-
public class BarStyleFactory extends StyleFactory
StyleFactory for BarStyle objects suitable for use with a histogram.- Since:
- 14 Aug 2008
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description BarStyleFactory(java.lang.String prefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description uk.ac.starlink.task.Parameter<?>[]getParameters(java.lang.String stSuffix)Returns the parameters used by this factory.StylegetStyle(uk.ac.starlink.task.Environment env, java.lang.String stSuffix)Obtains a Style object from the environment by examining parameters.-
Methods inherited from class uk.ac.starlink.ttools.plottask.StyleFactory
getStyleIndex, paramName
-
-
-
-
Method Detail
-
getParameters
public uk.ac.starlink.task.Parameter<?>[] getParameters(java.lang.String stSuffix)
Description copied from class:StyleFactoryReturns the parameters used by this factory.- Specified by:
getParametersin classStyleFactory- Parameters:
stSuffix- label identifying the data set for which the style will be required
-
getStyle
public Style getStyle(uk.ac.starlink.task.Environment env, java.lang.String stSuffix) throws uk.ac.starlink.task.TaskException
Description copied from class:StyleFactoryObtains a Style object from the environment by examining parameters.- Specified by:
getStylein classStyleFactory- Parameters:
env- execution environmentstSuffix- label identifying the data set for which the style is required- Returns:
- plotting style
- Throws:
uk.ac.starlink.task.TaskException
-
-