Class AbstractKernelDensityPlotter.KDenseStyle

  • All Implemented Interfaces:
    Style
    Enclosing class:
    AbstractKernelDensityPlotter

    public static class AbstractKernelDensityPlotter.KDenseStyle
    extends java.lang.Object
    implements Style
    Style subclass for kernel density plots.
    • Constructor Detail

      • KDenseStyle

        public KDenseStyle​(java.awt.Color color,
                           FillMode fill,
                           java.awt.Stroke stroke,
                           Kernel1dShape kernelShape,
                           AbstractKernelDensityPlotter.KernelFigure kernelFigure,
                           Combiner combiner,
                           Unit unit,
                           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
        combiner - bin aggregation mode
        unit - axis unit scaling
        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 javax.swing.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object