Examples of fillRoundRect()


Examples of java.awt.Graphics2D.fillRoundRect()

                GradientPaint gradient = addGradient(this, g2, g2.getBackground(), g2.getColor(), "0");
                final float glow = isIndeterminate() ? JProgressMemory.glow : 1f;
                g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, glow));
                Paint paint = g2.getPaint();
                g2.setPaint(gradient);
                g2.fillRoundRect(bounds.x, bounds.y, bounds.width, bounds.height, arc, arc);
                g2.setPaint(paint);
                draw(g2, this, colors[0], overallBar);
                g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, Math.max(0f, glow - 0.3f)));
                draw(g2, memory_init, colors[1], initBar);
                draw(g2, memory_committed, colors[2], committedBar);
View Full Code Here

Examples of java.awt.Graphics2D.fillRoundRect()

    g2.fillRect(0, 0, width, height);

    g2.setComposite(AlphaComposite.Src);
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    g2.setColor(Color.WHITE);
    g2.fillRoundRect(0, 0, width, height + 10, 10, 10);

    g2.setComposite(AlphaComposite.SrcAtop);
    g2.drawImage(logo, 0, 0, null);

    Font f = new Font("Helvetica", Font.BOLD, 16);
View Full Code Here

Examples of java.awt.Graphics2D.fillRoundRect()

                    offs1,Position.Bias.Backward,
                    bounds);
        Rectangle r = (shape instanceof Rectangle) ?
                (Rectangle)shape : shape.getBounds();
        if (roundedEdges) {
          g2d.fillRoundRect(r.x,r.y, r.width,r.height, ARCWIDTH,
                          ARCHEIGHT);
        }
        else {
          g2d.fillRect(r.x, r.y, r.width, r.height);
        }
View Full Code Here

Examples of java.awt.Graphics2D.fillRoundRect()

        }

        if (!fill.equals("transparent")) {
            graphics.setColor(ColorMapper.getColorByName(fill));
            if ((arcwidth != 0) || (archeight != 0)) {
                graphics.fillRoundRect(stroke_width, stroke_width,
                    width - (stroke_width * 2), height - (stroke_width * 2),
                    arcwidth, archeight);
            } else {
                graphics.fillRect(stroke_width, stroke_width,
                    width - (stroke_width * 2), height - (stroke_width * 2));
 
View Full Code Here

Examples of java.awt.Graphics2D.fillRoundRect()

          .getRealColor();
      g2.setColor(color);
      g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,
          0.5f));

      g2.fillRoundRect((int) width, (int) width,
          (int) (squareSize - width * 2),
          (int) (squareSize - width * 2), (int) width, (int) width);

      g2.setColor(Color.BLACK);
      g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,
View Full Code Here

Examples of java.awt.Graphics2D.fillRoundRect()

    }

    g.setColor(col_NodeSelected);
    for (TextureGraphNode n : graph.selectedNodes) {
      //Rectangle r = new n.getBounds();
      g.fillRoundRect(desktopX + n.getX() - 3, desktopY + n.getY() - 3, n.getWidth() + 6, n.getHeight() + 6, 20, 20);
    }
   
    g.setColor(Color.blue);
    for (TextureGraphNode n : graph.allNodes) {
      //Rectangle r = new n.getBounds();
View Full Code Here

Examples of java.awt.Graphics2D.fillRoundRect()

        // draw shadow shape
        Graphics2D g2 = (Graphics2D)img1.getGraphics();
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                RenderingHints.VALUE_ANTIALIAS_ON);
        g2.setColor(c.getBackground());
        g2.fillRoundRect(2,0,26,26,RADIUS,RADIUS);
        g2.dispose();
        // draw shadow
        InnerShadowEffect effect = new InnerShadowEffect();
        effect.setDistance(1);
        effect.setSize(3);
View Full Code Here

Examples of java.awt.Graphics2D.fillRoundRect()

        }

        if (!fill.equals("transparent")) {
            graphics.setColor(ColorMapper.getColorByName(fill));
            if ((arcwidth != 0) || (archeight != 0)) {
                graphics.fillRoundRect(stroke_width, stroke_width,
                    width - (stroke_width * 2), height - (stroke_width * 2),
                    arcwidth, archeight);
            } else {
                graphics.fillRect(stroke_width, stroke_width,
                    width - (stroke_width * 2), height - (stroke_width * 2));
 
View Full Code Here

Examples of javax.microedition.lcdui.Graphics.fillRoundRect()

    public void drawAtualColor(int rgb) {

        Graphics g = iTable.getGraphics();
        g.setColor(rgb);
        g.fillRoundRect(CX, CY, 20, 20, 5, 5);
        g.setColor(0);
    }
}
View Full Code Here

Examples of net.rim.device.api.ui.Graphics.fillRoundRect()

            final Graphics g = Graphics.create(bitmap);
            g.setBackgroundColor(Color.BLACK);
            g.clear();
            g.setColor(Color.ALICEBLUE);
            g.fillRoundRect(10, 10, displayWidth - ROUND_RECT_WIDTH_PAD,
                    displayHeight - ROUND_RECT_HEIGHT_PAD, ARC_WIDTH,
                    ARC_HEIGHT);
            g.setColor(Color.DARKGRAY);
            g.drawText(Integer.toString(i), displayWidth / 2, displayHeight / 2);
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.