Examples of RGB


Examples of org.eclipse.swt.graphics.RGB

   * @param label
   * @return Color
   */
  public static Color getColor(ResourceManager resources, ILabel label) {
    String color[] = label.getColor().split(",");
    RGB rgb = new RGB(Integer.parseInt(color[0]), Integer.parseInt(color[1]), Integer.parseInt(color[2]));

    return getColor(resources, rgb);
  }
View Full Code Here

Examples of org.eclipse.swt.graphics.RGB

  private void initResources() {

    /* Colors */
    fNotifierColors = new NotifierColors(getParentShell().getDisplay(), fResources);
    fStickyBgColor = OwlUI.getThemeColor(OwlUI.STICKY_BG_COLOR_ID, fResources, new RGB(255, 255, 128));

    /* Icons */
    fCloseImageNormal = OwlUI.getImage(fResources, "icons/etool16/close_normal.png");
    fCloseImagePressed = OwlUI.getImage(fResources, "icons/etool16/close_pressed.png");
    fItemStickyIcon = OwlUI.getImage(fResources, OwlUI.NEWS_PINNED);
View Full Code Here

Examples of org.eclipse.swt.graphics.RGB

    /* Font */
    FontData fontData = splash.getDisplay().getSystemFont().getFontData()[0];
    fVersionFont = new Font(splash.getDisplay(), fontData.getName(), 8, SWT.BOLD);

    /* Color */
    fVersionColor = new Color(splash.getDisplay(), new RGB(53, 53, 53));
  }
View Full Code Here

Examples of org.eclipse.swt.graphics.RGB

  private void initResources() {

    /* Colors */
    fNotifierColors = new NotifierColors(getParentShell().getDisplay(), fResources);
    fStickyBgColor = OwlUI.getThemeColor(OwlUI.STICKY_BG_COLOR_ID, fResources, new RGB(255, 255, 180));

    /* Icons */
    fCloseImageNormal = OwlUI.getImage(fResources, "icons/etool16/close_normal.png"); //$NON-NLS-1$
    fCloseImageHot = OwlUI.getImage(fResources, "icons/etool16/close_hot.png"); //$NON-NLS-1$
    fCloseImagePressed = OwlUI.getImage(fResources, "icons/etool16/close_pressed.png"); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.swt.graphics.RGB

      @Override
      public void run() {
        LabelDialog dialog = new LabelDialog(shellProvider.getShell(), DialogMode.ADD, null);
        if (dialog.open() == IDialogConstants.OK_ID) {
          String name = dialog.getName();
          RGB color = dialog.getColor();

          ILabel newLabel = Owl.getModelFactory().createLabel(null, name);
          newLabel.setColor(OwlUI.toString(color));
          newLabel.setOrder(labels.size());
          DynamicDAO.save(newLabel);
View Full Code Here

Examples of org.eclipse.swt.graphics.RGB

        }

        /* Create new Label if necessary */
        if (label == null) {
          ILabel newLabel = Owl.getModelFactory().createLabel(null, labelValue);
          newLabel.setColor(OwlUI.toString(new RGB(0, 0, 0)));
          newLabel.setOrder(fExistingLabels.size());
          DynamicDAO.save(newLabel);
          fExistingLabels.add(newLabel);
          label = newLabel;
        }
View Full Code Here

Examples of org.eclipse.swt.graphics.RGB

    fResources = new LocalResourceManager(JFaceResources.getResources());
    fFirstTimeOpen = (Activator.getDefault().getDialogSettings().getSection(DIALOG_SETTINGS_KEY) == null);
    fPreferences = Owl.getPreferenceService().getGlobalScope();

    /* Colors */
    fSeparatorBorderFg = OwlUI.getColor(fResources, new RGB(210, 210, 210));
    fSeparatorBg = OwlUI.getColor(fResources, new RGB(240, 240, 240));
  }
View Full Code Here

Examples of tv.porst.swfretools.parser.structures.RGB

   *
   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static SetBackgroundColorTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final RGB backgroundColor = RGBParser.parse(parser, "SetBackgroundColor::BackgroundColor");

    return new SetBackgroundColorTag(header, backgroundColor);
  }
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.