etm.contrib.renderer
Class SimpleHtmlRenderer

java.lang.Object
  extended by etm.contrib.renderer.SimpleHtmlRenderer
All Implemented Interfaces:
MeasurementRenderer

public class SimpleHtmlRenderer
extends java.lang.Object
implements MeasurementRenderer

The SimpleHtmlRenderer renders an html table fragment containing flat or nested measurement results.

We encourage to use CSS to change the visualization. Example CSS:

   table {
     border: 2px solid #999;
     margin: 0px 0px 25px 0px;
     padding:  0px 0px 0px 0px;
     border-collapse: collapse;
   }
 

th { border: 1px solid #999; margin: 0px 0px 0px 0px; padding: 10px 5px 10px 5px; }

td { border: 1px solid #999; margin: 0px 0px 0px 0px; padding: 10px 15px 10px 10px; }

.childname { text-align: left; border-top: 1px dotted #999; position: relative; margin: 2px 0px 0px 15px; }

.parentname { text-align: left; }

.parentmeasurement { text-align: right; }

.childmeasurement { border-top: 1px dotted #999; text-align: right; margin: 2px 0px 0px 0px; }

.parenttime { text-align: right; }

.childtime { border-top: 1px dotted #999; text-align: right; margin: 2px 0px 0px 0px; }

.parenttotal { text-align: right; }

.childtotal { border-top: 1px dotted #999; text-align: right; margin: 2px 0px 0px 0px; }

Version:
$Revision: 126 $
Author:
void.fm

Constructor Summary
SimpleHtmlRenderer(java.io.Writer aWriter)
          Constructs a SimpleHtmlRenderer using the default locale and the provided writer.
SimpleHtmlRenderer(java.io.Writer aWriter, java.util.Locale aLocale)
          Constructs a SimpleTextRenderer using the provided locale and provided writer.
 
Method Summary
 void render(java.util.Map points)
          Renders the results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleHtmlRenderer

public SimpleHtmlRenderer(java.io.Writer aWriter)
Constructs a SimpleHtmlRenderer using the default locale and the provided writer.

Parameters:
aWriter - The writer.

SimpleHtmlRenderer

public SimpleHtmlRenderer(java.io.Writer aWriter,
                          java.util.Locale aLocale)
Constructs a SimpleTextRenderer using the provided locale and provided writer.

Parameters:
aWriter - The writer to write to.
aLocale - The locale to use.
Method Detail

render

public void render(java.util.Map points)
Description copied from interface: MeasurementRenderer
Renders the results. The map contains current aggregate state. Keys are the names of the root EtmPoint, values are instances of Aggregate

Specified by:
render in interface MeasurementRenderer
Parameters:
points - All available results in no particular order.


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.