Package java.awt

Examples of java.awt.Color.brighter()


     noa++) {
  Color pc = m_DefaultColors[noa % 10];
  int ija =  noa / 10;
  ija *= 2;
  for (int j=0;j<ija;j++) {
    pc = pc.brighter();
  }
 
  m_colorList.addElement(pc);
      }
      m_plot.setColours(m_colorList);
View Full Code Here


     i++) {
  Color pc = m_DefaultColors[i % 10];
  int ija =  i / 10;
  ija *= 2;
  for (int j=0;j<ija;j++) {
    pc = pc.brighter();
  }
 
  if (m_backgroundColor != null) {
    pc = Plot2D.checkAgainstBackground(pc, m_backgroundColor);
  }
View Full Code Here

                                              valueColor.getGreen(),
                                              valueColor.getBlue(),
                                              null)[2];
           
            if(highlight==null){
                highlight = "#"+Integer.toHexString(valueColor.brighter().getRGB()).substring(2);
                newAttributes.addAttribute("","highlight","highlight","",highlight);
            }

            if(lowlight==null){
                lowlight = "#"+Integer.toHexString(valueColor.darker().getRGB()).substring(2);
View Full Code Here

    for (int i = m_colorList.size(); i < highest; i++) {
      Color pc = m_DefaultColors[i % 10];
      int ija =  i / 10;
      ija *= 2;
      for (int j=0;j<ija;j++) {
  pc = pc.brighter();
      }
     
      m_colorList.addElement(pc);
    }
  }
View Full Code Here

     noa++) {
  Color pc = m_DefaultColors[noa % 10];
  int ija =  noa / 10;
  ija *= 2;
  for (int j=0;j<ija;j++) {
    pc = pc.brighter();
  }
 
  m_colorList.addElement(pc);
      }
      m_plot.setColours(m_colorList);
View Full Code Here

     i++) {
  Color pc = m_DefaultColors[i % 10];
  int ija =  i / 10;
  ija *= 2;
  for (int j=0;j<ija;j++) {
    pc = pc.brighter();
  }
 
  m_colorList.addElement(pc);
      }
    }
View Full Code Here

        g.setColor(color.darker());
        g.drawLine(dx / 2, dy, 0, 0);
        g.drawLine(dx / 2, dy + shift, 0, shift);
       
        // Left diagonal.
        g.setColor(color.brighter());
        g.drawLine(dx / 2, dy, dx, 0);
        g.drawLine(dx / 2, dy + shift, dx, shift);
       
        // Horizontal line.
        if (descending) {
View Full Code Here

       
        // Horizontal line.
        if (descending) {
            g.setColor(color.darker().darker());
        } else {
            g.setColor(color.brighter().brighter());
        }
        g.drawLine(dx, 0, 0, 0);

//        g.drawString(""+(this.priority+1), -20, 0);
        g.setColor(color);
View Full Code Here

            public Object createValue(UIDefaults table) {
                Color c = (Color)table.getColor("control");
                Color base = new Color(Math.max((int)(c.getRed()*.85),0),
                                       Math.max((int)(c.getGreen()*.85),0),
                                       Math.max((int)(c.getBlue()*.85),0));
                return new ColorUIResource(base.brighter());
            }
        };

        // *** Text

 
View Full Code Here

            SwingUtilities2.drawStringUnderlineCharAt(l, g, s,
                                                         mnemonicIndex,
                                                         textX, textY);
        } else {
            Color background = l.getBackground();
            g.setColor(background.brighter());
            SwingUtilities2.drawStringUnderlineCharAt(l,g, s, mnemonicIndex,
                                                         textX + 1, textY + 1);
            g.setColor(background.darker());
            SwingUtilities2.drawStringUnderlineCharAt(l,g, s, mnemonicIndex,
                                                         textX, textY);
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.