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, 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.boolean
Returns cumulative mode.Returns an icon suitable for displaying in a legend for this style.Returns normalisation mode.int
hashCode()
-
Constructor Details
-
KDenseStyle
public KDenseStyle(Color color, FillMode fill, Stroke stroke, 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 areakernelShape
- 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:Style
Returns an icon suitable for displaying in a legend for this style.- Specified by:
getLegendIcon
in 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
-