Package pivot.wtk

Examples of pivot.wtk.Bounds


    public void update() {
        // No-op
    }

    public Bounds getBounds(Component component) {
        Bounds bounds = new Bounds(x, y, component.getWidth(), component.getHeight());

        if (clip) {
            bounds.intersect(component.getBounds());
        }

        return bounds;
    }
View Full Code Here


        int height = (int)Math.ceil(component.getHeight() * scaleY);

        int tx = getTranslatedX(component);
        int ty = getTranslatedY(component);

        return new Bounds(tx, ty, width, height);
    }
View Full Code Here

        watermarkGraphics.dispose();
    }

    public Bounds getBounds(Component component) {
        return new Bounds(0, 0, component.getWidth(), component.getHeight());
    }
View Full Code Here

*/
public class Drawing extends Image {
    private Group shapes = new Group();

    public int getWidth() {
        Bounds bounds = shapes.getBounds();
        return bounds.width + bounds.x;
    }
View Full Code Here

        Bounds bounds = shapes.getBounds();
        return bounds.width + bounds.x;
    }

    public int getHeight() {
        Bounds bounds = shapes.getBounds();
        return bounds.height + bounds.y;
    }
View Full Code Here

        this.graphics.drawImage(bufferedImage, 0, 0, null);
    }

    public Bounds getBounds(Component component) {
        return new Bounds(0, 0, component.getWidth(), component.getHeight());
    }
View Full Code Here

        componentGraphics.dispose();
        graphics.drawImage(componentImage, x, y, null);
    }

    public Bounds getBounds(Component component) {
        return new Bounds(0, 0, component.getWidth(), component.getHeight());
    }
View Full Code Here

        int height = (int)Math.ceil(component.getHeight() * scaleY);

        int tx = getTranslatedX(component);
        int ty = getTranslatedY(component);

        return new Bounds(tx, ty, width, height);
    }
View Full Code Here

        graphics.drawImage(componentImage, 0, 0, null);
    }

    public Bounds getBounds(Component component) {
        return new Bounds(0, 0, component.getWidth(), component.getHeight() * 2);
    }
View Full Code Here

    public void update() {
        // No-op
    }

    public Bounds getBounds(Component component) {
        return new Bounds(0, 0, component.getWidth(), component.getHeight());
    }
View Full Code Here

TOP

Related Classes of pivot.wtk.Bounds

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.