Examples of paint()


Examples of com.seaglasslookandfeel.painter.SeaGlassPainter.paint()

                gfx.translate(translatex, translatey);

                if (rotate) {
                    gfx.rotate(Math.toRadians(90));
                    gfx.translate(0, -w);
                    painter.paint(gfx, context.getComponent(), h, w);
                    gfx.translate(0, w);
                    gfx.rotate(Math.toRadians(-90));
                } else if (flip) {
                    gfx.scale(-1, 1);
                    gfx.translate(-w, 0);
View Full Code Here

Examples of com.sun.dtv.lwuit.Component.paint()

            Component cmp = renderer.getListCellRendererComponent(cb, value, model.getSelectedIndex(), cb.hasFocus());
            cmp.setX(cb.getX() + leftPadding);
            cmp.setY(cb.getY() + style.getPadding(Component.TOP));
            cmp.setWidth(cb.getWidth() - comboImageWidth - 2 * rightPadding - leftPadding);
            cmp.setHeight(cb.getHeight() - style.getPadding(Component.TOP) - style.getPadding(Component.BOTTOM));
            cmp.paint(g);
        }

        g.setColor(style.getBgColor());
        int y = cb.getY();
        int height = cb.getHeight();
View Full Code Here

Examples of com.sun.dtv.lwuit.animations.Animation.paint()

                } else {
                    bottomX = getWidth();
                    bottomY = getHeight();
                    topX = 0;
                    topY = 0;
                    ani.paint(wrapper);
                }
            }

            // disable flush graphics bug when media is playing to prevent the
            // double buffer
View Full Code Here

Examples of com.sun.dtv.lwuit.plaf.Border.paint()

        if (par.getStyle().getBorder() != null) {
            Border b = par.getBorder();
            if (b != null && b.isBackgroundPainter()) {
                g.translate(-par.getX(), -par.getY());
                b.paintBorderBackground(g, par);
                b.paint(g, par);
                g.translate(par.getX() - transX, par.getY() - transY);
            }
        } else {
            Painter p = par.getStyle().getBgPainter();
            if (p != null) {
View Full Code Here

Examples of com.sun.embeddedswing.EmbeddedPeer.paint()

                            (DrawingSurfaceBufferedImage.DirtyTrackingGraphics) drawingSurface.getGraphics();
                    gDst.setClip(x, y, width, height);
                    gDst.executeAtomic(new Runnable() {

                        public void run() {
                            embeddedPeer.paint(gDst);
                            gDst.addDirtyRectangle(x, y, width, height);
                        }
                    });
                }
            });
View Full Code Here

Examples of com.sun.java.swing.Painter.paint()

                gfx.translate(x, y);
                gfx.translate(translatex, translatey);
                if (rotate) {
                    gfx.rotate(Math.toRadians(90));
                    gfx.translate(0, -w);
                    painter.paint(gfx, context.getComponent(), h, w);
                    gfx.translate(0, w);
                    gfx.rotate(Math.toRadians(-90));
                } else if (flip){
                    gfx.scale(-1, 1);
                    gfx.translate(-w,0);
View Full Code Here

Examples of com.threerings.media.image.Mirage.paint()

            int xpos = (_orient == VERTICAL) ? 0 : (size.width - _pwid);
            int ypos = (_orient == VERTICAL) ? (size.height - _phei) : 0;

            for (int _piece : _pieces) {
                Mirage image = _view.getPieceImage(_piece);
                image.paint(gfx, xpos, ypos);
                if (_orient == VERTICAL) {
                    ypos -= _phei;
                } else {
                    xpos -= _pwid;
                }
View Full Code Here

Examples of com.vaadin.terminal.ErrorMessage.paint()

                target.addAttribute("description", description);
            }

            final ErrorMessage componentError = tab.getComponentError();
            if (componentError != null) {
                componentError.paint(target);
            }

            final String styleName = tab.getStyleName();
            if (styleName != null && styleName.length() != 0) {
                target.addAttribute(VTabsheet.TAB_STYLE_NAME, styleName);
View Full Code Here

Examples of com.vaadin.terminal.Paintable.paint()

                        paintTarget.startTag("change");
                        paintTarget.addAttribute("format", "uidl");
                        final String pid = getPaintableId(p);
                        paintTarget.addAttribute("pid", pid);

                        p.paint(paintTarget);

                        paintTarget.endTag("change");
                    }
                    paintablePainted(p);
View Full Code Here

Examples of com.xeiam.xchart.Chart.paint()

    // Write the chart as a PNG image
    BufferedImage lBufferedImage = new BufferedImage(chart.getWidth(), chart.getHeight(),
        BufferedImage.TYPE_INT_ARGB);
    Graphics2D lGraphics2D = lBufferedImage.createGraphics();
    chart.paint(lGraphics2D);
    return lBufferedImage;
  }
 
  double convertData(org.openhab.core.types.State state) {
    if (state instanceof DecimalType) {
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.