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, requiresAdjustFromDatapublic Parameter<?>[] getParameters()
PlotStateFactorygetParameters in class PlotStateFactoryprotected PlotState createPlotState()
PlotStateFactorycreatePlotState in class PlotStateFactoryprotected void configurePlotState(PlotState pstate, Environment env) throws TaskException
PlotStateFactoryPlotStateFactory.createPlotState().configurePlotState in class PlotStateFactorypstate - plot state to configureenv - execution environmentTaskExceptionprotected 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
PlotStateFactoryPlotStateFactory.configurePlotState(uk.ac.starlink.ttools.plot.PlotState, uk.ac.starlink.task.Environment); may be overridden by subclasses.createPlotData in class PlotStateFactoryenv - 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 valuesTaskExceptiongnu.jel.CompilationExceptionprotected StyleFactory createStyleFactory(String prefix)
PlotStateFactorycreateStyleFactory in class PlotStateFactoryprefix - prefix to use for all style-type variablesprotected boolean requiresConfigureFromBounds(PlotState state)
PlotStateFactoryPlotStateFactory.configureFromBounds(uk.ac.starlink.ttools.plot.PlotState, uk.ac.starlink.ttools.plot.DataBounds) will be called
later.requiresConfigureFromBounds in class PlotStateFactorystate - plot stateprotected void configureFromBounds(PlotState pstate, DataBounds bounds)
PlotStateFactoryconfigureFromBounds in class PlotStateFactorypstate - plot state to updatebounds - data bounds calculated by a pass through the dataCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.