public abstract class PlotContext
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
PlotContext(PlotType plotType,
DataGeom[] exampleGeoms,
GangerFactory gangerFact)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static PlotContext |
createFixedContext(PlotType plotType,
DataGeom geom,
GangerFactory gangerFact)
Constructs a PlotContext which always uses a fixed given DataGeom.
|
static PlotContext |
createStandardContext(PlotType plotType,
GangerFactory gangerFact)
Constructs a PlotContext which allows per-layer choice 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.
|
GangerFactory |
getGangerFactory()
Returns the ganger factory used by this context.
|
abstract DataGeom |
getGeom(uk.ac.starlink.task.Environment env,
java.lang.String layerSuffix)
Returns the DataGeom to use for a given layer in the context of a
given execution environment.
|
abstract uk.ac.starlink.task.Parameter[] |
getGeomParameters(java.lang.String layerSuffix)
Returns an array of parameters associated with a particular layer
required for determining DataGeom at runtime.
|
PlotType |
getPlotType()
Returns the plot type.
|
protected PlotContext(PlotType plotType, DataGeom[] exampleGeoms, GangerFactory gangerFact)
plotType
- plot typeexampleGeoms
- example data geomsgangerFact
- defines plot groupingpublic PlotType getPlotType()
public DataGeom[] getExampleGeoms()
public GangerFactory getGangerFactory()
public abstract uk.ac.starlink.task.Parameter[] getGeomParameters(java.lang.String layerSuffix)
layerSuffix
- parameter suffix string identifying a plot layerpublic abstract DataGeom getGeom(uk.ac.starlink.task.Environment env, java.lang.String layerSuffix) throws uk.ac.starlink.task.TaskException
env
- execution environmentlayerSuffix
- parameter suffix string identifying a plot layeruk.ac.starlink.task.TaskException
public static PlotContext createStandardContext(PlotType plotType, GangerFactory gangerFact)
plotType
- plot typegangerFact
- defines plot groupingpublic static PlotContext createFixedContext(PlotType plotType, DataGeom geom, GangerFactory gangerFact)
plotType
- plot typegeom
- data geom used in all casesgangerFact
- defines plot groupingCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.