info.monitorenter.gui.chart.io
Class AStaticDataCollector

java.lang.Object
  extended by info.monitorenter.gui.chart.io.AStaticDataCollector
Direct Known Subclasses:
PropertyFileStaticDataCollector

public abstract class AStaticDataCollector
extends java.lang.Object

Base class for data collectors that fill traces for static charts in one run.

Extend from this class and override the method collectData().

Version:
$Revision: 1.3 $
Author:
Achim Westermann

Field Summary
protected  ITrace2D m_trace
          Target trace where all collected data is added.
 
Constructor Summary
AStaticDataCollector(ITrace2D trace)
          Constructor with target trace.
 
Method Summary
abstract  void collectData()
          Collects all ITracePoint instances from it's underlying source and adds it to the internal trace.
 ITrace2D getTrace()
          Returns the trace data is added to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_trace

protected ITrace2D m_trace
Target trace where all collected data is added.

Constructor Detail

AStaticDataCollector

public AStaticDataCollector(ITrace2D trace)
Constructor with target trace.

Parameters:
trace - the trace collected points will be added to.
Method Detail

collectData

public abstract void collectData()
                          throws java.io.IOException
Collects all ITracePoint instances from it's underlying source and adds it to the internal trace.

Throws:
java.io.IOException - if parsing or IO operations fails.

getTrace

public ITrace2D getTrace()
Returns the trace data is added to.

Returns:
the trace data is added to.


Copyright © 2001 - 2010 LGPL, All Rights Footloose.