uk.ac.starlink.ttools.plot2.layer
Class HistogramPlotter.HistoStyle

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

public static class HistogramPlotter.HistoStyle
extends Object
implements Style

Style subclass for histogram plots.


Constructor Summary
HistogramPlotter.HistoStyle(Color color, BarStyle.Form barForm, BarStyle.Placement placement, boolean cumulative, Normalisation norm, int thick, float[] dash, BinSizer sizer, double phase)
          Constructor.
 
Method Summary
 boolean equals(Object o)
           
 BinSizer getBinSizer()
          Returns the bin sizer.
 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

HistogramPlotter.HistoStyle

public HistogramPlotter.HistoStyle(Color color,
                                   BarStyle.Form barForm,
                                   BarStyle.Placement placement,
                                   boolean cumulative,
                                   Normalisation norm,
                                   int thick,
                                   float[] dash,
                                   BinSizer sizer,
                                   double phase)
Constructor.

Parameters:
color - bar colour
barForm - bar form
placement - bar placement
cumulative - whether to plot cumulative bars
norm - normalisation mode for the vertical scale
thick - line thickness (only relevant for some forms)
dash - line dash pattern (only relevant for some forms)
sizer - determines bin widths
phase - bin reference point, 0..1
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

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.