biz.hammurapi.metrics.persistent
Class PeriodVisualizer

java.lang.Object
  extended by biz.hammurapi.metrics.persistent.PeriodVisualizer

public class PeriodVisualizer
extends java.lang.Object

Version:
$Revision: 1.2 $
Author:
Pavel Vlasov

Constructor Summary
PeriodVisualizer(AbstractPeriod period)
          Constructor from array of metric names
 
Method Summary
 org.jfree.chart.JFreeChart averageChart()
           
 org.jfree.chart.JFreeChart childrenAverageChart()
           
 org.jfree.chart.JFreeChart childrenIntensityChart()
           
 org.jfree.chart.JFreeChart childrenTotalChart()
           
static void generateHtmlDoc(AbstractPeriod root, java.io.File outputDir, int width, int height)
           
 java.util.Collection getChildren()
           
 AbstractPeriod getPeriod()
           
 org.jfree.chart.JFreeChart intensityChart()
           
static void main(java.lang.String[] args)
           
 org.jfree.chart.JFreeChart mainChart()
           
 org.jfree.chart.JFreeChart totalChart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodVisualizer

public PeriodVisualizer(AbstractPeriod period)
Constructor from array of metric names

Parameters:
processor - Processor to retrieve metrics from the database
metrics - Metrics to be retrieved
from - Start of metrics period
to - End of metrics period
cacheMode - Cache mode
outputFormat - FORMAT_PNG or FORMAT_JPG
width - Chart width
height - Chart height
maxSlices - Maximum number of slices on chart. Series having more slices will be downsliced - adjacent slices will be merged.
Throws:
java.sql.SQLException
Method Detail

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.