Package net.sf.statcvs.charts
Class TimeBarChartMaker
java.lang.Object
net.sf.statcvs.charts.TimeBarChartMaker
- Direct Known Subclasses:
TimeBarChartMaker.HourBarChartMaker
,TimeBarChartMaker.WeekdayBarChartMaker
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.7 2009/04/25 16:36:20 benoitx Exp $
- Author:
- jentzsch, Richard Cyganiak (richard@cyganiak.de)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorsConstructorDescriptionTimeBarChartMaker
(String chartName, ReportConfig config, SortedSet revisions, String title, String fileName, String[] barLabels) Creates a new BarChartMaker. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract int
barNumberForTime
(Calendar time) toFile()
Creates a bar chart image file.
-
Constructor Details
-
TimeBarChartMaker
public TimeBarChartMaker(String chartName, ReportConfig config, SortedSet revisions, String title, String fileName, 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
-
-
Method Details
-
toFile
Creates a bar chart image file.- Returns:
- An image file containing the chart
-
barNumberForTime
-