www.sdmetrics.com

sdmetrics.app
Class GraphExporter

java.lang.Object
  |
  +--sdmetrics.app.GraphExporter

public class GraphExporter
extends java.lang.Object

Class to export the JPEG, PNG, and SVG graphs and optionally create the HTML files showing the graphs.


Constructor Summary
GraphExporter(SDMessageHandler sh, sdmetrics.util.AppParameters ap)
          Construct a graph exporter that will overwrite existing files without prompting the user.
GraphExporter(SDMessageHandler sh, sdmetrics.util.AppParameters ap, OverwriteConfirmation confirmer)
          Construct a graph exporter that will prompt the user before overwriting existing files.
 
Method Summary
 boolean exportGraphs(sdmetrics.util.ExportGraphSettings gsettings, DataTable mdt, DescStats dstats, java.lang.Boolean[] percentiles)
          Create graph files and optionally HTML pages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphExporter

public GraphExporter(SDMessageHandler sh,
                     sdmetrics.util.AppParameters ap)
Construct a graph exporter that will overwrite existing files without prompting the user.


GraphExporter

public GraphExporter(SDMessageHandler sh,
                     sdmetrics.util.AppParameters ap,
                     OverwriteConfirmation confirmer)
Construct a graph exporter that will prompt the user before overwriting existing files.

Parameters:
sh - Object to handle error messages.
confirmer - Object to prompt the user
Method Detail

exportGraphs

public boolean exportGraphs(sdmetrics.util.ExportGraphSettings gsettings,
                            DataTable mdt,
                            DescStats dstats,
                            java.lang.Boolean[] percentiles)
Create graph files and optionally HTML pages.

Parameters:
gsettings - Indicates which graphs and HTML pages to create.
mdt - Metric data from which to create the graphs.
dstats - Descriptive statistics for the metric data.
percentiles - Array of booleans indicating which percentiles to draw for Kiviat diagrams.
Returns:
true if graphs could be successfully created, false if an error occurred.

www.sdmetrics.com