Package com.google.code.appengine.awt

Examples of com.google.code.appengine.awt.Graphics2D.fill()


            BufferedImage.TYPE_INT_ARGB);

        // fill background
        Graphics2D graphics = image.createGraphics();
        graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR, 0.0f));
        graphics.fill(graphics.getDeviceConfiguration().getBounds());
        graphics.setComposite(AlphaComposite.SrcOver);

        // draw paint
        graphics.setPaint(paint);
        graphics.translate(- bounds.getMinX(), - bounds.getMinY());
View Full Code Here


        graphics.setComposite(AlphaComposite.SrcOver);

        // draw paint
        graphics.setPaint(paint);
        graphics.translate(- bounds.getMinX(), - bounds.getMinY());
        graphics.fill(shape);
        graphics.dispose();

        // draw image
        Shape clip = getClip();
        clip(shape);
View Full Code Here

    //---fill the background of the Legend with the specified Paint
    if( this.legendProperties.getBackgroundPaint() != null )
    {
      g2d.setPaint( this.legendProperties.getBackgroundPaint() );
      g2d.fill( rectangle );
    }

    //---draw Legend border
    if( this.legendProperties.getBorderStroke() != null )
    {
View Full Code Here

          if( this.fillPointsFlags.size() > 0 )
          {
            if( ((Boolean) this.fillPointsFlags.get( labelIndex )).booleanValue() )
            {
              g2d.fill( (Shape) this.shapes.get( labelIndex ) );

              //---if we are filling the points, see if we should outline the Shape
              //---applicable only to POINt charts
              if( this.pointOutlinePaints.get( labelIndex ) != null )
              {
View Full Code Here

              line.x1 = XOffset;
              g2d.draw( line );


              g2d.fill( (Shape) this.shapes.get( labelIndex ) );

              //---border around icon
              if( this.legendProperties.getIconBorderStroke() != null && this.pointOutlinePaints.size() != 0 )
              {
                if( this.pointOutlinePaints != null ) {
View Full Code Here

          g2d.setTransform( affineTransform );
        }
        // for other charts, just draw a rectangle
        else
        {
          g2d.fill( rectangle );

          //---border around icon
          if( this.legendProperties.getIconBorderStroke() != null )
          {
            g2d.setStroke( this.legendProperties.getIconBorderStroke() );
View Full Code Here

                g.transform(transform);
                AffineTransform inv = transform.createInverse();
                Shape fillRect = new Rectangle2D.Double(0,0,img.getWidth(),img.getHeight());
                fillRect = inv.createTransformedShape(fillRect);
                g.setPaint(paint);
                g.fill(fillRect);
                if (invert) {
                    AffineTransform tx = new AffineTransform();
                    tx.scale(1,-1);
                    tx.translate(-xoffset,-yoffset);
                    g.drawImage(img,tx,null);
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.