Examples of brighter()


Examples of java.awt.Color.brighter()

           
            // 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

Examples of java.awt.Color.brighter()

            public Object createValue(UIDefaults table) {
                Color c = 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

Examples of java.awt.Color.brighter()

     */
    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

Examples of java.awt.Color.brighter()

     */
    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

Examples of java.awt.Color.brighter()

      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

Examples of java.awt.Color.brighter()

            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

Examples of java.awt.Color.brighter()

            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

Examples of java.awt.Color.brighter()

    protected void paintDisabledText(Component c, Graphics g, String s, int textX, int textY)
    {
      Color componentBackground = c.getBackground();
      // Use our background colour as foreground colour, if none set, just use the default.
        Color foreground = componentBackground != null ? componentBackground : getDefaultDisabledTitleColour();
        g.setColor(foreground.brighter());
        g.drawString(s, textX+1, textY+1);
        g.setColor(foreground.darker());
        g.drawString(s, textX, textY);
    }
View Full Code Here

Examples of java.awt.Color.brighter()

    protected void paintDisabledText(Component c, Graphics g, String s, int textX, int textY)
    {
      Color componentBackground = c.getBackground();
      // Use our background colour as foreground colour, if none set, just use the default.
        Color foreground = componentBackground != null ? componentBackground : getDefaultDisabledTitleColour();
        g.setColor(foreground.brighter());
        g.drawString(s, textX+1, textY+1);
        g.setColor(foreground.darker());
        g.drawString(s, textX, textY);
    }
View Full Code Here

Examples of java.awt.Color.brighter()

    protected void paintDisabledText(Component c, Graphics g, String s, int textX, int textY)
    {
      Color componentBackground = c.getBackground();
      // Use our background colour as foreground colour, if none set, just use the default.
        Color foreground = componentBackground != null ? componentBackground : getDefaultDisabledTitleColour();
        g.setColor(foreground.brighter());
        g.drawString(s, textX+1, textY+1);
        g.setColor(foreground.darker());
        g.drawString(s, 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.