biz.hammurapi.metrics.persistent
Class PeriodVisualizer
java.lang.Object
biz.hammurapi.metrics.persistent.PeriodVisualizer
public class PeriodVisualizer
- extends java.lang.Object
- Version:
- $Revision: 1.2 $
- Author:
- Pavel Vlasov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PeriodVisualizer
public PeriodVisualizer(AbstractPeriod period)
- Constructor from array of metric names
- Parameters:
processor
- Processor to retrieve metrics from the databasemetrics
- Metrics to be retrievedfrom
- Start of metrics periodto
- End of metrics periodcacheMode
- Cache modeoutputFormat
- FORMAT_PNG or FORMAT_JPGwidth
- Chart widthheight
- Chart heightmaxSlices
- Maximum number of slices on chart. Series having more slices will be downsliced - adjacent slices will be merged.
- Throws:
java.sql.SQLException
intensityChart
public org.jfree.chart.JFreeChart intensityChart()
- Returns:
totalChart
public org.jfree.chart.JFreeChart totalChart()
- Returns:
averageChart
public org.jfree.chart.JFreeChart averageChart()
- Returns:
childrenIntensityChart
public org.jfree.chart.JFreeChart childrenIntensityChart()
throws java.sql.SQLException
- Returns:
-
- Throws:
java.sql.SQLException
childrenTotalChart
public org.jfree.chart.JFreeChart childrenTotalChart()
throws java.sql.SQLException
- Returns:
-
- Throws:
java.sql.SQLException
childrenAverageChart
public org.jfree.chart.JFreeChart childrenAverageChart()
throws java.sql.SQLException
- Returns:
-
- Throws:
java.sql.SQLException
mainChart
public org.jfree.chart.JFreeChart mainChart()
- Parameters:
i
-
- Returns:
getPeriod
public AbstractPeriod getPeriod()
- Returns:
- Returns the period.
getChildren
public java.util.Collection getChildren()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
generateHtmlDoc
public static void generateHtmlDoc(AbstractPeriod root,
java.io.File outputDir,
int width,
int height)
- Parameters:
root
-
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2006 Hammurapi Group. All Rights Reserved.