Package com.google.speedtracer.client.visualizations.model

Examples of com.google.speedtracer.client.visualizations.model.SluggishnessModel$EventWithinWindowListener


  LazyEventTree.Presenter getPresenter() {
    return presenter;
  }

  private SymbolServerController getCurrentSymbolServerController() {
    SluggishnessModel sModel = (SluggishnessModel) getVisualization().getModel();
    String resourceUrl = sModel.getDataDispatcher().getTabDescription().getUrl();
    return SymbolServerService.getSymbolServerController(new Url(resourceUrl));
  }
View Full Code Here


  private void createVisualizations(ApplicationState initialState,
      MainTimeLine.Resources resources) {

    // Sluggishness
    SluggishnessModel sluggishnessModel = (SluggishnessModel) initialState.getVisualizationModel(SluggishnessVisualization.TITLE);
    SluggishnessVisualization sluggishnessVisualization = new SluggishnessVisualization(
        mainTimeLine, sluggishnessModel, detailsViewPanel.getContainer(),
        resources);

    // Network Visualization
View Full Code Here

   * @param dataDispatcher the {@link DataDispatcher} that all the
   *          {@link VisualizationModel}s register to
   */
  private void populateVisualizationModelMap(DataDispatcher dataDispatcher) {
    visualizationModelMap.put(SluggishnessVisualization.TITLE,
        new SluggishnessModel(dataDispatcher));
    visualizationModelMap.put(NetworkVisualization.TITLE,
        new NetworkVisualizationModel(dataDispatcher));
  }
View Full Code Here

    }

    private void sizeEventBar(Element elem) {
      SluggishnessVisualization visualization = eventWaterfall.getVisualization();
      int cellWidth = visualization.getTimeline().getCurrentGraphWidth();
      SluggishnessModel model = visualization.getModel();
      double totalDuration = model.getCurrentRight() - model.getCurrentLeft();

      assert totalDuration > 0 : "Attempted to render row with 0 duration window";

      double duration = getEvent().getDuration();
      double domainToPixels = (cellWidth / totalDuration);

      double barPixelWidth = Math.max(duration * domainToPixels, 1);
      double barOffset = (getEvent().getTime() - model.getCurrentLeft())
          * domainToPixels;

      EventWaterfallRow.Css css = resources.eventWaterfallRowCss();
      final Element graphElem = eventBreakdown.getRenderedCanvasElement();
      final Style graphStyle = graphElem.getStyle();
View Full Code Here

TOP

Related Classes of com.google.speedtracer.client.visualizations.model.SluggishnessModel$EventWithinWindowListener

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.