Examples of fillRoundRect()


Examples of com.sun.dtv.lwuit.Graphics.fillRoundRect()

                if(s.getBgImage() != null) {
                    // we need to draw a background image!
                    Image i = Image.createImage(width, height);
                    Graphics imageG = i.getGraphics();
                    imageG.setColor(0);
                    imageG.fillRoundRect(0, 0, width, height, arcWidth, arcHeight);
                    int[] rgb = i.getRGB();
                    int transColor = rgb[0];
                    int[] imageRGB = s.getBgImage().scaled(width, height).getRGB();
                    for(int iter = 0 ; iter < rgb.length ; iter++) {
                        if(rgb[iter] == transColor) {
View Full Code Here

Examples of com.sun.dtv.lwuit.Graphics.fillRoundRect()

                            Image i = Image.createImage(width, height);
                            int[] imageRgb;
                            if(g.getColor() != 0xffffff) {
                                Graphics imageG = i.getGraphics();
                                imageG.setColor(g.getColor());
                                imageG.fillRoundRect(0, 0 , width, height, arcWidth, arcHeight);
                                imageRgb = i.getRGB();
                            } else {
                                // background color is white we need to remove a different color
                                // black is the only other "reliable" color on the device
                                Graphics imageG = i.getGraphics();
View Full Code Here

Examples of com.sun.dtv.lwuit.Graphics.fillRoundRect()

                                // black is the only other "reliable" color on the device
                                Graphics imageG = i.getGraphics();
                                imageG.setColor(0);
                                imageG.fillRect(0, 0, width, height);
                                imageG.setColor(g.getColor());
                                imageG.fillRoundRect(0, 0 , width, height, arcWidth, arcHeight);
                                imageRgb = i.getRGB();
                            }
                            int removeColor = imageRgb[0];
                            int size = width * height;
                            int alphaInt = ((s.getBgTransparency() & 0xff) << 24) & 0xff000000;
View Full Code Here

Examples of java.awt.Graphics.fillRoundRect()

    Graphics g = painter.getGraphics();
    Bounds bds = painter.getBounds();
    painter.drawClock(CK, Direction.EAST);
    if (painter.shouldDrawColor()) {
      g.setColor(painter.getAttributeValue(Io.ATTR_BACKGROUND));
      g.fillRoundRect(bds.getX(), bds.getY(), bds.getWidth(), bds.getHeight(),
          10, 10);
    }
    GraphicsUtil.switchToWidth(g, 2);
    g.setColor(Color.BLACK);
    g.drawRoundRect(bds.getX(), bds.getY(), bds.getWidth(), bds.getHeight(),
View Full Code Here

Examples of java.awt.Graphics.fillRoundRect()

        BufferedImage shadow = new BufferedImage(width + extra, height + extra,
                BufferedImage.TYPE_INT_ARGB);
        Graphics g = shadow.getGraphics();
        g.setColor(new Color(0.0f, 0.0f, 0.0f, 0.3f));
        g.fillRoundRect(6, 6, width, height, 12, 12);

        g2.drawImage(shadow, getBlurOp(7), 0, 0);
        g2.drawImage(image, 0, 0, this);
    }
View Full Code Here

Examples of java.awt.Graphics.fillRoundRect()

      int h = image.getHeight(null);
      int rw = w / 2;
      int rh = h / 2;
      Color c = new Color(color.getRed(), color.getGreen(), color.getBlue(), 200);
      g.setColor(c);
      g.fillRoundRect(0, h - rh, rw, rh, rw, rh);
    }

    return image;
  }
View Full Code Here

Examples of java.awt.Graphics.fillRoundRect()

        BufferedImage shadow =
            new BufferedImage(getWidth() + SHADOW_WIDTH, getHeight() + SHADOW_WIDTH, BufferedImage.TYPE_INT_ARGB);
        Graphics graphics = shadow.getGraphics();
        graphics.setColor(new Color(0.0f, 0.0f, 0.0f, 0.3f));
        graphics.fillRoundRect(6, 6, getWidth(), getHeight(), 12, 12);

        g2.drawImage(shadow, getBlurOp(7), 0, 0);
    }
   
View Full Code Here

Examples of java.awt.Graphics.fillRoundRect()

        Graphics g = painter.getGraphics();
        Bounds bds = painter.getBounds();
        painter.drawClock(CK, Direction.EAST);
        if (painter.shouldDrawColor()) {
            g.setColor(painter.getAttributeValue(Io.ATTR_BACKGROUND));
            g.fillRoundRect(bds.getX(), bds.getY(), bds.getWidth(), bds.getHeight(),
                    10, 10);
        }
        GraphicsUtil.switchToWidth(g, 2);
        g.setColor(Color.BLACK);
        g.drawRoundRect(bds.getX(), bds.getY(), bds.getWidth(), bds.getHeight(),
View Full Code Here

Examples of java.awt.Graphics2D.fillRoundRect()

            // You could draw on top of the image here...
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);
            g2.setColor(Color.red);
            g2.setComposite(AlphaComposite.SrcOver.derive(0.3f));
            g2.fillRoundRect(100, 100, 100, 80, 32, 32);
            g2.setComposite(AlphaComposite.SrcOver);
            g2.setColor(Color.white);
            g2.setFont(font);
            g2.drawString("vlcj direct media player", 130, 150);
        }
View Full Code Here

Examples of java.awt.Graphics2D.fillRoundRect()

 
  private void paintButton(Graphics g, Dimension size, Color startColor, Color endColor) {
    Graphics2D g2d = createGraphics(g);
    try {
      g2d.setPaint(new GradientPaint(0, 0, startColor, 0, size.height, endColor));
      g2d.fillRoundRect(0, 0, size.width-1, size.height-1, 9, 9);
    } finally {
      g2d.dispose();
    }
  }
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.