public abstract class PlotContext<P,A> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GEOM_PARAM_NAME
Name of the standard geometry parameter.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PlotContext(PlotType<P,A> plotType,
DataGeom[] exampleGeoms)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <P,A> PlotContext<P,A> |
createFixedContext(PlotType<P,A> plotType,
DataGeom geom)
Constructs a PlotContext which always uses a fixed given DataGeom.
|
static <P,A> PlotContext<P,A> |
createStandardContext(PlotType<P,A> plotType)
Constructs a PlotContext which allows per-layer choice of DataGeom
between those known by a given plot type.
|
DataGeom[] |
getExampleGeoms()
Returns a list of one or more DataGeom objects to be used for
example purposes.
|
abstract DataGeom |
getGeom(Environment env,
String layerSuffix)
Returns the DataGeom to use for a given layer in the context of a
given execution environment.
|
abstract Parameter<?> |
getGeomParameter(String layerSuffix)
Returns a parameter associated with a particular layer
required for determining DataGeom at runtime, if any.
|
PlotType<P,A> |
getPlotType()
Returns the plot type.
|
public static final String GEOM_PARAM_NAME
public DataGeom[] getExampleGeoms()
public abstract Parameter<?> getGeomParameter(String layerSuffix)
layerSuffix - parameter suffix string identifying a plot layerpublic abstract DataGeom getGeom(Environment env, String layerSuffix) throws TaskException
env - execution environmentlayerSuffix - parameter suffix string identifying a plot layerTaskExceptionpublic static <P,A> PlotContext<P,A> createStandardContext(PlotType<P,A> plotType)
plotType - plot typepublic static <P,A> PlotContext<P,A> createFixedContext(PlotType<P,A> plotType, DataGeom geom)
plotType - plot typegeom - data geom used in all casesCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.