info.monitorenter.gui.chart.io
Class PropertyFileStaticDataCollector

java.lang.Object
  extended by info.monitorenter.gui.chart.io.AStaticDataCollector
      extended by info.monitorenter.gui.chart.io.PropertyFileStaticDataCollector

public class PropertyFileStaticDataCollector
extends AStaticDataCollector

Data collector that collects data in form of ITracePoint2D instances from a property file ( Properties).

Author:
Achim Westermann

Field Summary
 
Fields inherited from class info.monitorenter.gui.chart.io.AStaticDataCollector
m_trace
 
Constructor Summary
PropertyFileStaticDataCollector(ITrace2D trace, java.io.InputStream propertyFileStream)
          Constructor with target trace and property file.
 
Method Summary
 void collectData()
          Collects all ITracePoint instances from it's underlying source and adds it to the internal trace.
 
Methods inherited from class info.monitorenter.gui.chart.io.AStaticDataCollector
getTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFileStaticDataCollector

public PropertyFileStaticDataCollector(ITrace2D trace,
                                       java.io.InputStream propertyFileStream)
Constructor with target trace and property file.

Parameters:
trace - the target trace to add data to.
propertyFileStream - the stream of the file in the Properties format where TracePoint2D instances (key is x, value is y) is parsed from.
Method Detail

collectData

public void collectData()
                 throws java.io.FileNotFoundException,
                        java.io.IOException
Description copied from class: AStaticDataCollector
Collects all ITracePoint instances from it's underlying source and adds it to the internal trace.

Specified by:
collectData in class AStaticDataCollector
Throws:
java.io.IOException - if parsing or IO operations fails.
java.io.FileNotFoundException
See Also:
AStaticDataCollector.collectData()


Copyright © 2001 - 2010 LGPL, All Rights Footloose.