Class AbstractKernelDensityPlotter.KDenseStyle
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.AbstractKernelDensityPlotter.KDenseStyle
- All Implemented Interfaces:
Style
- Enclosing class:
AbstractKernelDensityPlotter
Style subclass for kernel density plots.
-
Constructor Summary
ConstructorsConstructorDescriptionKDenseStyle(Color color, FillMode fill, Stroke stroke, boolean isY, Kernel1dShape kernelShape, AbstractKernelDensityPlotter.KernelFigure kernelFigure, Combiner combiner, Unit unit, Cumulation cumulative, Normalisation norm) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateKernel(Axis xAxis, boolean xLog) Constructs a smoothing kernel suitable for this style.booleanReturns cumulative mode.Returns an icon suitable for displaying in a legend for this style.Returns normalisation mode.inthashCode()
-
Constructor Details
-
KDenseStyle
public KDenseStyle(Color color, FillMode fill, Stroke stroke, boolean isY, Kernel1dShape kernelShape, AbstractKernelDensityPlotter.KernelFigure kernelFigure, Combiner combiner, Unit unit, Cumulation cumulative, Normalisation norm) Constructor.- Parameters:
color- plot colourfill- fill modestroke- line stroke, null for filled areaisY- true to turn the plot sidewayskernelShape- smoothing kernel shapekernelFigure- kernel configurationcombiner- bin aggregation modeunit- axis unit scalingcumulative- are bins painted cumulativelynorm- normalisation mode
-
-
Method Details
-
getCumulative
Returns cumulative mode.- Returns:
- cumulative counting mode
-
getNormalisation
Returns normalisation mode.- Returns:
- normalisation mode for count axis
-
getLegendIcon
Description copied from interface:StyleReturns an icon suitable for displaying in a legend for this style.- Specified by:
getLegendIconin interfaceStyle
-
createKernel
Constructs a smoothing kernel suitable for this style.- Parameters:
xAxis- axis on which samples occurxLog- true for logarithmic x axis, false for linear- Returns:
- kernel
-
hashCode
public int hashCode() -
equals
-