Package org.apache.isis.viewer.dnd.drawing

Examples of org.apache.isis.viewer.dnd.drawing.Bounds.union()


    }

    public void testEnclosingUnion() {
        final Bounds c = new Bounds(10, 20, 5, 5);
        final Bounds u = new Bounds(b);
        u.union(c);
        assertEquals(b, u);
    }

    public void testExplicitBounds() {
        assertEquals(5, b.getX());
View Full Code Here


    }

    public void testNonOverlappingUnion() {
        final Bounds c = new Bounds(20, 40, 10, 20);
        final Bounds u = new Bounds(b);
        u.union(c);
        assertEquals(new Bounds(5, 10, 25, 50), u);
    }

    public void testOverlappingIntersects() {
        Bounds c = new Bounds(b);
View Full Code Here

    }

    public void testOverlappingUnion() {
        final Bounds c = new Bounds(3, 5, 10, 10);
        final Bounds u = new Bounds(b);
        u.union(c);
        assertEquals(new Bounds(3, 5, 12, 25), u);
    }

    public void testTranslate() {
        b.translate(10, 5);
View Full Code Here

    }

    public void testEnclosingUnion() {
        final Bounds c = new Bounds(10, 20, 5, 5);
        final Bounds u = new Bounds(b);
        u.union(c);
        assertEquals(b, u);
    }

    public void testExplicitBounds() {
        assertEquals(5, b.getX());
View Full Code Here

    }

    public void testNonOverlappingUnion() {
        final Bounds c = new Bounds(20, 40, 10, 20);
        final Bounds u = new Bounds(b);
        u.union(c);
        assertEquals(new Bounds(5, 10, 25, 50), u);
    }

    public void testOverlappingIntersects() {
        Bounds c = new Bounds(b);
View Full Code Here

    }

    public void testOverlappingUnion() {
        final Bounds c = new Bounds(3, 5, 10, 10);
        final Bounds u = new Bounds(b);
        u.union(c);
        assertEquals(new Bounds(3, 5, 12, 25), u);
    }

    public void testTranslate() {
        b.translate(10, 5);
View Full Code Here

    }

    public void testEnclosingUnion() {
        final Bounds c = new Bounds(10, 20, 5, 5);
        final Bounds u = new Bounds(b);
        u.union(c);
        assertEquals(b, u);
    }

    public void testExplicitBounds() {
        assertEquals(5, b.getX());
View Full Code Here

    }

    public void testNonOverlappingUnion() {
        final Bounds c = new Bounds(20, 40, 10, 20);
        final Bounds u = new Bounds(b);
        u.union(c);
        assertEquals(new Bounds(5, 10, 25, 50), u);
    }

    public void testOverlappingIntersects() {
        Bounds c = new Bounds(b);
View Full Code Here

    }

    public void testOverlappingUnion() {
        final Bounds c = new Bounds(3, 5, 10, 10);
        final Bounds u = new Bounds(b);
        u.union(c);
        assertEquals(new Bounds(3, 5, 12, 25), u);
    }

    public void testTranslate() {
        b.translate(10, 5);
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.