uk.ac.starlink.ttools.plot2.layer
Class SizeForm.SizeOutliner

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.layer.PixOutliner
      extended by uk.ac.starlink.ttools.plot2.layer.SizeForm.SizeOutliner
All Implemented Interfaces:
Outliner
Enclosing class:
SizeForm

public static class SizeForm.SizeOutliner
extends PixOutliner

Outliner implementation for use with SizeForm.


Nested Class Summary
 
Nested classes/interfaces inherited from interface uk.ac.starlink.ttools.plot2.layer.Outliner
Outliner.ShapePainter
 
Constructor Summary
SizeForm.SizeOutliner(MarkShape shape, double scale, AuxScale autoscale, int sizeLimit)
          Constructor.
 
Method Summary
 Outliner.ShapePainter create2DPainter(Surface surface, DataGeom geom, Map<AuxScale,Range> auxRanges, PaperType2D paperType)
          Creates a ShapePainter object for plotting onto 2-dimensional surfaces.
 Outliner.ShapePainter create3DPainter(CubeSurface surface, DataGeom geom, Map<AuxScale,Range> auxRanges, PaperType3D paperType)
          Creates a ShapePainter object for plotting onto 3-dimensional surfaces.
 boolean equals(Object o)
           
 Map<AuxScale,AuxReader> getAuxRangers(DataGeom geom)
          Defines what non-axis ranging information is required by this outliner.
 Icon getLegendIcon()
          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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeForm.SizeOutliner

public SizeForm.SizeOutliner(MarkShape shape,
                             double scale,
                             AuxScale autoscale,
                             int sizeLimit)
Constructor.

Parameters:
shape - basic marker shape
scale - size scaling factor
autoscale - key used for autoscaling; may be shared with other layers, private to this layer, or null for no autoscale
sizeLimit - maximum size in pixels of markers; if it's too large, plots may be slow or run out of memory
Method Detail

getLegendIcon

public Icon 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

public Map<AuxScale,AuxReader> getAuxRangers(DataGeom geom)
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

create2DPainter

public Outliner.ShapePainter create2DPainter(Surface surface,
                                             DataGeom geom,
                                             Map<AuxScale,Range> auxRanges,
                                             PaperType2D paperType)
Description copied from interface: Outliner
Creates a ShapePainter object for plotting onto 2-dimensional surfaces.

Parameters:
surface - plot surface
geom - coordinate geometry
auxRanges - map of scale information required for plot
paperType - 2-d paper type
Returns:
new 2-d painter

create3DPainter

public Outliner.ShapePainter create3DPainter(CubeSurface surface,
                                             DataGeom geom,
                                             Map<AuxScale,Range> auxRanges,
                                             PaperType3D paperType)
Description copied from interface: Outliner
Creates a ShapePainter object for plotting onto 3-dimensional surfaces.

Parameters:
surface - 3-d plot surface
geom - coordinate geometry
auxRanges - map of scale information required for plot
paperType - 3-d paper type
Returns:
new 3-d painter

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.