etm.core.renderer
Class SimpleTextRenderer

java.lang.Object
  extended by etm.core.renderer.SimpleTextRenderer
All Implemented Interfaces:
MeasurementRenderer

public class SimpleTextRenderer
extends java.lang.Object
implements MeasurementRenderer

Renders the result to a Writer ordered by mesaurement point name.

Supports both flat and nested measurement points.

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

Constructor Summary
SimpleTextRenderer()
          Constructs a SimpleTextRenderer using the default locale and STDOUT.
SimpleTextRenderer(java.util.Locale locale)
          Constructs a SimpleTextRenderer using the provided locale and STDOUT.
SimpleTextRenderer(java.text.NumberFormat aTimeFormatter)
          Constructs a SimpleTextRenderer using the provided NumberFormat instace to format the numbers and STDOUT.
SimpleTextRenderer(java.io.Writer aWriter)
          Constructs a SimpleTextRenderer using the default locale and the provided writer.
SimpleTextRenderer(java.io.Writer aWriter, java.util.Locale aLocale)
          Constructs a SimpleTextRenderer using the provided locale and provided writer.
SimpleTextRenderer(java.io.Writer aWriter, java.text.NumberFormat aTimeFormatter)
          Constructs a SimpleTextRenderer using the provided writer and NumberFormat instance.
 
Method Summary
 void render(java.util.Map points)
          Renders the map to the OutputStreamWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTextRenderer

public SimpleTextRenderer()
Constructs a SimpleTextRenderer using the default locale and STDOUT.


SimpleTextRenderer

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

Parameters:
aWriter - The writer.

SimpleTextRenderer

public SimpleTextRenderer(java.util.Locale locale)
Constructs a SimpleTextRenderer using the provided locale and STDOUT.

Parameters:
locale - The locale to use.

SimpleTextRenderer

public SimpleTextRenderer(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.

SimpleTextRenderer

public SimpleTextRenderer(java.text.NumberFormat aTimeFormatter)
Constructs a SimpleTextRenderer using the provided NumberFormat instace to format the numbers and STDOUT.

Parameters:
aTimeFormatter - The number formatter.

SimpleTextRenderer

public SimpleTextRenderer(java.io.Writer aWriter,
                          java.text.NumberFormat aTimeFormatter)
Constructs a SimpleTextRenderer using the provided writer and NumberFormat instance.

Parameters:
aWriter - The writer.
aTimeFormatter - The number formatter.
Method Detail

render

public void render(java.util.Map points)
Renders the map to the OutputStreamWriter.

Specified by:
render in interface MeasurementRenderer
Parameters:
points - The points.
Throws:
EtmException - Thrown to indicate that writing to the printer failed.


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