Examples of paint()


Examples of org.apache.pivot.wtk.media.Image.paint()

        public void paint(Graphics2D graphics) {
            ImageNode imageNode = (ImageNode)getNode();
            Image image = imageNode.getImage();

            if (image != null) {
                image.paint(graphics);
            }
        }

        @Override
        public NodeView getNext() {
View Full Code Here

Examples of org.apache.pivot.wtk.media.Movie.paint()

            if (scale != 1) {
                graphics.scale(scale, scale);
            }

            graphics.translate(movieX, movieY);
            movie.paint(graphics);
        }
    }

    /**
     * @return
 
View Full Code Here

Examples of org.apache.poi.hslf.blip.ImagePainter.paint()

        return getData().length;
    }

    public void draw(Graphics2D graphics, Picture parent){
        ImagePainter painter = painters[getType()];
        if(painter != null) painter.paint(graphics, this, parent);
        else logger.log(POILogger.WARN, "Rendering is not supported: " + getClass().getName());
    }

    /**
     * Register ImagePainter for the specified image type
View Full Code Here

Examples of org.apache.xmlgraphics.java2d.Graphics2DImagePainter.paint()

                            paintRect.x, paintRect.y,
                            paintRect.width, paintRect.height);
                   
                   
                    g2d.draw(targetRect);
                    painter.paint(g2d, targetRect);
                } finally {
                    g2d.dispose();
                }
            }
        };
View Full Code Here

Examples of org.eclipse.draw2d.Figure.paint()

      gc.setAntialias(SWT.OFF);
      gc.setTextAntialias(SWT.OFF);
    }
   
    Graphics graphics = new SWTGraphics(gc);
    rootFigure.paint(graphics);
    graphics.dispose();

    ImageLoader loader = new ImageLoader();
    loader.data = new ImageData[]{image.getImageData()};
View Full Code Here

Examples of org.eclipse.draw2d.IFigure.paint()

        try {
            image = new Image(Display.getDefault(), r.width, r.height);
            gc = new GC(image);
            g = new SWTGraphics(gc);
            g.translate(r.x * -1, r.y * -1);
            figure.paint(g);
            ImageLoader imageLoader = new ImageLoader();
            imageLoader.data = new ImageData[] { image.getImageData() };
            imageLoader.save(stream, format);
        } catch (Throwable t) {
            DroolsEclipsePlugin.log(t);
View Full Code Here

Examples of org.eclipse.draw2d.RectangleFigure.paint()

      fig4.setBackgroundColor(ColorConstants.white);
      img = new Image(Display.getCurrent(), fig1.getClientArea().width,
          fig1.getClientArea().height);
      imageGC = new GC(img);
      Graphics g = new SWTGraphics(imageGC);
      fig4.paint(g);
      fig3.paint(g);
      fig2.paint(g);
      fig1.paint(g);
      g.dispose();
      exportImageJob(img, imageGC, saveLocation,
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationPresentation.paint()

   */
  public void paint(Annotation annotation, GC gc, Canvas canvas, Rectangle bounds) {

    if (annotation instanceof IAnnotationPresentation) {
      IAnnotationPresentation presentation= (IAnnotationPresentation) annotation;
      presentation.paint(gc, canvas, bounds);
      return;
    }

    AnnotationPreference preference= getAnnotationPreference(annotation);
    if (preference != null) {
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.css2.border.CSSBorder.paint()

    }

    ICSSStyle style = this.getCSSStyle();
    if (style != null) {
      CSSBorder border1 = new CSSBorder(this.getCSSStyle());
      border1.paint(this, graphics, NO_INSETS);

      // draw a border for those special elements like <h:form>, etc.
      ITagEditInfo editInfo = (ITagEditInfo) style
          .getAdapter(ITagEditInfo.class);
      if (editInfo != null && editInfo.needBorderDecorator()) {
View Full Code Here

Examples of org.eclipse.ui.internal.forms.widgets.Paragraph.paint()

    IHyperlinkSegment selectedLink = getSelectedLink();
    if (getDisplay().getFocusControl() != this)
      selectedLink = null;
    for (int i = 0; i < paragraphs.length; i++) {
      Paragraph p = paragraphs[i];
      p
          .paint(textGC, repaintRegion, resourceTable, selectedLink,
              selData);
    }
    textGC.dispose();
    gc.drawImage(textBuffer, x, y);
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.