EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.sensorframework.visualisation.jfreechartvisualisation]

COVERAGE SUMMARY FOR SOURCE FILE [AbstractJFreeChartWidthViewer.java]

nameclass, %method, %block, %line, %
AbstractJFreeChartWidthViewer.java0%   (0/1)0%   (0/2)0%   (0/42)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractJFreeChartWidthViewer0%   (0/1)0%   (0/2)0%   (0/42)0%   (0/11)
AbstractJFreeChartWidthViewer (Composite, int): void 0%   (0/1)0%   (0/10)0%   (0/3)
setData (Collection): void 0%   (0/1)0%   (0/32)0%   (0/8)

1package de.uka.ipd.sdq.sensorframework.visualisation.jfreechartvisualisation;
2 
3import java.util.Collection;
4 
5import org.eclipse.swt.widgets.Composite;
6import org.jfree.data.xy.DefaultTableXYDataset;
7import org.jfree.data.xy.XYSeries;
8 
9import de.uka.ipd.sdq.codegen.simudatavisualisation.datatypes.Histogram;
10 
11public abstract class AbstractJFreeChartWidthViewer extends
12                AbstractJFreeChartChart<Histogram> {
13 
14        protected Collection<Histogram> lastData;
15 
16        protected DefaultTableXYDataset densityDataset=new DefaultTableXYDataset();
17 
18        
19        public AbstractJFreeChartWidthViewer(Composite parent, int style) {
20                super(parent, style);
21        }
22 
23        public void setData(Collection<Histogram> data) {
24                densityDataset.removeAllSeries();
25                                
26                for (Histogram h : data) {
27                        densityDataset.addSeries(computeDensities(h));
28                }
29                initChart();
30                
31                this.setChart(chart);
32                this.forceRedraw();
33                
34                lastData = data;
35        }
36 
37        protected abstract XYSeries computeDensities(Histogram hist);
38}

[all classes][de.uka.ipd.sdq.sensorframework.visualisation.jfreechartvisualisation]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov