Package com.google.gwt.graphics.client

Examples of com.google.gwt.graphics.client.Color


    /**
     * Renders time in self and overlays time spent in children.
     */
    public void renderSelfAndChildren() {
      canvas.clear();
      final Color dominantColor = presenter.getDominantTypeColor(event);

      // If this node has a dominant color set, then it is one of several
      // important ones... show it with a 1 pixel bar.
      if (dominantColor != null) {
        // Simple fill with this color.
View Full Code Here


      row.insertCell(-1).setInnerHTML(
          "<b>" + formatSelfTime(profileNode) + "%</b></td>");
      row.insertCell(-1).setInnerHTML(
          "<b>" + formatTime(profileNode) + "%</td>");

      Color rowColor = rowEvenOdd ? Color.WHITE : Color.CHROME_BLUE;
      row.getStyle().setBackgroundColor(rowColor.toString());
      rowEvenOdd = !rowEvenOdd;
    }
View Full Code Here

      // AppStats only.
      map.put("API", Color.LIGHT_BLUE);
      colorByTypeString = map;
    }

    final Color color = colorByTypeString.get(event.getServerEventData().getType());
    return (color == null) ? Color.LIGHTGREY : color;
  }
View Full Code Here

  }

  public final void registerType() {
    int type = getCustomId(getTypeName());
    setType(type);
    EventRecordColors.registerColor(type, new Color(getColorString()));
  }
View Full Code Here

      tooltipAdded = true;
      interactiveComp.setVisible(true);
    }

    // TODO(zundel): alpha?
    Color strokeColor = new Color("#415086");
    c.setStrokeStyle(strokeColor);
    c.setLineWidth(1);
    c.beginPath();
    c.moveTo((int) startX, graphHeightCoords);
    c.lineTo((int) startX, 0);
View Full Code Here

      return elem;
    }

    private void addTitle(Element elem) {
      String title = UiEvent.typeToDetailedTypeString(event);
      Color color = EventRecordColors.getColorForType(event.getType());
      DivElement colorBox = elem.getOwnerDocument().createDivElement();
      colorBox.setClassName(resources.eventWaterfallRowCss().colorBox());
      colorBox.getStyle().setBackgroundColor(color.toString());
      elem.appendChild(colorBox);
      elem.appendChild(elem.getOwnerDocument().createTextNode(title));
    }
View Full Code Here

    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;
View Full Code Here

TOP

Related Classes of com.google.gwt.graphics.client.Color

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.