Examples of brighter()


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

     */
    public static Paint getGradientPaintForShape(Shape shape, Paint paint) {
        if (paint instanceof Color) {
            Color color = (Color) paint;
            Rectangle rect = shape.getBounds();
            paint = new GradientPaint((float) rect.getWidth() * .3f, (float) rect.getHeight() * .3f, color.brighter()
                    .brighter(), (float) rect.getWidth() * .7f, (float) rect.getHeight() * .7f, color.darker()
                    .darker());
        }
        return paint;
    }
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()

          Point pP = previousPoints[i-1][j];
          if (pP != null)
          {
            int pX = pP.x + (blobSize/2);
            int pY = pP.y + (blobSize/2);
            graphics.setColor(featureColor.brighter());
            graphics.drawLine(x + (blobSize/2), y + (blobSize/2), pX, pY);
          }
        }
        previousPoints[i][j] = new Point(x, y);
       
View Full Code Here

Examples of java.awt.Color.brighter()

    goPanel.add(displayVisualizerButton);
       
    mainGuiPanel.add(goPanel)

        JPanel statusBarPanel = new JPanel(new GridLayout(1,1));
        statusBarPanel.setBackground(c.brighter());
        statusBarPanel.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
        statusBar = new JLabel("...");
        statusBar.setBackground(c.brighter());
        statusBarPanel.add(statusBar);
View Full Code Here

Examples of java.awt.Color.brighter()

        JPanel statusBarPanel = new JPanel(new GridLayout(1,1));
        statusBarPanel.setBackground(c.brighter());
        statusBarPanel.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
        statusBar = new JLabel("...");
        statusBar.setBackground(c.brighter());
        statusBarPanel.add(statusBar);

        mainGuiPanel.add(statusBarPanel);

    jframe.validate();
View Full Code Here

Examples of java.awt.Color.brighter()

    protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {
        if (column == 2) {
            Color color = (Color) value;
            if (color == null) color = Color.WHITE;
            setBackground(color);
            setBorder(new CompoundBorder(new LineBorder(Color.WHITE), new ColoredSideBorder(color.brighter(), color.brighter(), color.darker(), color.darker(), 1)));
        } else {
            String stringValue = (String) value;
            if (StringUtil.isNotEmpty(stringValue)) {
                append(stringValue, SimpleTextAttributes.REGULAR_ATTRIBUTES);
            }
View Full Code Here

Examples of java.awt.Color.brighter()

    protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {
        if (column == 2) {
            Color color = (Color) value;
            if (color == null) color = Color.WHITE;
            setBackground(color);
            setBorder(new CompoundBorder(new LineBorder(Color.WHITE), new ColoredSideBorder(color.brighter(), color.brighter(), color.darker(), color.darker(), 1)));
        } else {
            String stringValue = (String) value;
            if (StringUtil.isNotEmpty(stringValue)) {
                append(stringValue, SimpleTextAttributes.REGULAR_ATTRIBUTES);
            }
View Full Code Here

Examples of java.awt.Color.brighter()

    Color background = (Color) get(component, "background");
    switch (mode) {
      case 'e': case 'l': case 'd': case 'g': case 'r': break;
      case 'b': case 'i': case 'x': if (background == null) { background = c_bg; } break;
      case 'h': background = (background != null) ? background.brighter() : c_hover; break;
      case 'p': background = (background != null) ? background.darker() : c_press; break;
      case 't': if (background == null) { background = c_textbg; } break;
      case 's': background = c_select; break;
      default: throw new IllegalArgumentException();
    }
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.