Package java.awt

Examples of java.awt.Color.brighter()


      // Fill the background
      Color bkColor = SystemColor.activeCaption;
      g.setColor( bkColor );
      if ( g instanceof Graphics2D ) {
        Graphics2D g2d = ((Graphics2D)g);
        GradientPaint gradient = new GradientPaint( 0.0F, 0.0F, bkColor.brighter(),
                                                    (float)size.height/2, (float)size.width/2,
                                                    bkColor.darker(), true );
        g2d.setPaint( gradient );
        g2d.fill( borderArea );
      }
View Full Code Here


     */
    protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
    {
        int accChar = l.getDisplayedMnemonicIndex();
        Color background = l.getBackground();
        g.setColor(background.brighter());
        SwingUtilities2.drawStringUnderlineCharAt(l, g, s, accChar,
                                                   textX + 1, textY + 1);
        g.setColor(background.darker());
        SwingUtilities2.drawStringUnderlineCharAt(l, g, s, accChar,
                                                   textX, textY);
View Full Code Here

      int k = this.descending ? 1 : -1;
      paramGraphics.translate(paramInt1, paramInt2);
      paramGraphics.setColor(localColor.darker());
      paramGraphics.drawLine(i / 2, j, 0, 0);
      paramGraphics.drawLine(i / 2, j + k, 0, k);
      paramGraphics.setColor(localColor.brighter());
      paramGraphics.drawLine(i / 2, j, i, 0);
      paramGraphics.drawLine(i / 2, j + k, i, k);
      if (this.descending)
        paramGraphics.setColor(localColor.darker().darker());
      else
View Full Code Here

      paramGraphics.drawLine(i / 2, j, i, 0);
      paramGraphics.drawLine(i / 2, j + k, i, k);
      if (this.descending)
        paramGraphics.setColor(localColor.darker().darker());
      else
        paramGraphics.setColor(localColor.brighter().brighter());
      paramGraphics.drawLine(i, 0, 0, 0);
      paramGraphics.setColor(localColor);
      paramGraphics.translate(-paramInt1, -paramInt2);
    }
View Full Code Here

        Paint itemPaint = renderer.getItemPaint(row, column);

        Color c0, c1;
        if (itemPaint instanceof Color) {
            c0 = (Color) itemPaint;
            c1 = c0.brighter();
        } else if (itemPaint instanceof GradientPaint) {
            GradientPaint gp = (GradientPaint) itemPaint;
            c0 = gp.getColor1();
            c1 = gp.getColor2();
        } else {
View Full Code Here

        Paint itemPaint = renderer.getItemPaint(row, column);

        Color c0, c1;
        if (itemPaint instanceof Color) {
            c0 = (Color) itemPaint;
            c1 = c0.brighter();
        }
        else if (itemPaint instanceof GradientPaint) {
            GradientPaint gp = (GradientPaint) itemPaint;
            c0 = gp.getColor1();
            c1 = gp.getColor2();
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.setColor(color.brighter());
            }
            g.drawLine(dx, 0, 0, 0);


            g.setColor(color);
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.setColor(color);
            g.translate(-x, -y);
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.