Class HistogramPlotter.HistoStyle
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.HistogramPlotter.HistoStyle
- All Implemented Interfaces:
Style
- Enclosing class:
HistogramPlotter
-
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, boolean isY) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.inthashCode()
-
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, boolean isY) 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 modeisY- true for sideways histogram
-
-
Method Details
-
getBinSizer
-
getCumulative
-
getNormalisation
Returns normalisation mode.- Returns:
- normalisation mode for count axis
-
getUnit
-
getCombiner
Returns the combination mode used for aggregating values into bins.- Returns:
- combiner
-
getLegendIcon
Description copied from interface:StyleReturns an icon suitable for displaying in a legend for this style.- Specified by:
getLegendIconin interfaceStyle
-
hashCode
-
equals
-