Class SizeXyForm.SizeXyOutliner
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.PixOutliner
uk.ac.starlink.ttools.plot2.layer.SizeXyForm.SizeXyOutliner
- All Implemented Interfaces:
Outliner
- Enclosing class:
- SizeXyForm
Outliner implementation for use with SizeXyForm.
-
Constructor Summary
ConstructorsConstructorDescriptionSizeXyOutliner
(XYShape shape, double scale, AuxScale xAutoscale, AuxScale yAutoscale, short sizeLimit) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether this outliner is willing to provide painters for a given DataSpec.create2DPainter
(Surface surface, DataGeom geom, DataSpec dataSpec, Map<AuxScale, Span> auxSpans, PaperType2D paperType) Creates a ShapePainter object for plotting onto 2-dimensional surfaces.create3DPainter
(CubeSurface surface, DataGeom geom, DataSpec dataSpec, Map<AuxScale, Span> auxSpans, PaperType3D paperType) Creates a ShapePainter object for plotting onto 3-dimensional surfaces.boolean
getAuxRangers
(DataGeom geom) Defines what non-axis ranging information is required by this outliner.Returns an icon suitable for identifying points painted by this object in a plot legend.int
hashCode()
Methods inherited from class uk.ac.starlink.ttools.plot2.layer.PixOutliner
calculateBinPlan, getBinCounts, getPointCount, getReport
-
Constructor Details
-
SizeXyOutliner
public SizeXyOutliner(XYShape shape, double scale, AuxScale xAutoscale, AuxScale yAutoscale, short sizeLimit) Constructor.- Parameters:
shape
- shapescale
- size scaling factorxAutoscale
- key used for autoscaling X extents; may be shared with other layers, private to this layer, or null for no autoscaleyAutoscale
- key used for autoscaling Y extents; may be shared with other layers, private to this layer, or null for no autoscalesizeLimit
- maximum X/Y extent in pixels of markers; if it's too large, plots may be slow or run out of memory
-
-
Method Details
-
getLegendIcon
Description copied from interface:Outliner
Returns an icon suitable for identifying points painted by this object in a plot legend. The returned icon does not manipulate the colour of the graphics context it operates on.- Returns:
- legend icon for this outliner
-
getAuxRangers
Description copied from interface:Outliner
Defines what non-axis ranging information is required by this outliner. The return value is a map in which the keys define the ranges that must be supplied to the painting methods, and the values are reader objects that can acquire these ranges from a dataset.- Parameters:
geom
- data geometry- Returns:
- map of required scale keys to scale reader objects
-
canPaint
Description copied from interface:Outliner
Indicates whether this outliner is willing to provide painters for a given DataSpec. The return value may be unconditionally true, but this method provides a hook for outliners to reject plotting based only on characteristics of the DataSpec.- Parameters:
dataSpec
- data specification for plot- Returns:
- true if dataSpec can be used to obtain a non-null painter
-
create2DPainter
public ShapePainter create2DPainter(Surface surface, DataGeom geom, DataSpec dataSpec, Map<AuxScale, Span> auxSpans, PaperType2D paperType) Description copied from interface:Outliner
Creates a ShapePainter object for plotting onto 2-dimensional surfaces. This method should only be called ifOutliner.canPaint(uk.ac.starlink.ttools.plot2.data.DataSpec)
returns true for the supplied DataSpec.- Parameters:
surface
- plot surfacegeom
- coordinate geometrydataSpec
- data specificationauxSpans
- map of scale information required for plotpaperType
- 2-d paper type- Returns:
- new 2-d painter
-
create3DPainter
public ShapePainter create3DPainter(CubeSurface surface, DataGeom geom, DataSpec dataSpec, Map<AuxScale, Span> auxSpans, PaperType3D paperType) Description copied from interface:Outliner
Creates a ShapePainter object for plotting onto 3-dimensional surfaces. This method should only be called ifOutliner.canPaint(uk.ac.starlink.ttools.plot2.data.DataSpec)
returns true for the supplied DataSpec.- Parameters:
surface
- 3-d plot surfacegeom
- coordinate geometrydataSpec
- data specificationauxSpans
- map of scale information required for plotpaperType
- 3-d paper type- Returns:
- new 3-d painter
-
equals
-
hashCode
public int hashCode()
-