net.sf.statcvs.charts

Class TimeBarChartMaker

Known Direct Subclasses:
TimeBarChartMaker.HourBarChartMaker, TimeBarChartMaker.WeekdayBarChartMaker

public abstract class TimeBarChartMaker
extends Object

Produces bar charts where each bar represents a time slot, e.g. a weekday., and each revision from a given collection is sorted into the appropriate slot.
Version:
$Id: TimeBarChartMaker.java,v 1.4 2008/04/02 11:22:15 benoitx Exp $
Authors:
jentzsch
Richard Cyganiak (richard@cyganiak.de)

Nested Class Summary

static class
TimeBarChartMaker.HourBarChartMaker
static class
TimeBarChartMaker.WeekdayBarChartMaker

Constructor Summary

TimeBarChartMaker(ReportConfig config, SortedSet revisions, String title, String fileName, String[] barLabels)
Creates a new BarChartMaker.

Method Summary

protected abstract int
barNumberForTime(Calendar time)
ChartImage
toFile()
Creates a bar chart image file.

Constructor Details

TimeBarChartMaker

public TimeBarChartMaker(ReportConfig config,
                         SortedSet revisions,
                         String title,
                         String fileName,
                         String[] barLabels)
Creates a new BarChartMaker.
Parameters:
config - The configuration to use
revisions - The revisions to analyze
title - The chart's title
fileName - The file name for the image file, including .png extension
barLabels - The labels for each bar

Method Details

barNumberForTime

protected abstract int barNumberForTime(Calendar time)

toFile

public ChartImage toFile()
Creates a bar chart image file.
Returns:
An image file containing the chart