net.sf.statcvs.charts
Class TimeBarChartMaker
java.lang.Object
net.sf.statcvs.charts.TimeBarChartMaker
- Direct Known Subclasses:
- TimeBarChartMaker.HourBarChartMaker, TimeBarChartMaker.WeekdayBarChartMaker
public abstract class TimeBarChartMaker
- extends java.lang.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 $
- Author:
- jentzsch, Richard Cyganiak (richard@cyganiak.de)
Constructor Summary |
TimeBarChartMaker(ReportConfig config,
java.util.SortedSet revisions,
java.lang.String title,
java.lang.String fileName,
java.lang.String[] barLabels)
Creates a new BarChartMaker. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeBarChartMaker
public TimeBarChartMaker(ReportConfig config,
java.util.SortedSet revisions,
java.lang.String title,
java.lang.String fileName,
java.lang.String[] barLabels)
- Creates a new BarChartMaker.
- Parameters:
config
- The configuration to userevisions
- The revisions to analyzetitle
- The chart's titlefileName
- The file name for the image file, including .png extensionbarLabels
- The labels for each bar
toFile
public ChartImage toFile()
- Creates a bar chart image file.
- Returns:
- An image file containing the chart
barNumberForTime
protected abstract int barNumberForTime(java.util.Calendar time)
Copyright © 2008. All Rights Reserved.