Package com.sun.dtv.lwuit.geom

Examples of com.sun.dtv.lwuit.geom.Rectangle


                wrapper.translate(-wrapper.getTranslateX(), -wrapper.getTranslateY());
                wrapper.setClip(0, 0, getWidth(), getHeight());
                if (ani instanceof Component) {
                    Component cmp = (Component) ani;
                    System.out.println(cmp.getUIID() + " <- imprimido");
                    Rectangle dirty = cmp.getDirtyRegion();
                    //Rectangle dirty = new Rectangle(0, 0, cmp.getPreferredSize()) ;
                    if (dirty != null) {
                        System.out.println(cmp.getUIID() + " <- sujo");
                        wrapper.setClip(dirty.getX(), dirty.getY(), dirty.getSize().getWidth(), dirty.getSize().getHeight());
                        cmp.setDirtyRegion(null);
                    }

                    cmp.paintComponent(wrapper);
                    int cmpAbsX = cmp.getAbsoluteX() + cmp.getScrollX();
View Full Code Here


        }
        if(frame == frames.length){
            frame = 0;
        }
        int [] modified = frames[frame].modifiedRowOffsets;
        Rectangle rect = new Rectangle(0, frames[frame].smallestChangedRow, new Dimension(getWidth(), frames[frame].highestChangedRow -frames[frame].smallestChangedRow));
        return rect;
    }
View Full Code Here

     * @param g the graphics object
     *
     * Presente no JAVADTV 1.1
     */
    public void paintBackgrounds(Graphics g) {
        Rectangle bounds = new Rectangle(getAbsoluteX(), getAbsoluteY(),
                getWidth(), getHeight());
        drawPainters(g, this.getParent(), this, bounds);
    }
View Full Code Here

    }

    private void paintIntersectingComponentsAbove(Graphics g) {
        Container parent = getParent();
        Component component = this;
        Rectangle bounds = new Rectangle(getAbsoluteX(), getAbsoluteY(),
                getWidth(), getHeight());
        int tx = g.getTranslateX();
        int ty = g.getTranslateY();

        g.translate(-tx, -ty);
View Full Code Here

                g.translate(par.getX() - transX, par.getY() - transY);
            }
        } else {
            Painter p = par.getStyle().getBgPainter();
            if (p != null) {
                p.paint(g, new Rectangle(0, 0, par.getWidth(), par.getHeight()));
            }
            g.translate(-transX, -transY);
        }
    }
View Full Code Here

                b.paintBorderBackground(g, this);
                return;
            }
        }
        if (getStyle().getBgPainter() != null) {
            getStyle().getBgPainter().paint(g, new Rectangle(getX(), getY(), getWidth(), getHeight()));
        }
    }
View Full Code Here

     * @param w
     * @param h
     */
    public void repaint(int x, int y, int w, int h) {
        if (dirtyRegion == null) {
            dirtyRegion = new Rectangle(x, y, w, h);
        } else {
            Dimension size = dirtyRegion.getSize();

            int x1 = Math.min(dirtyRegion.getX(), x);
            int y1 = Math.min(dirtyRegion.getY(), y);
View Full Code Here

                    return true;
                }
            }
        }
        if (animateBackground && bgImage instanceof StaticAnimation) {
            Rectangle dirty = ((StaticAnimation) bgImage).getDirtyRegion();
            if (dirty != null) {
                dirty.setX(getAbsoluteX());
                dirty.setY(getAbsoluteY() + dirty.getY());
            }
            setDirtyRegion(dirty);
        }
        return animateBackground;
    }
View Full Code Here

            int scrollPosition = getScrollY();
            int w = getWidth() - getStyle().getPadding(LEFT) - getStyle().getPadding(RIGHT);
            int h = getHeight() - getStyle().getPadding(TOP) - getStyle().getPadding(BOTTOM);

            Rectangle view = new Rectangle(getScrollX(), getScrollY(), w, h);

            int relativeX = rect.getX();
            int relativeY = rect.getY();

            // component needs to be in absolute coordinates...
            Container parent = null;
            if (coordinateSpace != null) {
                parent = coordinateSpace.getParent();
            }
            if (parent == this) {
                if (view.contains(rect)) {
                    return;
                }
            } else {
                while (parent != this) {
                    // mostly a special case for list
                    if (parent == null) {
                        relativeX = rect.getX();
                        relativeY = rect.getY();
                        break;
                    }
                    relativeX += parent.getX();
                    relativeY += parent.getY();
                    parent = parent.getParent();
                }
                if (view.contains(relativeX, relativeY, rect.getSize().getWidth(), rect.getSize().getHeight())) {
                    return;
                }
            }
            if (getScrollX() > relativeX) {
                setScrollX(relativeX);
View Full Code Here

                    width = parent.getWidth();
                    height = parent.getHeight();
                    int transY = g.getTranslateY();
                    g.translate(0, -transY);

                    painter.paint(g, new Rectangle(x, y, width, height));
                    g.translate(0, transY);
                } else {
                    painter.paint(g, new Rectangle(x, y, width, height));
                }
            } else {
                Style s = getStyle();
                int x = rect.getX();
                int y = rect.getY();
View Full Code Here

TOP

Related Classes of com.sun.dtv.lwuit.geom.Rectangle

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.