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

COVERAGE SUMMARY FOR SOURCE FILE [AbstractHtmlReportView.java]

nameclass, %method, %block, %line, %
AbstractHtmlReportView.java0%   (0/1)0%   (0/6)0%   (0/46)0%   (0/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractHtmlReportView0%   (0/1)0%   (0/6)0%   (0/46)0%   (0/15)
AbstractHtmlReportView (): void 0%   (0/1)0%   (0/3)0%   (0/2)
addInput (Collection): void 0%   (0/1)0%   (0/1)0%   (0/1)
createReportControls (Composite): void 0%   (0/1)0%   (0/11)0%   (0/3)
deleteInput (Collection): void 0%   (0/1)0%   (0/1)0%   (0/1)
generateVisualization (List): void 0%   (0/1)0%   (0/25)0%   (0/6)
setFocus (): void 0%   (0/1)0%   (0/5)0%   (0/2)

1package de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.views;
2 
3import java.util.ArrayList;
4import java.util.Collection;
5import java.util.Collections;
6import java.util.List;
7 
8import org.eclipse.swt.SWT;
9import org.eclipse.swt.browser.Browser;
10import org.eclipse.swt.widgets.Composite;
11 
12import de.uka.ipd.sdq.sensorframework.adapter.DataAdapter;
13import de.uka.ipd.sdq.sensorframework.entities.SensorAndMeasurements;
14import de.uka.ipd.sdq.sensorframework.visualisation.IVisualisation;
15import de.uka.ipd.sdq.sensorframework.visualisation.editor.AbstractReportView;
16 
17public abstract class AbstractHtmlReportView extends AbstractReportView implements IVisualisation < SensorAndMeasurements >{
18 
19        /**Reference to the browser window in which the report is displayed. */
20        protected Browser browser;
21 
22        public AbstractHtmlReportView() {
23                super();
24        }
25 
26        /** {@inheritDoc}
27         */
28        @SuppressWarnings("unchecked")
29        @Override
30        protected void createReportControls(final Composite parent) {
31                browser = new Browser(parent, SWT.BORDER);
32                setInput(Collections.EMPTY_LIST);
33        }
34 
35        /** {@inheritDoc}
36         */
37        @Override
38        public void setFocus() {
39                browser.setFocus();
40        }
41 
42        /** {@inheritDoc}
43         */
44        public void addInput(final Collection < SensorAndMeasurements > c) {
45                // The implementation is not necessary.
46        }
47 
48        /** {@inheritDoc}
49         */
50        public void deleteInput(final Collection < SensorAndMeasurements > c) {
51                // The implementation is not necessary.
52        }
53 
54        /** {@inheritDoc}
55         */
56        @Override
57        protected void generateVisualization(final List < DataAdapter > list) {
58                ArrayList<SensorAndMeasurements> viewerInput = 
59                        new ArrayList<SensorAndMeasurements>();
60                for (DataAdapter a : list) {
61                        viewerInput.add((SensorAndMeasurements) a.getAdaptedObject());
62                }
63                this.setInput(viewerInput);
64        }
65 
66}

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