예제 #1
0
파일: ChannelView.java 프로젝트: usgs/xmax
 /** 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;
 }
예제 #2
0
파일: ChannelView.java 프로젝트: usgs/xmax
 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>";
 }