Package com.google.speedtracer.client.model

Examples of com.google.speedtracer.client.model.ApplicationState


    // update tab description.
    dataDispatcher.getTabDescription().updateUrl(
        Url.getUrlWithoutHash(nav.getUrl()));

    // Create the ApplicationState with some initial guesses for bounds
    ApplicationState newState = new ApplicationState(dataDispatcher);

    ApplicationState oldState = pageStates.get(pageStates.size() - 1);
    // The current ApplicationState should now be neutered and no longer
    // receive updates. It should also transfer relevant old state to the new
    // ApplicationState.
    oldState.detachModelsFromDispatchers();

    newState.setFirstDomainValue(nav.getTime());
    newState.setLastDomainValue(nav.getTime()
        + Constants.DEFAULT_GRAPH_WINDOW_SIZE);

    // Add this new ApplicationState to our collection of states for each page
    int pageIndex = addPageState(nav.getUrl(), newState);

    // Now swap in the page state
    setStateForPageAtIndex(pageIndex);
    controller.setSelectedPage(pageIndex);

    maybeInitializeSymbolServerController(dataDispatcher.getTabDescription());
   
    // copy over associated network resource from before the tab change was processed
    // copy all back to the main resource
    DataDispatcher dispatcher = oldState.getDataDispatcher();
    copyRecordsFromBeforePageTransition(dispatcher, newState, nav.getUrl());
  }
View Full Code Here


  /**
   * Removes all current application states and starts a new one at the last
   * page we were monitoring.
   */
  public void resetApplicationStates() {
    ApplicationState newState = new ApplicationState(dataDispatcher);
    newState.setFirstDomainValue(0);
    newState.setLastDomainValue(Constants.DEFAULT_GRAPH_WINDOW_SIZE);

    detachApplicationStates();
    pageStates.clear();
    dataDispatcher.clear();
    monitorVisualizationsPanel.clearTimelineMarks();
View Full Code Here

   *          current state
   */
  public void setStateForPageAtIndex(int pageIndex) {
    if (pageStates != null) {
      assert (pageIndex >= 0 && pageIndex < pageStates.size());
      ApplicationState state = pageStates.get(pageIndex);
      setApplicationState(state);
    }
  }
View Full Code Here

    // The top Controller bar for our top level actions.
    controller = new Controller(Root.getContainer(), dataDispatcher, this,
        resources);

    // Create the initial ApplicationState.
    addPageState(tabDescription.getUrl(), new ApplicationState(dataDispatcher));

    // The Panel that contains the Visualizations.
    monitorVisualizationsPanel = new MonitorVisualizationsPanel(
        Root.getContainer(), controller, pageStates.get(0), resources);
View Full Code Here

TOP

Related Classes of com.google.speedtracer.client.model.ApplicationState

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.