Beispiel #1
0
 /** Return time interval of loaded data */
 public TimeInterval getLoadedTimeRange() {
   TimeInterval ret = null;
   for (PlotDataProvider channel : plotDataProviders) {
     if (ret == null) {
       ret = channel.getTimeRange();
     } else {
       ret = TimeInterval.getAggregate(ret, channel.getTimeRange());
     }
   }
   return ret;
 }
Beispiel #2
0
 protected String getChannelLabelText(PlotDataProvider channel) {
   String respname = "No response";
   try {
     if (channel.getResponse() != null) {
       respname = channel.getResponse().getFileName();
     }
   } catch (TraceViewException e) {
     // do nothing
   }
   return "<html>"
       + channel.getName()
       + "<br><i>Start time: </i> "
       + TimeInterval.formatDate(
           channel.getTimeRange().getStartTime(), TimeInterval.DateFormatType.DATE_FORMAT_MIDDLE)
       + "<br><i>Duration: </i> "
       + channel.getTimeRange().convert()
       + "<br><i>Sample rate: </i>"
       + channel.getSampleRate()
       + " ms <br>"
       + respname
       + "</html>";
 }