Package pivot.wtk

Examples of pivot.wtk.Bounds.intersect()


        public void paint(Graphics2D graphics) {
            // Determine the paint bounds
            Bounds paintBounds = new Bounds(0, 0, getWidth(), getHeight());
            Rectangle clipBounds = graphics.getClipBounds();
            if (clipBounds != null) {
                paintBounds.intersect(new Bounds(clipBounds));
            }

            for (NodeView nodeView : nodeViews) {
                Bounds nodeViewBounds = nodeView.getBounds(false);
View Full Code Here


    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

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

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

        return bounds;
    }
View Full Code Here

        public void paint(Graphics2D graphics) {
            // Determine the paint bounds
            Bounds paintBounds = new Bounds(0, 0, getWidth(), getHeight());
            Rectangle clipBounds = graphics.getClipBounds();
            if (clipBounds != null) {
                paintBounds = paintBounds.intersect(new Bounds(clipBounds));
            }

            for (NodeView nodeView : nodeViews) {
                Bounds nodeViewBounds = nodeView.getBounds(false);
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.