Class HistogramPlotter.HistoStyle
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.HistogramPlotter.HistoStyle
- All Implemented Interfaces:
Style
- Enclosing class:
- HistogramPlotter
Style subclass for histogram plots.
-
Constructor Summary
ConstructorsConstructorDescriptionHistoStyle
(Color color, BarStyle.Form barForm, BarStyle.Placement placement, Cumulation cumulative, Normalisation norm, Unit unit, int thick, float[] dash, BinSizer sizer, double phase, Combiner combiner) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the bin sizer.Returns the combination mode used for aggregating values into bins.Returns cumulative plot mode.Returns an icon suitable for displaying in a legend for this style.Returns normalisation mode.getUnit()
Returns the axis unit for density scaling.int
hashCode()
-
Constructor Details
-
HistoStyle
public HistoStyle(Color color, BarStyle.Form barForm, BarStyle.Placement placement, Cumulation cumulative, Normalisation norm, Unit unit, int thick, float[] dash, BinSizer sizer, double phase, Combiner combiner) Constructor.- Parameters:
color
- bar colourbarForm
- bar formplacement
- bar placementcumulative
- whether to plot cumulative barsnorm
- normalisation mode for the vertical scaleunit
- bin scaling unitthick
- line thickness (only relevant for some forms)dash
- line dash pattern (only relevant for some forms)sizer
- determines bin widthsphase
- bin reference point, 0..1combiner
- bin aggregation mode
-
-
Method Details
-
getBinSizer
Returns the bin sizer.- Returns:
- bin sizer
-
getCumulative
Returns cumulative plot mode.- Returns:
- cumulative mode
-
getNormalisation
Returns normalisation mode.- Returns:
- normalisation mode for count axis
-
getUnit
Returns the axis unit for density scaling.- Returns:
- x axis unit
-
getCombiner
Returns the combination mode used for aggregating values into bins.- Returns:
- combiner
-
getLegendIcon
Description copied from interface:Style
Returns an icon suitable for displaying in a legend for this style.- Specified by:
getLegendIcon
in interfaceStyle
-
hashCode
public int hashCode() -
equals
-