etm.contrib.console.util
Class ConsoleRenderer

java.lang.Object
  extended by etm.contrib.console.util.ConsoleRenderer
All Implemented Interfaces:
MeasurementRenderer
Direct Known Subclasses:
CollapsedResultRenderer, DetailResultRenderer, ExpandedResultRenderer

public abstract class ConsoleRenderer
extends java.lang.Object
implements MeasurementRenderer

Base class for our console views.

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

Nested Class Summary
protected  class ConsoleRenderer.SortedExecutionGraph
           
 
Field Summary
protected  ExecutionAggregateComparator comparator
           
protected static java.lang.String FOOTER
           
protected static java.lang.String NO_RESULTS
           
protected  java.text.NumberFormat numberFormatter
           
protected  ConsoleRequest request
           
protected  ConsoleResponse response
           
protected  java.text.NumberFormat timeFormatter
           
 
Constructor Summary
ConsoleRenderer(ConsoleRequest aRequest, ConsoleResponse aResponse, ExecutionAggregateComparator aComparator)
           
 
Method Summary
protected  void writeAverage(Aggregate aPoint)
           
protected  void writeAverage(ConsoleRenderer.SortedExecutionGraph aElement, int depth)
           
protected  void writeCommonHtmlHead()
           
protected  void writeDetailHtmlHead(java.lang.String point)
           
protected  void writeHtmlHead(boolean expanded)
           
protected  void writeMax(Aggregate aPoint)
           
protected  void writeMax(ConsoleRenderer.SortedExecutionGraph aElement, int depth)
           
protected  void writeMeasurements(Aggregate aPoint)
           
protected  void writeMeasurements(ConsoleRenderer.SortedExecutionGraph aElement, int depth)
           
protected  void writeMin(Aggregate aPoint)
           
protected  void writeMin(ConsoleRenderer.SortedExecutionGraph aElement, int depth)
           
protected  void writeName(Aggregate aPoint)
           
protected  void writeName(ConsoleRenderer.SortedExecutionGraph aElement, int depth)
           
protected  void writeTableHeader()
           
protected  void writeTotals(Aggregate aPoint)
           
protected  void writeTotals(ConsoleRenderer.SortedExecutionGraph aElement, int depth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface etm.core.renderer.MeasurementRenderer
render
 

Field Detail

FOOTER

protected static final java.lang.String FOOTER

NO_RESULTS

protected static final java.lang.String NO_RESULTS
See Also:
Constant Field Values

timeFormatter

protected java.text.NumberFormat timeFormatter

numberFormatter

protected java.text.NumberFormat numberFormatter

comparator

protected ExecutionAggregateComparator comparator

request

protected ConsoleRequest request

response

protected ConsoleResponse response
Constructor Detail

ConsoleRenderer

public ConsoleRenderer(ConsoleRequest aRequest,
                       ConsoleResponse aResponse,
                       ExecutionAggregateComparator aComparator)
Method Detail

writeCommonHtmlHead

protected void writeCommonHtmlHead()
                            throws java.io.IOException
Throws:
java.io.IOException

writeDetailHtmlHead

protected void writeDetailHtmlHead(java.lang.String point)
                            throws java.io.IOException
Throws:
java.io.IOException

writeHtmlHead

protected void writeHtmlHead(boolean expanded)
                      throws java.io.IOException
Throws:
java.io.IOException

writeTableHeader

protected void writeTableHeader()
                         throws java.io.IOException
Throws:
java.io.IOException

writeName

protected void writeName(Aggregate aPoint)
                  throws java.io.IOException
Throws:
java.io.IOException

writeTotals

protected void writeTotals(Aggregate aPoint)
                    throws java.io.IOException
Throws:
java.io.IOException

writeAverage

protected void writeAverage(Aggregate aPoint)
                     throws java.io.IOException
Throws:
java.io.IOException

writeMin

protected void writeMin(Aggregate aPoint)
                 throws java.io.IOException
Throws:
java.io.IOException

writeMax

protected void writeMax(Aggregate aPoint)
                 throws java.io.IOException
Throws:
java.io.IOException

writeMeasurements

protected void writeMeasurements(Aggregate aPoint)
                          throws java.io.IOException
Throws:
java.io.IOException

writeName

protected void writeName(ConsoleRenderer.SortedExecutionGraph aElement,
                         int depth)
                  throws java.io.IOException
Throws:
java.io.IOException

writeTotals

protected void writeTotals(ConsoleRenderer.SortedExecutionGraph aElement,
                           int depth)
                    throws java.io.IOException
Throws:
java.io.IOException

writeAverage

protected void writeAverage(ConsoleRenderer.SortedExecutionGraph aElement,
                            int depth)
                     throws java.io.IOException
Throws:
java.io.IOException

writeMin

protected void writeMin(ConsoleRenderer.SortedExecutionGraph aElement,
                        int depth)
                 throws java.io.IOException
Throws:
java.io.IOException

writeMax

protected void writeMax(ConsoleRenderer.SortedExecutionGraph aElement,
                        int depth)
                 throws java.io.IOException
Throws:
java.io.IOException

writeMeasurements

protected void writeMeasurements(ConsoleRenderer.SortedExecutionGraph aElement,
                                 int depth)
                          throws java.io.IOException
Throws:
java.io.IOException


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