Class HistogramPlotter.HistoStyle
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.HistogramPlotter.HistoStyle
-
- All Implemented Interfaces:
Style
- Enclosing class:
- HistogramPlotter
public static class HistogramPlotter.HistoStyle extends java.lang.Object implements Style
Style subclass for histogram plots.
-
-
Constructor Summary
Constructors Constructor Description HistoStyle(java.awt.Color color, BarStyle.Form barForm, BarStyle.Placement placement, boolean cumulative, Normalisation norm, Unit unit, int thick, float[] dash, BinSizer sizer, double phase, Combiner combiner)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)BinSizergetBinSizer()Returns the bin sizer.CombinergetCombiner()Returns the combination mode used for aggregating values into bins.javax.swing.IcongetLegendIcon()Returns an icon suitable for displaying in a legend for this style.NormalisationgetNormalisation()Returns normalisation mode.UnitgetUnit()Returns the axis unit for density scaling.inthashCode()booleanisCumulative()Returns cumulative flag.
-
-
-
Constructor Detail
-
HistoStyle
public HistoStyle(java.awt.Color color, BarStyle.Form barForm, BarStyle.Placement placement, boolean 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 Detail
-
getBinSizer
public BinSizer getBinSizer()
Returns the bin sizer.- Returns:
- bin sizer
-
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
-
getUnit
public Unit getUnit()
Returns the axis unit for density scaling.- Returns:
- x axis unit
-
getCombiner
public Combiner getCombiner()
Returns the combination mode used for aggregating values into bins.- Returns:
- combiner
-
getLegendIcon
public javax.swing.Icon getLegendIcon()
Description copied from interface:StyleReturns an icon suitable for displaying in a legend for this style.- Specified by:
getLegendIconin interfaceStyle
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-