Examples of fillRect()


Examples of org.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.findMediaBox().getWidth(), page.findMediaBox().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.teavm.dom.canvas.CanvasRenderingContext2D.fillRect()

    private static void render() {
        CanvasRenderingContext2D context = (CanvasRenderingContext2D)canvas.getContext("2d");
        context.setFillStyle("white");
        context.setStrokeStyle("grey");
        context.fillRect(0, 0, 600, 600);
        context.save();
        context.translate(0, 600);
        context.scale(1, -1);
        context.scale(100, 100);
        context.setLineWidth(0.01);
View Full Code Here

Examples of org.timepedia.chronoscope.client.canvas.Layer.fillRect()

    if (gridProperties.visible && uy != bounds.height) {
      Layer gridlayer = plot.getOverlayLayer(); // TODO - should be background
      gridlayer.save();
      gridlayer.setFillColor(gridProperties.color);
      gridlayer.setTransparency((float) gridProperties.transparency);
      gridlayer.fillRect(0, uy, gridlayer.getBounds().width, gridProperties.lineThickness);
      gridlayer.restore();
    }
  }

  private String getDummyLabel() {
View Full Code Here

Examples of playn.core.Canvas.fillRect()

        CanvasImage cimg = graphics().createImage(size * 17, size);
        Canvas canvas = cimg.canvas();
        int lighter = baseColor;
        for (int ii = 0; ii <= 8; ++ii) {
            canvas.setFillColor(lighter);
            canvas.fillRect(size * (ii + 8), 0, size, size);
            lighter = Colors.brighter(lighter);
        }
        int darker = baseColor;
        for (int ii = 0; ii < 8; ++ii) {
            canvas.setFillColor(darker);
View Full Code Here

Examples of sun.java2d.SunGraphics2D.fillRect()

                sd.restoreSurface();
                // if succeeded, first fill the surface with bg color
                // note: use the non-synch method to avoid incorrect lock order
                Color bg = sd.getPeer().getBackgroundNoSync();
                SunGraphics2D sg2d = new SunGraphics2D(sd, bg, bg, null);
                sg2d.fillRect(0, 0, sd.getBounds().width, sd.getBounds().height);
                sg2d.dispose();
                // now clean the dirty status so that we don't flip it
                // next time before it gets repainted; it is safe
                // to do without the lock because we will issue a
                // repaint anyway so we will not lose any rendering
View Full Code Here

Examples of sun.java2d.loops.FillRect.FillRect()

            Blit combineop = Blit.getFromCache(srcData.getSurfaceType(),
                                               CompositeType.SrcOverNoEa,
                                               tmpData.getSurfaceType());
            Blit blitop = Blit.getFromCache(tmpData.getSurfaceType(),
                                            CompositeType.SrcNoEa, dstType);
            fillop.FillRect(sg2d, tmpData, 0, 0, width, height);
            combineop.Blit(srcData, tmpData, AlphaComposite.SrcOver, null,
                           srcx, srcy, 0, 0, width, height);
            blitop.Blit(tmpData, dstData, comp, clip,
                        0, 0, dstx, dsty, width, height);
        }
View Full Code Here

Examples of sun.print.ProxyGraphics2D.fillRect()

         * caller's Image will be drawn.
         */
        Graphics2D g = deepImage.createGraphics();
        ProxyGraphics2D proxy = new ProxyGraphics2D(g, wPrinterJob);
        proxy.setColor(Color.white);
        proxy.fillRect(0, 0, deepImage.getWidth(), deepImage.getHeight());
        proxy.clipRect(0, 0, deepImage.getWidth(), deepImage.getHeight());

        proxy.translate(-region.getX(), -region.getY());

        /* Calculate the resolution of the source image.
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.