public class HistogramPlotStateFactory extends PlotStateFactory
AUX_VARIABLE, SUBSET_VARIABLE, TABLE_VARIABLE
Constructor and Description |
---|
HistogramPlotStateFactory()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
adjustFromData, calculateBounds, configureFromData, getPlotState, requiresAdjustFromData
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 environmentTaskException
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 valuesTaskException
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 stateprotected void configureFromBounds(PlotState pstate, DataBounds bounds)
PlotStateFactory
configureFromBounds
in class PlotStateFactory
pstate
- plot state to updatebounds
- data bounds calculated by a pass through the dataCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.