Examples of paint()


Examples of org.geotools.renderer.GTRenderer.paint()

            if( paintArea == null || paintArea.isEmpty() || validBounds == null || validBounds.isEmpty() || validBounds.isNull() || validBounds.getWidth() <=0 || validBounds.getHeight()<=0 ){
                System.out.println("nothing to draw");
                // nothing to draw yet
            }
            else {
                geotToolsRenderer.paint(graphics, paintArea, validBounds);
            }

        } catch (Throwable renderingProblem) {
            if (renderingProblem instanceof InterruptedException){
                // ignore the rendering process being interrupted this is expected
View Full Code Here

Examples of org.geotools.renderer.lite.StreamingRenderer.paint()

      Map<Object, Object> rendererParams = new HashMap<Object, Object>();
      rendererParams.put(StreamingRenderer.OPTIMIZED_DATA_LOADING_KEY, true);
      // we use OGC scale for predictable conversion between pix/m scale and relative scale
      rendererParams.put(StreamingRenderer.SCALE_COMPUTATION_METHOD_KEY, StreamingRenderer.SCALE_OGC);
      renderer.setRendererHints(rendererParams);
      renderer.paint(graphics, mapContext.getViewport().getScreenArea(), mapContext.getViewport().getBounds());
      mapContext.dispose();
    }

    public MapContext getMapContext() {
      return mapContext;
View Full Code Here

Examples of org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.paint()

                AffineTransform worldToScreen = RendererUtilities.worldToScreenTransform(envelope, screenSize, destinationCRS);
                final GridCoverageRenderer paint = new GridCoverageRenderer(destinationCRS, envelope, screenSize, worldToScreen,
                        hints);
                RasterSymbolizer rasterSymbolizer = CommonFactoryFinder.getStyleFactory(null).createRasterSymbolizer();

                paint.paint(g2d, coverage, rasterSymbolizer);

                tempCache.flush();

                // IBlackboard blackboard = context.getMap().getBlackboard();
                // String legendString = coverageReader.getLegendString();
View Full Code Here

Examples of org.goobi.production.chart.ProjectStatusDraw.paint()

    BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2d = image.createGraphics();
    g2d.setRenderingHint(java.awt.RenderingHints.KEY_ANTIALIASING, java.awt.RenderingHints.VALUE_ANTIALIAS_ON);

    ProjectStatusDraw projectStatusDraw = new ProjectStatusDraw(pData, g2d, width, height);
    projectStatusDraw.paint();

    // write image to temporary file
    String localImagePath = ConfigMain.getTempImagesPathAsCompleteDirectory();
    File outputfile = new File(localImagePath + inName);
    ImageIO.write(image, "png", outputfile);
View Full Code Here

Examples of org.icepdf.core.pobjects.Page.paint()

                    (int) (0 - y),
                    (int) pageBoundary.width,
                    (int) pageBoundary.height);
        }
       
        page.paint(g, GraphicsRenderingHints.SCREEN,
            Page.BOUNDARY_CROPBOX, 0f, scale);
       
       
       
        g.dispose();
View Full Code Here

Examples of org.jdesktop.swingx.painter.Painter.paint()

     */
    protected void paintBackground(Graphics2D g2) {
        if (isBackgroundPainted()) {
            Painter p = getBackgroundPainter();
            if (p != null) {
                p.paint(g2, this, getWidth(), getHeight());
            } else {
                g2.setColor(getBackground());
                g2.fill(g2.getClipBounds());
            }
        }
View Full Code Here

Examples of org.jgraph.JGraph.paint()

            if(dimension.width < MAX_WIDTH && dimension.height < MAX_HEIGHT)
            {
              image = new BufferedImage(dimension.width, dimension.height, BufferedImage.TYPE_INT_RGB);
              Graphics2D graphics = image.createGraphics();
                graphics.translate(-rectangle.getX(), -rectangle.getY());
                graph.paint(graphics);

                graph.setGridVisible(ConfigurationManager.getConfiguration().isShowGrid());  
            }
            else
            {
View Full Code Here

Examples of org.jitterbit.ui.graphics.BezierCurve.paint()

            if (STRAIGHT_LINES || (leftY == rightY)) {
                g.drawLine(0, leftY, getWidth(), rightY);
            } else {
                BezierCurve curve = new BezierCurve(new int[] { 0, getWidth() / 2, getWidth() / 2,  getWidth() },
                                new int[] { leftY, leftY, rightY, rightY });
                curve.paint(g);
            }
        }
    }

View Full Code Here

Examples of org.jpedal.external.JPedalCustomDrawObject.paint()

              JPedalCustomDrawObject customObj=(JPedalCustomDrawObject)currentObject;
              if(isPrinting)
                customObj.print(g2, this.pageNumber);
              else
                customObj.paint(g2);

              g2.setTransform(af2);
              g2.setClip(s2);

              break;
View Full Code Here

Examples of org.jwildfire.swing.ImagePanel.paint()

            try {
              pnl.invalidate();
              Graphics g = pnl.getGraphics();
              if (g != null) {
                pnl.paint(g);
              }
            }
            catch (Throwable ex) {
              ex.printStackTrace();
            }
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.