Examples of ColorPicker


Examples of org.apache.hadoop.chukwa.hicc.ColorPicker

        output.append(xLabelRange.get(i));
      }
      output.append("\"];\n");
    }
    output.append("_series=[\n");
    ColorPicker cp = new ColorPicker();
    int i = 0;
    for (TreeMap<String, TreeMap<String, Double>> dataMap : this.dataset) {
      String[] keyNames = null;
      if (this.seriesOrder != null) {
        keyNames = this.seriesOrder;
      } else {
        keyNames = dataMap.keySet().toArray(
            new String[dataMap.size()]);
      }
      int counter = 0;
      if (i != 0) {
        if (!this.userDefinedMax) {
          this.max = 0;
        }
      }
      for (String seriesName : keyNames) {
        int counter2 = 0;
        if ((counter != 0) || (i != 0)) {
          output.append(",");
        }
        String param = "fill: false";
        String type = "lines";
        if (this.chartType.get(i).intern() == "stack-area".intern()
            || this.chartType.get(i).intern() == "area".intern()) {
          param = "fill: true";
        }
        if (this.chartType.get(i).intern() == "bar".intern()) {
          type = "bars";
          param = "stepByStep: true";
        }
        if (this.chartType.get(i).intern() == "point".intern()) {
          type = "points";
          param = "fill: false";
        }
        output.append("  {");
        output.append(type);
        output.append(": { show: true, ");
        output.append(param);
        output.append(" }, color: \"");
        output.append(cp.getNext());
        output.append("\", label: \"");
        output.append(seriesName);
        output.append("\", ");
        String showYAxis = "false";
        String shortRow = "false";
View Full Code Here

Examples of org.latexlab.docs.client.widgets.ColorPicker

          public void onClick(ClickEvent event) {
            hide();
          }
      });
      HorizontalPanel content = new HorizontalPanel();
      picker = new ColorPicker();
      picker.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        hide();
        if (selectionHandler != null) {
View Full Code Here

Examples of org.openhab.model.sitemap.Colorpicker

 
  /**
   * {@inheritDoc}
   */
  public EList<Widget> renderWidget(Widget w, StringBuilder sb) throws RenderException {
    Colorpicker cp = (Colorpicker) w;
   
    String snippetName = "colorpicker";

    String snippet = getSnippet(snippetName);

    // set the default send-update frequency to 200ms 
    String frequency = cp.getFrequency()==0 ? "200" : Integer.toString(cp.getFrequency());
   
    // get RGB hex value
    State state = itemUIRegistry.getState(cp);
    String hexValue = "#ffffff";
    if(state instanceof HSBType) {
View Full Code Here

Examples of org.rssowl.ui.internal.util.ColorPicker

    /* Color */
    if (fMode == DialogMode.ADD || fMode == DialogMode.EDIT) {
      Label nameLabel = new Label(composite, SWT.NONE);
      nameLabel.setText(Messages.LabelDialog_COLOR);

      fColorPicker = new ColorPicker(composite, SWT.FLAT);
      if (fExistingLabel != null)
        fColorPicker.setColor(OwlUI.getRGB(fExistingLabel));
    }

    /* Info Container */
 
View Full Code Here

Examples of org.rssowl.ui.internal.util.ColorPicker

    /* Color */
    if (fMode == DialogMode.ADD || fMode == DialogMode.EDIT) {
      Label nameLabel = new Label(composite, SWT.NONE);
      nameLabel.setText(Messages.LabelDialog_COLOR);

      fColorPicker = new ColorPicker(composite, SWT.FLAT);
      if (fExistingLabel != null)
        fColorPicker.setColor(OwlUI.getRGB(fExistingLabel));
    }

    /* Info Container */
 
View Full Code Here

Examples of org.rssowl.ui.internal.util.ColorPicker

    Label nameLabel = new Label(fContainer, SWT.NONE);
    nameLabel.setText(Messages.ShowNotifierNewsActionPresentation_SELECT_COLOR);
    nameLabel.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, true));

    fColorPicker = new ColorPicker(fContainer, SWT.FLAT);
    fColorPicker.setColor(fSelectedColor);
    fColorPicker.getControl().setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, true));
  }
View Full Code Here

Examples of org.sgx.yuigwt.yuigallery.colorpicker.ColorPicker

    srcNode.text(htmlColor);
    srcNode.setStyle("background-color", htmlColor);
    srcNode.on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        ColorPicker cp1 = getColorPicker();
        cp1.show();
      }
    });
  }
View Full Code Here

Examples of org.sgx.yuigwt.yuigallery.colorpicker.ColorPicker

        cp1.show();
      }
    });
  }
  protected ColorPicker getColorPicker() {   
    ColorPicker cp = getGalleryContext().newColorPicker();
    cp.render(getGalleryContext().one("body"));
    cp.hide();
    return cp;
  }
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.