Class PixOutliner
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.PixOutliner
- All Implemented Interfaces:
Outliner
- Direct Known Subclasses:
PolygonOutliner, SizeForm.SizeOutliner, SizeXyForm.SizeXyOutliner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateBinPlan(Surface surface, DataGeom geom, Map<AuxScale, Span> auxRanges, 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.int[]getBinCounts(Object binPlan) Returns the bin contents for a given bin plan produced by this object.longgetPointCount(Object binPlan) Returns the number of data positions which contributed to a BinPlan generated by this object.Obtains information associated with the plot.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Outliner
canPaint, create2DPainter, create3DPainter, getAuxRangers, getLegendIcon
-
Constructor Details
-
PixOutliner
public PixOutliner()
-
-
Method Details
-
calculateBinPlan
public Object calculateBinPlan(Surface surface, DataGeom geom, Map<AuxScale, Span> auxRanges, DataStore dataStore, DataSpec dataSpec, Object[] knownPlans) Description copied from interface:OutlinerCalculates an opaque object which contains the drawing of this outliner represented as an array of bins, one per pixel. To make sense of the returned object, use theOutliner.getBinCounts(Object)andOutliner.getPointCount(Object)methods.If one of the supplied knowPlans fits the bill, it will be returned without further calculation.
- Specified by:
calculateBinPlanin interfaceOutliner- Parameters:
surface- plot surfacegeom- coordinate geometryauxRanges- map of scale information required for plotdataStore- data storagedataSpec- coordinate specificationknownPlans- list of existing plans- Returns:
- bin plan, either newly calculated or taken from
knownPlans
-
getBinCounts
Description copied from interface:OutlinerReturns the bin contents for a given bin plan produced by this object.- Specified by:
getBinCountsin interfaceOutliner- Parameters:
binPlan- bin plan returned fromcalculateBinPlan- Returns:
- array of counts, one element per bin
-
getPointCount
Description copied from interface:OutlinerReturns the number of data positions which contributed to a BinPlan generated by this object. This may or may not be the same as the sum of the pixel counts in the binCounts array; if each data position might contribute multiple pixel hits, the numbers will not be the same.- Specified by:
getPointCountin interfaceOutliner- Parameters:
binPlan- bin plan returned fromcalculateBinPlan- Returns:
- number of data positions in plan
-
getReport
-