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      * Constructor for preparing data to paint on the space-time canvas
00016      * 
00017      * @param _colorTable
00018      * @param _ptl
00019      * @param _begTime
00020      * @param _depth
00021      * @param _height
00022      * @param _pixelLength
00023      * @param _usingMidpoint
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      * retrieve the list of data to paint
00046      * @return
00047      */
00048     public TimelineDataSet getList() {
00049         
00050         return dataset;
00051     }
00052 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1