Package java.awt

Examples of java.awt.Graphics2D.clearRect()


            ProjectPlugin.trace(getClass(), "", null); //$NON-NLS-1$
        }
        Graphics2D graphics = getImage().createGraphics();
        graphics.setBackground(new Color(0, 0, 0, 0));
//        graphics.setTransform(new AffineTransform());
        graphics.clearRect(paintArea.x, paintArea.y, paintArea.width, paintArea.height);
        graphics.dispose();
    }

    public void setStatus( int status ) {
        if (layerInternal != null && !(layerInternal instanceof SelectionLayer))
View Full Code Here


                    RGB background = PreferenceConverter.getColor(store, PreferenceConstants.P_BACKGROUND);
                    map.getBlackboard().put(ProjectBlackboardConstants.MAP__BACKGROUND_COLOR, new Color(background.red, background.green, background.blue ));
                    object = map.getBlackboard().get(ProjectBlackboardConstants.MAP__BACKGROUND_COLOR);
                }
                g.setBackground((Color) object);
                g.clearRect(0,0,copy.getWidth(), copy.getHeight());
               
                SortedSet<RenderExecutor> executors;
                synchronized (childrenRenderers) {
                    executors = new TreeSet<RenderExecutor>(comparator);
                    executors.addAll(getRenderExecutors());
View Full Code Here

                    RGB background = PreferenceConverter.getColor(store, PreferenceConstants.P_BACKGROUND);
                    map.getBlackboard().put(ProjectBlackboardConstants.MAP__BACKGROUND_COLOR, new Color(background.red, background.green, background.blue ));
                    object = map.getBlackboard().get(ProjectBlackboardConstants.MAP__BACKGROUND_COLOR);
                }
                g.setBackground((Color) object);
                g.clearRect(0,0,copy.getWidth(), copy.getHeight());
               
                SortedSet<RenderExecutor> executors;
                synchronized (renderExecutors) {
                    executors = new TreeSet<RenderExecutor>(comparator);
                    executors.addAll(getRenderExecutors());
View Full Code Here

            || image.getHeight() < height) {
          image = new BufferedImage(width, height,
              BufferedImage.TYPE_3BYTE_BGR);
          Graphics2D g = image.createGraphics();
          g.setBackground(Color.WHITE);
          g.clearRect(0, 0, width, height);
          g.dispose();
        }

        return image;
      }
View Full Code Here

      public synchronized void clearImage(Rectangle paintArea) {
        if (image == null)
          return;
        Graphics2D g = image.createGraphics();
        g.setBackground(Color.WHITE);
        g.clearRect(paintArea.x, paintArea.y, paintArea.width,
            paintArea.height);
        g.dispose();
        // // FIXME Arbonaut Oy , Vitali Diatchkov
        // System.out.println(
        // "synchronized CompositeRenderContext.clearImage()");
View Full Code Here

        Graphics2D testG = testImage.createGraphics();
        Graphics2D exampleG = exampleImage.createGraphics();

        exampleG.setBackground(Color.WHITE);
        exampleG.setColor(Color.BLUE);
        exampleG.clearRect(0, 0, width, height);

        testG.setBackground(Color.WHITE);
        testG.setColor(Color.BLUE);
        testG.clearRect(0, 0, width, height);
View Full Code Here

        Graphics2D testG = testImage.createGraphics();
        Graphics2D exampleG = exampleImage.createGraphics();

        exampleG.setBackground(Color.WHITE);
        exampleG.setColor(Color.BLUE);
        exampleG.clearRect(0, 0, width, height);

        testG.setBackground(Color.WHITE);
        testG.setColor(Color.BLUE);
        testG.clearRect(0, 0, width, height);
View Full Code Here

        Graphics2D testG = testImage.createGraphics();
        Graphics2D exampleG = exampleImage.createGraphics();

        exampleG.setBackground(Color.WHITE);
        exampleG.clearRect(0, 0, width, height);

        testG.setBackground(Color.WHITE);
        testG.clearRect(0, 0, width, height);

        EditBlackboard map = new EditBlackboard(SCREEN.x,
View Full Code Here

        path.lineTo(40, 50);
        path.lineTo(40, 70);
        path.closePath();

        testG.clearRect(0, 0, width, height);
        exampleG.clearRect(0, 0, width, height);
        testG.setColor(Color.BLUE);
        testG.fill(iter.toShape());
        testG.setColor(Color.RED);       
        testG.draw(iter.toShape());
        exampleG.setColor(Color.BLUE);
View Full Code Here

        Graphics2D testG = testImage.createGraphics();
        Graphics2D exampleG = exampleImage.createGraphics();

        exampleG.setBackground(Color.WHITE);
        exampleG.setColor(Color.BLUE);
        exampleG.clearRect(0, 0, width, height);

        testG.setBackground(Color.WHITE);
        testG.setColor(Color.BLUE);
        testG.clearRect(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.