Examples of Color


Examples of org.docx4j.wml.Color

          log.warn(e.getMessage());
          date = new Date();

          // <w:color w:val="FF0000"/>
          rPr = factory.createRPr();
          Color colorRed = factory.createColor();
          colorRed.setVal("FF0000");
          rPr.setColor(colorRed);
        }
      }

      String result = formatter.format(date);
View Full Code Here

Examples of org.eclipse.graphiti.mm.algorithms.styles.Color

    for (ContainerShape band : ChoreographyUtil.getParticipantBandContainerShapes(container)) {
      Participant participant = BusinessObjectUtil.getFirstElementOfType(band, Participant.class);
      boolean isInitiating = hasInitiatingParticipant
          && participant.equals(choreography.getInitiatingParticipantRef());
      Color color = manageColor(isInitiating ? IColorConstant.WHITE : IColorConstant.LIGHT_GRAY);
      band.getGraphicsAlgorithm().setBackground(color);
      BPMNShape bpmnShape = BusinessObjectUtil.getFirstElementOfType(band, BPMNShape.class);
      bpmnShape.setParticipantBandKind(getParticipantBandKind(isInitiating, bpmnShape.getParticipantBandKind()));
    }
View Full Code Here

Examples of org.eclipse.sapphire.Color

        return null;
    }
   
    private static Color convert( final RGB rgb )
    {
        return ( rgb == null ? null : new Color( rgb.red, rgb.green, rgb.blue ) );
    }
View Full Code Here

Examples of org.eclipse.swt.graphics.Color

    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    composite.setLayout(layout);
 

    Color bg = getShell().getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);

    GridData tblLayoutData = new GridData(SWT.FILL, SWT.FILL, true, true);

    _table = new Table(composite, SWT.FULL_SELECTION | SWT.BORDER );
    _table.setHeaderVisible(true);
View Full Code Here

Examples of org.eclipse.swt.graphics.Color

      int offsetY = rect.height;
     
      gc.setForeground(Colors.green);
      for (int i = 0; i <= connected; i++)
      {
        Color curColor;
        if (i == 0)
          curColor = Colors.colorError;
        else if (i <= seeds)
          curColor = Colors.green;
        else
View Full Code Here

Examples of org.eclipse.swt.graphics.Color

      host_torrent.setData("GUI_Uploaded", new Long(uploaded));
      host_torrent.setData("GUI_Downloaded", new Long(downloaded));
      host_torrent.setData("GUI_Left", new Long(left));

      if ( seed_count != 0 ){
        Color fg = row.getForeground();
       
        if (fg != null && fg.equals(Colors.blues[Colors.BLUES_MIDDARK])) {
          row.setForeground(Colors.blues[Colors.BLUES_MIDDARK]);
        }
      }
    }
  }  
View Full Code Here

Examples of org.eclipse.swt.graphics.Color

            if(encryptToggle.getSelection()){
                Messages.setLanguageText(encryptToggle,"SpeedTestWizard.test.panel.encrypted");
                originalColor = encryptToggle.getForeground();
                //Color highlightColor = ColorCache.getColor(display,178,78,127);
                Color highlightColor = display.getSystemColor(SWT.COLOR_DARK_YELLOW);
                encryptToggle.setBackground(highlightColor);
            }else{
                Messages.setLanguageText(encryptToggle,"SpeedTestWizard.test.panel.standard");
                if(originalColor!=null){
                    encryptToggle.setBackground(originalColor);
View Full Code Here

Examples of org.eclipse.swt.graphics.Color

      diffHue = hslScheme.getHue() - hslDefault.getHue();
      diffSatPct = hslScheme.getSaturation() == 0 ? 0 : (float) hslDefault.getSaturation() / hslScheme.getSaturation();
      diffLumPct = hslScheme.getLuminence() == 0 ? 0 : (float) hslDefault.getLuminence() / hslScheme.getLuminence();

      HSLColor hslColor = new HSLColor();
      Color colorTables = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
      int tR = colorTables.getRed();
      int tG = colorTables.getGreen();
      int tB = colorTables.getBlue();
     
      // 0 == window background (white)
      // [blues.length-1] == rgb
      // in between == blend
      for (int i = 0; i < blues.length; i++) {
View Full Code Here

Examples of org.eclipse.swt.graphics.Color

    if (display == null || display.isDisposed())
      return;

    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        Color colorTables = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
        HSLColor hslColor = new HSLColor();
        hslColor.initHSLbyRGB(colorTables.getRed(), colorTables.getGreen(),
            colorTables.getBlue());
        int lum = hslColor.getLuminence();
        int sat = hslColor.getSaturation();

        lum = (int)((lum > 127) ? lum * 0.8 : lum * 1.3);
       
 
View Full Code Here

Examples of org.eclipse.swt.graphics.Color

    if (display == null || display.isDisposed())
      return;

    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        Color colorTables = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
        HSLColor hslBG = new HSLColor();
        hslBG.initHSLbyRGB(colorTables.getRed(), colorTables.getGreen(),
            colorTables.getBlue());
        int lum = hslBG.getLuminence();

        HSLColor hslColor = new HSLColor();
        hslColor.initRGBbyHSL(25, 200, 128 + (lum < 160 ? 10 : -10));
        colorWarning = new AllocateColor("warning", new RGB(hslColor.getRed(),
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.