Examples of fillRect()


Examples of main.ch.morrolan.gibb.snake.Painter.fillRect()

        Painter painter;

        g = gMock();
        painter = painter1(g);

        painter.fillRect(0, 0, 1, 1);
        verify(g).fillRect(0, 0, 10, 10);

        painter.fillRect(3, 5, 2, 3);
        verify(g).fillRect(30, 50, 20, 30);
View Full Code Here

Examples of marvin.image.MarvinImage.fillRect()

    for(int x=0; x<cornernessMap.length; x++){
      for(int y=0; y<cornernessMap[0].length; y++){
        // Is it a corner?
        if(cornernessMap[x][y] > 0){
          rsize = Math.min(Math.min(Math.min(x, rectSize), Math.min(cornernessMap.length-x, rectSize)), Math.min(Math.min(y, rectSize), Math.min(cornernessMap[0].length-y, rectSize)));
          ret.fillRect(x, y, rsize, rsize, Color.red);
        }       
      }
    }
   
    return ret;
View Full Code Here

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

                if( bgColor != -1 ) {
                  g.setColor( bgColor );
                } else {
                  g.setColor( Color.WHITE );
                }
                g.fillRect( 0, 0, scaledBgImage.getScaledWidth(), scaledBgImage.getScaledHeight() );
                g.drawImage( 0, 0, scaledBgImage.getScaledWidth(), scaledBgImage.getScaledHeight(),
                    scaledBgImage, 0, 0, 0 );

                Background bg = BackgroundFactory.createBitmapBackground( bgImg,
                        Background.POSITION_X_CENTER, Background.POSITION_Y_CENTER, Background.REPEAT_SCALE_TO_FIT );
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.edit.PDPageContentStream.fillRect()

            doc.addPage( page );

            PDPageContentStream contentStream = new PDPageContentStream(doc, page);
            //first fill the entire background with cyan
            contentStream.setNonStrokingColor( Color.CYAN );
            contentStream.fillRect( 0,0, page.getMediaBox().getWidth(), page.getMediaBox().getHeight() );

            //then draw a red box in the lower left hand corner
            contentStream.setNonStrokingColor( Color.RED );
            contentStream.fillRect( 10, 10, 100, 100 );
View Full Code Here

Examples of org.apache.xmlgraphics.java2d.ps.EPSDocumentGraphics2D.fillRect()

            //We're creating a few boxes all filled with some variant of the
            //"Postgelb" (postal yellow) color as used by Swiss Post.

            Color colRGB = new Color(255, 204, 0);
            g2d.setColor(colRGB);
            g2d.fillRect(10, 30, 40, 40);

            //Just convert RGB to CMYK and use that
            float[] compsRGB = colRGB.getColorComponents(null);
            DeviceCMYKColorSpace cmykCS = ColorSpaces.getDeviceCMYKColorSpace();
            float[] compsCMYK = cmykCS.fromRGB(compsRGB);
View Full Code Here

Examples of org.freehep.graphics2d.VectorGraphics.fillRect()

    }
    VectorGraphics g = VectorGraphics.create(vg);
    super.paint(g);
    // Pulizia piano lavoro
    g.setColor(Color.WHITE);
    g.fillRect(0, 0, 640, 670);
    // Sfondo bianco del grafico
    g.fillRect(UpperLeftGraph.x, UpperLeftGraph.y, WIDTH + 1, HEIGHT + 1);
    // Sfondo grigio per label informativa
    g.setColor(Color.LIGHT_GRAY);
    g.fillRect(0, 0, UpperRightGraph.x + RIGHT_SPACE, UpperLeftGraph.y - 10);
View Full Code Here

Examples of org.joshy.gfx.stage.swing.SwingGFX.fillRect()

            //fill in the background
            SwingGFX gfx = new SwingGFX(g);
            org.joshy.gfx.draw.Paint fill = page.getDocument().getBackgroundFill();
            if(fill != null) {
                gfx.setPaint(fill);
                gfx.fillRect(0,0,(int)page.getDocument().getWidth(), (int) page.getDocument().getHeight());
            }

            //draw everything on the page
            ExportProcessor.processFragment(new SavePNGAction.PNGExporter(), g, page.getNodes());
        }
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.ViewportGraphics.fillRect()

                graphics.setColor(legendStyle.foregroundColor);
                graphics.setBackground(legendStyle.backgroundColor);
                graphics.drawRoundRect(round(x), round(y), round(w), round(h), 15, 15);
            } else {
                graphics.setColor(legendStyle.backgroundColor);
                graphics.fillRect(round(x), round(y), round(w), round(h));
                graphics.setColor(legendStyle.foregroundColor);
                graphics.setBackground(legendStyle.backgroundColor);
                graphics.drawRect(round(x), round(y), round(w), round(h));
            }
View Full Code Here

Examples of org.newdawn.slick.Graphics.fillRect()

        scene1.setImg(img1);
      }
      Graphics g1 = img1.getGraphics();
      Graphics.setCurrent(g1);
      g1.setColor(Color.black);
      g1.fillRect(0, 0, w, h);
      state1.render(container, game, g1);
      g1.flush();
    }
    if (state2 != null) {
      if (img2 == null) {
View Full Code Here

Examples of org.nlogo.api.Graphics2DWrapper.fillRect()

    sg.antiAliasing(true);

    if (dim) {
      sg.setComposite(java.awt.AlphaComposite.Src);
      sg.setColor(DIMMED);
      sg.fillRect(0, 0, width, height);
    } else {
      sg.setComposite(java.awt.AlphaComposite.Clear);
      sg.setColor(DIMMED);
      sg.fillRect(0, 0, width, height);
    }
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.