uk.ac.starlink.ttools.plot2.layer
Class AbstractKernelDensityPlotter.KDenseStyle

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.layer.AbstractKernelDensityPlotter.KDenseStyle
All Implemented Interfaces:
Style
Enclosing class:
AbstractKernelDensityPlotter

public static class AbstractKernelDensityPlotter.KDenseStyle
extends Object
implements Style

Style subclass for kernel density plots.


Constructor Summary
AbstractKernelDensityPlotter.KDenseStyle(Color color, FillMode fill, Stroke stroke, Kernel1dShape kernelShape, AbstractKernelDensityPlotter.KernelFigure kernelFigure, boolean isCumulative, Normalisation norm)
          Constructor.
 
Method Summary
 Kernel1d createKernel(Axis xAxis, boolean xLog)
          Constructs a smoothing kernel suitable for this style.
 boolean equals(Object o)
           
 Icon getLegendIcon()
          Returns an icon suitable for displaying in a legend for this style.
 Normalisation getNormalisation()
          Returns normalisation mode.
 int hashCode()
           
 boolean isCumulative()
          Returns cumulative flag.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractKernelDensityPlotter.KDenseStyle

public AbstractKernelDensityPlotter.KDenseStyle(Color color,
                                                FillMode fill,
                                                Stroke stroke,
                                                Kernel1dShape kernelShape,
                                                AbstractKernelDensityPlotter.KernelFigure kernelFigure,
                                                boolean isCumulative,
                                                Normalisation norm)
Constructor.

Parameters:
color - plot colour
fill - fill mode
stroke - line stroke, null for filled area
kernelShape - smoothing kernel shape
kernelFigure - kernel configuration
isCumulative - are bins painted cumulatively
norm - normalisation mode
Method Detail

isCumulative

public boolean isCumulative()
Returns cumulative flag.

Returns:
true iff counts are cumulative

getNormalisation

public Normalisation getNormalisation()
Returns normalisation mode.

Returns:
normalisation mode for count axis

getLegendIcon

public Icon getLegendIcon()
Description copied from interface: Style
Returns an icon suitable for displaying in a legend for this style.

Specified by:
getLegendIcon in interface Style

createKernel

public Kernel1d createKernel(Axis xAxis,
                             boolean xLog)
Constructs a smoothing kernel suitable for this style.

Parameters:
xAxis - axis on which samples occur
xLog - true for logarithmic x axis, false for linear
Returns:
kernel

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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