Package java.awt

Examples of java.awt.Color.darker()


      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);
    }

  /**
   * Colour to use as the Title Text Colour when disabled and the components background colour can not be determined.
View Full Code Here


      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);
    }

  /**
   * Colour to use as the Title Text Colour when disabled and the components background colour can not be determined.
View Full Code Here

        outcome = Color.YELLOW.darker();
      else
        if (added > 0)
        {
          outcome = Color.GREEN;
          if (orig > 0) outcome.darker().darker();
        }
        else
          if (removed > 0)
          {
            outcome = Color.RED;
View Full Code Here

        else
          if (removed > 0)
          {
            outcome = Color.RED;
            if (removed < orig)
              outcome=outcome.darker().darker();
          }
     
      return outcome;
    }
  }
View Full Code Here

      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);
    }

  /**
   * Colour to use as the Title Text Colour when disabled and the components background colour can not be determined.
View Full Code Here

        outcome = Color.YELLOW.darker();
      else
        if (added > 0)
        {
          outcome = Color.GREEN;
          if (orig > 0) outcome.darker().darker();
        }
        else
          if (removed > 0)
          {
            outcome = Color.RED;
View Full Code Here

        else
          if (removed > 0)
          {
            outcome = Color.RED;
            if (removed < orig)
              outcome=outcome.darker().darker();
          }
     
      return outcome;
    }
  }
View Full Code Here

    Color color = guessColor(p);

    if (p.isSelected()) {
      p.targetStrokeColor = Color.red;
      p.targetFillColor = color.darker().darker();
      return true;
    }
    if (seedColoring && vals.degree == 0) {
      p.targetStrokeColor = Color.green;
      p.targetFillColor = Color.green; //c.brighter().brighter();
View Full Code Here

    Color result = Color.WHITE;
    if (row % 2 == 0) {
      result = BossanovaTableCellRenderer.specificBlue;
    }
    if (isSelected) {
      result = result.darker();
    }
    return result;
  }
}
View Full Code Here

    Color result = Color.WHITE;
    if (row % 2 == 0) {
      result = specificBlue;
    }
    if (isSelected) {
      result = result.darker();
    }
    return result;
  }
}
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.