com.ebay.carad.os.vitalsigns.listeners
Class HtmlGraphListener
java.lang.Object
com.ebay.carad.os.vitalsigns.listeners.AbstractReportingListener
com.ebay.carad.os.vitalsigns.listeners.LineGraphImageCreationListener
com.ebay.carad.os.vitalsigns.listeners.HtmlGraphListener
- All Implemented Interfaces:
- IReportingListener
public class HtmlGraphListener
- extends LineGraphImageCreationListener
Writes HTML reports that can include the graphs created by
LineGraphImageCreationListener. The reports can be customized
by supplying your own Freemarker template, and supplying the relative
path to it on your classpath.
- Version:
- $Id$
- Author:
- Jeremy Kraybill, Jeremy Thomerson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mTemplateProcessor
private ITemplateProcessor mTemplateProcessor
mTemplatePath
private java.lang.String mTemplatePath
mRelativePath
private java.text.Format mRelativePath
HtmlGraphListener
public HtmlGraphListener()
doAfterImagesCreated
protected void doAfterImagesCreated(float[] delta,
IDashboardReport report,
IDashboardAgent agent)
- Overrides:
doAfterImagesCreated
in class LineGraphImageCreationListener
isExportedAsCSV
private boolean isExportedAsCSV(IDashboardAgent agent,
IDashboardReport config)
checkForCsvListener
private boolean checkForCsvListener(java.util.List reportingListeners)
getTemplatePath
public java.lang.String getTemplatePath()
setTemplatePath
public void setTemplatePath(java.lang.String templatePath)
- Default value is: HtmlGraphListener.fml
- Parameters:
templatePath
- path that template resides within classpath
setRelativeOutputPath
public void setRelativeOutputPath(java.lang.String path)
- Relative output path for the generated HTML, passed through a MessageFormat
with a single parameter - the report ID that is being generated.
- Parameters:
path
- A String that can be used in MessageFormat
setTemplateProcessor
public void setTemplateProcessor(ITemplateProcessor templateProcessor)
- Parameters:
templateProcessor
- The templateProcessor to set.
Copyright © 2004-2009. All Rights Reserved.