|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plottask.PlotStateFactory
uk.ac.starlink.ttools.plottask.HistogramPlotStateFactory
public class HistogramPlotStateFactory
PlotStateFactory for a histogram plot.
Field Summary |
---|
Fields inherited from class uk.ac.starlink.ttools.plottask.PlotStateFactory |
---|
AUX_VARIABLE, SUBSET_VARIABLE, TABLE_VARIABLE |
Constructor Summary | |
---|---|
HistogramPlotStateFactory()
Constructor. |
Method Summary | |
---|---|
protected void |
configureFromBounds(PlotState pstate,
DataBounds bounds)
Updates a plot state generated by this factory with information generated from a first pass through the data. |
protected void |
configurePlotState(PlotState pstate,
Environment env)
Configures a PlotState object by examining parameter values in a given execution environment. |
protected TablePlotData |
createPlotData(Environment env,
String tLabel,
StarTable table,
String[] setExprs,
String[] setNames,
Style[] setStyles,
String labelExpr,
String[] coordExprs,
String[] errExprs)
Constructs a PlotData object. |
protected PlotState |
createPlotState()
Creates a new unconfigured PlotState object suitable for configuration by this factory. |
protected StyleFactory |
createStyleFactory(String prefix)
Constructs a style factory which can retrieve a plotting style suitable for use with this factory from the environment. |
Parameter[] |
getParameters()
Returns the parameters associated with this object. |
protected boolean |
requiresConfigureFromBounds(PlotState state)
Indicates whether it is necessary to calculate the DataBounds for a given PlotState before it is ready to be used. |
Methods inherited from class uk.ac.starlink.ttools.plottask.PlotStateFactory |
---|
adjustFromData, calculateBounds, configureFromData, getPlotState, requiresAdjustFromData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HistogramPlotStateFactory()
Method Detail |
---|
public Parameter[] getParameters()
PlotStateFactory
getParameters
in class PlotStateFactory
protected PlotState createPlotState()
PlotStateFactory
createPlotState
in class PlotStateFactory
protected void configurePlotState(PlotState pstate, Environment env) throws TaskException
PlotStateFactory
PlotStateFactory.createPlotState()
.
configurePlotState
in class PlotStateFactory
pstate
- plot state to configureenv
- execution environment
TaskException
protected TablePlotData createPlotData(Environment env, String tLabel, StarTable table, String[] setExprs, String[] setNames, Style[] setStyles, String labelExpr, String[] coordExprs, String[] errExprs) throws TaskException, gnu.jel.CompilationException
PlotStateFactory
PlotStateFactory.configurePlotState(uk.ac.starlink.ttools.plot.PlotState, uk.ac.starlink.task.Environment)
; may be overridden by subclasses.
createPlotData
in class PlotStateFactory
env
- execution environmenttLabel
- table identifier suffixtable
- input tablesetExprs
- nset-element JEL boolean-valued expression array
for set inclusionsetNames
- nset-element set name arraysetStyles
- nset-elemnt set style arraylabelExpr
- JEL expression for text labelcoordExprs
- ndim-element JEL double-valued expression array
for coordinate valueserrExprs
- nerr-element expression(s) array for error values
TaskException
gnu.jel.CompilationException
protected StyleFactory createStyleFactory(String prefix)
PlotStateFactory
createStyleFactory
in class PlotStateFactory
prefix
- prefix to use for all style-type variablesprotected boolean requiresConfigureFromBounds(PlotState state)
PlotStateFactory
PlotStateFactory.configureFromBounds(uk.ac.starlink.ttools.plot.PlotState, uk.ac.starlink.ttools.plot.DataBounds)
will be called
later.
requiresConfigureFromBounds
in class PlotStateFactory
state
- plot state
protected void configureFromBounds(PlotState pstate, DataBounds bounds)
PlotStateFactory
configureFromBounds
in class PlotStateFactory
pstate
- plot state to updatebounds
- data bounds calculated by a pass through the data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |