PixOutliner
, SizeForm.SizeOutliner
, SizeXyForm.SizeXyOutliner
@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 | Description |
---|---|---|
java.lang.Object |
calculateBinPlan(Surface surface,
DataGeom geom,
java.util.Map<AuxScale,Range> auxRanges,
DataStore dataStore,
DataSpec dataSpec,
java.lang.Object[] knownPlans) |
Calculates an opaque object which contains the drawing of this
outliner represented as an array of bins, one per pixel.
|
ShapePainter |
create2DPainter(Surface surface,
DataGeom geom,
java.util.Map<AuxScale,Range> auxRanges,
PaperType2D paperType) |
Creates a ShapePainter object for plotting onto 2-dimensional surfaces.
|
ShapePainter |
create3DPainter(CubeSurface surface,
DataGeom geom,
java.util.Map<AuxScale,Range> auxRanges,
PaperType3D paperType) |
Creates a ShapePainter object for plotting onto 3-dimensional surfaces.
|
java.util.Map<AuxScale,AuxReader> |
getAuxRangers(DataGeom geom) |
Defines what non-axis ranging information is required by this outliner.
|
int[] |
getBinCounts(java.lang.Object binPlan) |
Returns the bin contents for a given bin plan produced by
this object.
|
javax.swing.Icon |
getLegendIcon() |
Returns an icon suitable for identifying points painted by this
object in a plot legend.
|
long |
getPointCount(java.lang.Object binPlan) |
Returns the number of data positions which contributed to
a BinPlan generated by this object.
|
javax.swing.Icon getLegendIcon()
java.util.Map<AuxScale,AuxReader> getAuxRangers(DataGeom geom)
geom
- data geometryShapePainter create2DPainter(Surface surface, DataGeom geom, java.util.Map<AuxScale,Range> auxRanges, PaperType2D paperType)
surface
- plot surfacegeom
- coordinate geometryauxRanges
- map of scale information required for plotpaperType
- 2-d paper typeShapePainter create3DPainter(CubeSurface surface, DataGeom geom, java.util.Map<AuxScale,Range> auxRanges, PaperType3D paperType)
surface
- 3-d plot surfacegeom
- coordinate geometryauxRanges
- map of scale information required for plotpaperType
- 3-d paper typejava.lang.Object calculateBinPlan(Surface surface, DataGeom geom, java.util.Map<AuxScale,Range> auxRanges, DataStore dataStore, DataSpec dataSpec, java.lang.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 geometryauxRanges
- map of scale information required for plotdataStore
- data storagedataSpec
- coordinate specificationknownPlans
- list of existing plansknownPlans
int[] getBinCounts(java.lang.Object binPlan)
binPlan
- bin plan returned from calculateBinPlan
long getPointCount(java.lang.Object binPlan)
binPlan
- bin plan returned from calculateBinPlan
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.