Examples of HighlightEntry


Examples of com.google.speedtracer.client.timeline.HighlightModel.HighlightEntry

    double coordsPerDomain = COORD_X_WIDTH / (rightBound - leftBound);

    Iterator<HighlightEntry> it = highlights.getRangeValues(leftBound,
        rightBound, domainDelta);
    while (it.hasNext()) {
      HighlightEntry highlightEntry = it.next();

      double xVal = (highlightEntry.getKey() - leftBound) * coordsPerDomain;
      int val = highlightEntry.getValue();

      canvas.beginPath();
      canvas.setStrokeStyle(HintletIndicator.getSeverityColor(val));
      canvas.setLineWidth(2);
      canvas.moveTo(xVal, COORD_Y_HEIGHT);
View Full Code Here

Examples of com.google.speedtracer.client.timeline.HighlightModel.HighlightEntry

    model.addData(1.0, 1);
    model.addData(20.0, 20);

    Iterator<HighlightEntry> it = model.getRangeValues(0.0, 100.0, .5);
    assertTrue(it.hasNext());
    HighlightEntry entry = it.next();
    assertEquals("first entry", 1.0, entry.getKey());
    assertEquals("first entry", 1, entry.getValue().intValue());
    assertTrue(it.hasNext());
    entry = it.next();
    assertEquals("second entry", 20.0, entry.getKey());
    assertEquals("second entry", 20, entry.getValue().intValue());
    assertFalse(it.hasNext());
  }
View Full Code Here

Examples of com.google.speedtracer.client.timeline.HighlightModel.HighlightEntry

    model.addData(20.0, 1);
    model.addData(50.0, 2);
   
    Iterator<HighlightEntry> it = model.getRangeValues(0.0, 100.0, 10.0);
    assertTrue(it.hasNext());
    HighlightEntry entry = it.next();
    assertEquals("first entry", 1.0, entry.getKey());
    assertEquals("first entry", 2, entry.getValue().intValue());
    assertTrue(it.hasNext());
    entry = it.next();
    assertEquals("second entry", 20.0, entry.getKey());
    assertEquals("second entry", 3, entry.getValue().intValue());
    entry = it.next();
    assertEquals("third entry", 50.0, entry.getKey());
    assertEquals("third entry", 2, entry.getValue().intValue());   
    assertFalse(it.hasNext());
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.