Package com.google.speedtracer.client.timeline

Examples of com.google.speedtracer.client.timeline.TimeLineModel$WindowBoundsObserver


  }

  public void onModelChange(GraphCalloutModel m) {
    canvas.clear();
    if (m.isSelected()) {
      TimeLineModel timelineModel = mainTimeline.getModel();
      double pixelsPerDomain = mainTimeline.getCurrentGraphWidth()
          / (timelineModel.getRightBound() - timelineModel.getLeftBound());
      int xPosition = (int) ((m.getStartTime() - timelineModel.getLeftBound()) * pixelsPerDomain);
      // Compute the duration as pixels, and only display the
      // duration block if it exceeds a minimum size.
      double durationPixels = m.getDuration() * pixelsPerDomain;
      label.setInnerHTML(m.getDescription() + " @"
          + TimeStampFormatter.format(m.getStartTime()));
View Full Code Here

TOP

Related Classes of com.google.speedtracer.client.timeline.TimeLineModel$WindowBoundsObserver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.