DetailDataPreparation.java
Go to the documentation of this file.00001 package edu.rice.cs.hpc.traceviewer.main;
00002
00003 import org.eclipse.swt.graphics.Color;
00004
00005 import edu.rice.cs.hpc.traceviewer.data.db.DataPreparation;
00006 import edu.rice.cs.hpc.traceviewer.data.db.TimelineDataSet;
00007 import edu.rice.cs.hpc.traceviewer.data.graph.ColorTable;
00008 import edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline;
00009
00010 public class DetailDataPreparation extends DataPreparation {
00011
00012 private TimelineDataSet dataset;
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 public DetailDataPreparation(ColorTable _colorTable, ProcessTimeline _ptl,
00026 long _begTime, int _depth, int _height, double _pixelLength,
00027 boolean _usingMidpoint)
00028 {
00029 super(_colorTable, _ptl, _begTime, _depth, _height, _pixelLength,
00030 _usingMidpoint);
00031 dataset = new TimelineDataSet( ptl.line(),_ptl.size(), height);
00032 }
00033
00034 @Override
00035 public void finishLine(int currSampleMidpoint, int succSampleMidpoint,
00036 int currDepth, Color color, int sampleCount) {
00037
00038 final DetailDataVisualization data = new DetailDataVisualization(currSampleMidpoint,
00039 succSampleMidpoint, currDepth, color, sampleCount);
00040
00041 dataset.add(data);
00042 }
00043
00044
00045
00046
00047
00048 public TimelineDataSet getList() {
00049
00050 return dataset;
00051 }
00052 }