Examples of brighter()


Examples of java.awt.Color.brighter()

        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

Examples of java.awt.Color.brighter()

        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

Examples of java.awt.Color.brighter()

  public void draw3DRect(int x, int y, int width, int height, boolean raised) {
    Color originalColor = getColor();
    Stroke originalStroke = getStroke();
    setStroke(new BasicStroke(1.0f));
    if (raised) {
      setColor(originalColor.brighter());
    } else {
      setColor(originalColor.darker());
    }
    drawLine(x, y, x + width, y);
    drawLine(x, y, x, y + height);
View Full Code Here

Examples of java.awt.Color.brighter()

    drawLine(x, y, x + width, y);
    drawLine(x, y, x, y + height);
    if (raised) {
      setColor(originalColor.darker());
    } else {
      setColor(originalColor.brighter());
    }
    drawLine(x + width, y + height, x, y + height);
    drawLine(x + width, y + height, x + width, y);
    setColor(originalColor);
    setStroke(originalStroke);
View Full Code Here

Examples of java.awt.Color.brighter()

   * come from the top left.
   */
  public void fill3DRect(int x, int y, int width, int height, boolean raised) {
    Color originalColor = getColor();
    if (raised) {
      setColor(originalColor.brighter());
    } else {
      setColor(originalColor.darker());
    }
    draw(new Rectangle(x, y, width, height), "fill");
    setColor(originalColor);
View Full Code Here

Examples of java.awt.Color.brighter()

                                              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

Examples of java.awt.Color.brighter()

            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

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()

     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

Examples of java.awt.Color.brighter()

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