public class TypedPlot2Task<P,A> extends AbstractPlot2Task
DOC_ZONE_SUFFIX, DOMAINMAPPER_SUFFIX, EXAMPLE_LAYER_SUFFIX, EXAMPLE_ZONE_SUFFIX, LAYER_PREFIX, ZONE_PREFIX
Constructor and Description |
---|
TypedPlot2Task(PlotType<P,A> plotType,
Map<ConfigKey<String>,Input> axlabelMap)
Constructs a plot task with a default plot context, and without
plot ganging.
|
TypedPlot2Task(PlotType<P,A> plotType,
Map<ConfigKey<String>,Input> axlabelMap,
PlotContext<P,A> context)
Constructs a plot task with a supplied PlotContext.
|
Modifier and Type | Method and Description |
---|---|
static <P,A> PlotContext<P,A> |
createDefaultPlotContext(PlotType<P,A> plotType)
Returns a default plot context for a given PlotType.
|
protected <T> String |
getConfigParamDefault(Environment env,
ConfigKey<T> key,
String[] suffixes)
May provide a default value for a given config parameter that is
sensitive to the content of the execution environment.
|
Parameter<?>[] |
getParameters()
Returns the list of parameters which may be used by this task.
|
PlotContext<P,A> |
getPlotContext()
Returns the fixed plot context for this task.
|
PlotContext<P,A> |
getPlotContext(Environment env)
Concrete subclasses must implement this method to provide
the PlotType and other information from the environment
that may not be available at construction time.
|
PlotType<P,A> |
getPlotType()
Returns the plot type.
|
String |
getPurpose()
Returns a short (one-line) description of the purpose of this task.
|
createAuxCrowdParameter, createAuxLabelParameter, createAuxVisibleParameter, createAuxWidthParameter, createBasicConfigMap, createCaptioner, createConfigMap, createCustomConfigMap, createDataParameter, createDomainMapperParameter, createExecutable, createFilterParameter, createLabelParameter, createLayerSuffixedConfigMap, createLayerTypeParameter, createLegend, createLegendPositionParameter, createPaintModeParameter, createPlotComponent, createPlotConfiguration, createPlotIcon, createPlotIcon, createShadeAxisFactory, createTableParameter, createTitleParameter, createZoneParameter, getBasicParameters, getBitmapParameter, getCompositorParameter, getContextParameters, getCoordValue, getDataStoreParameter, getInputTable, getLegendBorderParameter, getLegendOpaqueParameter, getLegendParameter, getLegendSequenceParameter, getPaddingParameter, getParameterByName, getPlotters, getSequenceParameter, getXpixParameter, getYpixParameter, getZoneKeyParams, hasDomainMappers, hasZoneSuffixes, testEnv
public TypedPlot2Task(PlotType<P,A> plotType, Map<ConfigKey<String>,Input> axlabelMap, PlotContext<P,A> context)
The axlabelMap
parameter gives the chance to set
up a correspondence between axis label config keys and the coordinates
to which they correspond. If this is done, then the names of the
data values actually supplied to the task can be used as defaults
for the axis labels.
plotType
- fixed plot typeaxlabelMap
- mapping from axis label keys to corresponding
common data input coordinates, or nullcontext
- fixed plot contextpublic TypedPlot2Task(PlotType<P,A> plotType, Map<ConfigKey<String>,Input> axlabelMap)
The axlabelMap
parameter gives the chance to set
up a correspondence between axis label config keys and the coordinates
to which they correspond. If this is done, then the names of the
data values actually supplied to the task can be used as defaults
for the axis labels.
plotType
- fixed plot typeaxlabelMap
- mapping from axis label keys to corresponding
common data input coordinates, or nullpublic String getPurpose()
Task
public Parameter<?>[] getParameters()
Task
public PlotContext<P,A> getPlotContext(Environment env)
AbstractPlot2Task
getPlotContext
in class AbstractPlot2Task
env
- execution environmentpublic PlotContext<P,A> getPlotContext()
protected <T> String getConfigParamDefault(Environment env, ConfigKey<T> key, String[] suffixes) throws TaskException
AbstractPlot2Task
getConfigParamDefault
in class AbstractPlot2Task
env
- execution environmentkey
- config key for which a parameter is requiredsuffixes
- ordered list of the plot layer suffixes
in use for the plot being performedkey
,
or null if none is obviousTaskException
public static <P,A> PlotContext<P,A> createDefaultPlotContext(PlotType<P,A> plotType)
plotType
- plot typeCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.