Examples of Draw()


Examples of org.apache.felix.example.servicebased.host.service.SimpleShape.draw()

        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D) g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
            RenderingHints.VALUE_ANTIALIAS_ON);
        SimpleShape shape = m_frame.getShape(m_shapeName);
        shape.draw(g2, new Point(getWidth()/2, getHeight()/2));
    }
}
View Full Code Here

Examples of org.apache.isis.viewer.dnd.View.draw()

                canvas.drawLine(left, baseline, left + 10, baseline, markerDark);
                canvas.drawLine(right - 10, baseline, right, baseline, markerDark);
                canvas.drawLine(left + 10, baseline, right - 10, baseline, markerLight);
            }
            Canvas subcanvas = canvas.createSubcanvas(view.getBounds());
            view.draw(subcanvas);
        }

    }

    private boolean showOutline() {
View Full Code Here

Examples of org.apache.poi.hslf.model.Slide.draw()

        graphics.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
        graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
        graphics.setTransform(at);               
        graphics.setPaint(Color.white);
        graphics.fill(new Rectangle2D.Float(0, 0, pgsize.width, pgsize.height));
        slide.draw(graphics);            
       
        BufferedImage imgExpected = ImageIO.read(slTests.getFile("bug55902-mixedChars.png"));
        DataBufferByte expectedDB = (DataBufferByte)imgExpected.getRaster().getDataBuffer();
        DataBufferByte actualDB = (DataBufferByte)imgActual.getRaster().getDataBuffer();
        byte[] expectedData = expectedDB.getData(0);
View Full Code Here

Examples of org.apache.poi.hslf.usermodel.PictureData.draw()

    public void draw(Graphics2D graphics){
        AffineTransform at = graphics.getTransform();
        ShapePainter.paint(this, graphics);

        PictureData data = getPictureData();
        if(data != null) data.draw(graphics, this);

        graphics.setTransform(at);
    }
}
View Full Code Here

Examples of org.apache.poi.xslf.usermodel.XSLFSlide.draw()

        graphics.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
        graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
        graphics.setTransform(at);               
        graphics.setPaint(Color.white);
        graphics.fill(new Rectangle2D.Float(0, 0, pgsize.width, pgsize.height));
        slide.draw(graphics);            
       
        ImageIO.write(imgActual, "PNG", new File("bug54542.png"));
    }
   
    protected String getSlideText(XSLFSlide slide) {
View Full Code Here

Examples of org.dashbuilder.displayer.client.DisplayerView.draw()

    DisplayerView displayerView;

    @OnStartup
    public void init() {
        DisplayerView displayerView = new DisplayerView(displayerSettings);
        displayerView.draw();
    }

    @WorkbenchPartTitle
    public String getTitle() {
        return "Static Chart";
View Full Code Here

Examples of org.eclipse.ecf.tutorial.scribbleshare.toolbox.AbstractTool.draw()

    // DataInputStream dins = new DataInputStream(bins);
    try {
      ObjectInputStream ois = new ObjectInputStream(bins);
      AbstractTool tool = (AbstractTool) ois.readObject();
      // Apply the tool to the local canvas.
      tool.draw(canvas);
      tools.add(tool);
    } catch (IOException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    } catch (ClassNotFoundException e) {
View Full Code Here

Examples of org.eclipse.swt.graphics.TextLayout.draw()

 
      int x = textBounds.x;
      int y = textBounds.y
          + Math.max(0, (textBounds.height - layoutBounds.height) / 2);
 
      textLayout.draw(gc, x, y);
    }

    if (drawFocus(event)) {
      Rectangle focusBounds = cell.getViewerRow().getBounds();
      gc.drawFocus(focusBounds.x, focusBounds.y, focusBounds.width + deltaOfLastMeasure,
View Full Code Here

Examples of org.fonteditor.font.FEGlyph.draw()

    Claim.claim(i != null, "Severe component/image problems...");

    if (i != null)
    {
      feg.draw(i.getGraphics(), gdo);

      //gdo.getCoords().dump();

      //ImageWrapperTranslated image = FontImageProcessor.fontScale(tti, scale_factor_x, scale_factor_y);
      //cache[c] = new CachedGlyph(image.getImageWrapper(), image.getOffsetY());
View Full Code Here

Examples of org.foo.shape.SimpleShape.draw()

    SimpleShape shape = m_shapeRef.get();
   
    // If this is a proxy shape, use it to draw the shape.
    if (shape != null) {
        // Draw the shape.
        shape.draw(g2, p);
        // If everything was successful, then simply return.
        return;
    }

    // If the proxied shape could not be drawn for any reason or if
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.