Package com.google.speedtracer.client.timeline

Examples of com.google.speedtracer.client.timeline.GraphUiProps


  private static final double defaultPendingRequestCount = 4;

  private static final String SUBTITLE = "resources";

  private static GraphUiProps createGraphUiProps() {
    return new GraphUiProps(Constants.NETWORK_GRAPH_COLOR,
        Constants.GRAPH_STROKE_COLOR, defaultPendingRequestCount);
  }
View Full Code Here


  /**
   * Constructor for the Graph UI properties that govern the graph's look and
   * feel.
   */
  private static GraphUiProps createGraphUiProps() {
    return new GraphUiProps(Constants.SLUGGISHNESS_GRAPH_COLOR,
        Constants.GRAPH_STROKE_COLOR,
        SluggishnessModel.defaultSluggishnessYScale);
  }
View Full Code Here

  protected void paint() {
    canvas.clear();
    for (int i = 0, n = visualizations.size(); i < n; i++) {
      Visualization<?, ?> viz = visualizations.get(i);
      GraphModel model = viz.getModel().getGraphModel();
      GraphUiProps graphUiProps = viz.getGraphUiProps();
      Color graphColor = graphUiProps.getGraphColor();
      Color graphStrokeColor = graphUiProps.getStrokeColor();

      double maxYValue = Math.max(model.getMaxEncounteredValue(),
          graphUiProps.getYAxisScaleCap());

      double yAdjustment = COORD_Y_HEIGHT / maxYValue;

      canvas.setLineWidth(2);
      canvas.setStrokeStyle(graphStrokeColor);
View Full Code Here

TOP

Related Classes of com.google.speedtracer.client.timeline.GraphUiProps

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.