org.primordion.xholon.io
Class AbstractHistogramViewer

java.lang.Object
  extended byorg.primordion.xholon.io.AbstractHistogramViewer
All Implemented Interfaces:
IHistogramViewer
Direct Known Subclasses:
HistogramViewerGnuplot, HistogramViewerJFreeChart

public abstract class AbstractHistogramViewer
extends java.lang.Object
implements IHistogramViewer

This is the abstract superclass for concrete classes that capture data and display the data in a histogram.

Since:
0.6 (Created on May 3, 2007)
Author:
Ken Webb

Constructor Summary
AbstractHistogramViewer()
           
 
Method Summary
 void chart()
          Produce a histogram chart.
abstract  void chart(double[] values)
          Produce a histogram chart.
abstract  void remove()
          Remove the chart from the screen.
 void setXRange(double min, double max)
          Set the X range of the histogram.
 void setYRange(double min, double max)
          Set the Y range of the histogram.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.primordion.xholon.io.IHistogramViewer
initialize
 

Constructor Detail

AbstractHistogramViewer

public AbstractHistogramViewer()
Method Detail

chart

public abstract void chart(double[] values)
Description copied from interface: IHistogramViewer
Produce a histogram chart.

Specified by:
chart in interface IHistogramViewer
Parameters:
values - Values that will be grouped into bins and displayed as a histogram.

chart

public void chart()
Description copied from interface: IHistogramViewer
Produce a histogram chart.

Specified by:
chart in interface IHistogramViewer

remove

public abstract void remove()
Description copied from interface: IHistogramViewer
Remove the chart from the screen.

Specified by:
remove in interface IHistogramViewer

setXRange

public void setXRange(double min,
                      double max)
Description copied from interface: IHistogramViewer
Set the X range of the histogram.

Specified by:
setXRange in interface IHistogramViewer
Parameters:
min - Minimum cutoff value to show in the chart.
max - Maximum cutoff value to show in the chart.

setYRange

public void setYRange(double min,
                      double max)
Description copied from interface: IHistogramViewer
Set the Y range of the histogram.

Specified by:
setYRange in interface IHistogramViewer
Parameters:
min - Minimum cutoff value to show in the chart.
max - Maximum cutoff value to show in the chart.