Package com.sun.dtv.lwuit.plaf

Examples of com.sun.dtv.lwuit.plaf.Border


        g.translate(transX, transY);

        ((Container) par).paintIntersecting(g, c, bounds, false);

        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


     * Nao Presente no JAVADTV 1.1 - Se alguem for estender essa classe pode encontrar problemas de compatibilidade.
     * OK - NAO DA PRA ESTENDER MAIS
     * @return the borde that is drawn according to the current component state
     */
    Border getBorder() {
        Border b = getStyle().getBorder();
        if (hasFocus()) {
            if (b != null) {
                return b.getFocusedInstance();
            }
            return b;
        } else {
            return b;
        }
View Full Code Here

     * OK - NAO DA PRA ESTENDER MAIS
     * @param g the component graphics
     */
    void paintBackground(Graphics g) {
        if (getStyle().getBorder() != null) {
            Border b = getBorder();
            if (b != null && b.isBackgroundPainter()) {
                b.paintBorderBackground(g, this);
                return;
            }
        }
        if (getStyle().getBgPainter() != null) {
            getStyle().getBgPainter().paint(g, new Rectangle(getX(), getY(), getWidth(), getHeight()));
View Full Code Here

     * Nao Presente no JAVADTV 1.1 - Se alguem for estender essa classe pode encontrar problemas de compatibilidade.
     * OK - NAO DA PRA ESTENDER MAIS
     * @param g graphics context on which the border is painted
     */
    void paintBorder(Graphics g) {
        Border b = getBorder();
        if (b != null) {
            if (isFocusPainted() && hasFocus()) {
                g.setColor(getStyle().getFgSelectionColor());
            } else {
                g.setColor(getStyle().getFgColor());
            }
            b.paint(g, this);
        }
    }
View Full Code Here

                        }
                        h.put(key, o);
                    }
                }
                if(key.endsWith("border")) {
                    Border b = confirmBorder(h, key);
                    b.setPressedInstance(confirmBorder(h, key + "Pressed"));
                    b.setFocusedInstance(confirmBorder(h, key + "Focused"));
                    h.remove(key + "Pressed");
                    h.remove(key + "Focused");
                    h.put(key, b);
                }
            }
View Full Code Here

                throw new IllegalArgumentException("Couldn't find resource: " + key);
            }

            // the resource was not already loaded when we loaded the theme
            // it must be loaded now so we can resolve the temporary name
            Border imageBorder = createImageBorder(value);
            return imageBorder;
        }
        return (Border)val;
    }
View Full Code Here

TOP

Related Classes of com.sun.dtv.lwuit.plaf.Border

Copyright © 2018 www.massapicom. 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.