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

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

public static class KernelDensityPlotter.KDenseStyle
extends Object
implements Style

Style subclass for kernel density plots.


Constructor Summary
KernelDensityPlotter.KDenseStyle(Color color, FillMode fill, Stroke stroke, Kernel1dShape kernelShape, BinSizer sizer, boolean isCumulative, Normalisation norm)
          Constructor.
 
Method Summary
 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

KernelDensityPlotter.KDenseStyle

public KernelDensityPlotter.KDenseStyle(Color color,
                                        FillMode fill,
                                        Stroke stroke,
                                        Kernel1dShape kernelShape,
                                        BinSizer sizer,
                                        boolean isCumulative,
                                        Normalisation norm)
Constructor.

Parameters:
color - plot colour
fill - fill mode
stroke - line stroke, null for filled area
kernelShape - smoothing kernel shape
sizer - bin sizer
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

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.