@Equality public interface Outliner
This interface provides two ways of drawing the same thing:
with a ShapePainter, which does it a point at a time,
and with a BinPlan, which accumulates all the pixel values for the
whole grid ready to paint in one go. They should represent the same
data, it's up to the caller which it uses.
| Modifier and Type | Method and Description |
|---|---|
Object |
calculateBinPlan(Surface surface,
DataGeom geom,
Map<AuxScale,Span> auxSpans,
DataStore dataStore,
DataSpec dataSpec,
Object[] knownPlans)
Calculates an opaque object which contains the drawing of this
outliner represented as an array of bins, one per pixel.
|
boolean |
canPaint(DataSpec dataSpec)
Indicates whether this outliner is willing to provide painters
for a given DataSpec.
|
ShapePainter |
create2DPainter(Surface surface,
DataGeom geom,
DataSpec dataSpec,
Map<AuxScale,Span> auxSpans,
PaperType2D paperType)
Creates a ShapePainter object for plotting onto 2-dimensional surfaces.
|
ShapePainter |
create3DPainter(CubeSurface surface,
DataGeom geom,
DataSpec dataSpec,
Map<AuxScale,Span> auxSpans,
PaperType3D paperType)
Creates a ShapePainter object for plotting onto 3-dimensional surfaces.
|
Map<AuxScale,AuxReader> |
getAuxRangers(DataGeom geom)
Defines what non-axis ranging information is required by this outliner.
|
int[] |
getBinCounts(Object binPlan)
Returns the bin contents for a given bin plan produced by
this object.
|
Icon |
getLegendIcon()
Returns an icon suitable for identifying points painted by this
object in a plot legend.
|
long |
getPointCount(Object binPlan)
Returns the number of data positions which contributed to
a BinPlan generated by this object.
|
ReportMap |
getReport(Object binPlan)
Obtains information associated with the plot.
|
Icon getLegendIcon()
Map<AuxScale,AuxReader> getAuxRangers(DataGeom geom)
geom - data geometryboolean canPaint(DataSpec dataSpec)
dataSpec - data specification for plotShapePainter create2DPainter(Surface surface, DataGeom geom, DataSpec dataSpec, Map<AuxScale,Span> auxSpans, PaperType2D paperType)
canPaint(uk.ac.starlink.ttools.plot2.data.DataSpec)
returns true for the supplied DataSpec.surface - plot surfacegeom - coordinate geometrydataSpec - data specificationauxSpans - map of scale information required for plotpaperType - 2-d paper typeShapePainter create3DPainter(CubeSurface surface, DataGeom geom, DataSpec dataSpec, Map<AuxScale,Span> auxSpans, PaperType3D paperType)
canPaint(uk.ac.starlink.ttools.plot2.data.DataSpec)
returns true for the supplied DataSpec.surface - 3-d plot surfacegeom - coordinate geometrydataSpec - data specificationauxSpans - map of scale information required for plotpaperType - 3-d paper typeObject calculateBinPlan(Surface surface, DataGeom geom, Map<AuxScale,Span> auxSpans, DataStore dataStore, DataSpec dataSpec, Object[] knownPlans)
getBinCounts(java.lang.Object) and getPointCount(java.lang.Object) methods.
If one of the supplied knowPlans fits the bill, it will be returned without further calculation.
surface - plot surfacegeom - coordinate geometryauxSpans - map of scale information required for plotdataStore - data storagedataSpec - coordinate specificationknownPlans - list of existing plansknownPlansint[] getBinCounts(Object binPlan)
binPlan - bin plan returned from calculateBinPlanlong getPointCount(Object binPlan)
binPlan - bin plan returned from calculateBinPlanReportMap getReport(Object binPlan)
binPlan - bin plan returned from calculateBinPlanDrawing.getReport(java.lang.Object)Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.