Examples of computeBounds()


Examples of com.eclipsesource.tabris.passepartout.internal.instruction.MarginInstruction.computeBounds()

    MarginInstruction instruction = new MarginInstruction( mock( Unit.class ),
                                                                     mock( Unit.class ),
                                                                     mock( Unit.class ),
                                                                     mock( Unit.class ) );

    Bounds bounds = instruction.computeBounds( new Bounds( 0, 0, 100, 100 ), 16 );

    assertEquals( 0, bounds.getX() );
    assertEquals( 0, bounds.getY() );
    assertEquals( 100, bounds.getWidth() );
    assertEquals( 100, bounds.getHeight() );
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.instruction.MarginInstruction.computeBounds()

    MarginInstruction instruction = new MarginInstruction( new Pixel( 5 ),
                                                                     new Pixel( 5 ),
                                                                     new Pixel( 5 ),
                                                                     new Pixel( 5 ) );

    Bounds bounds = instruction.computeBounds( new Bounds( 0, 0, 100, 100 ), 16 );

    assertEquals( 5, bounds.getX() );
    assertEquals( 5, bounds.getY() );
    assertEquals( 90, bounds.getWidth() );
    assertEquals( 90, bounds.getHeight() );
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.instruction.MarginInstruction.computeBounds()

    MarginInstruction instruction = new MarginInstruction( new Em( BigDecimal.ONE ),
                                                                     new Em( BigDecimal.ONE ),
                                                                     new Em( BigDecimal.ONE ),
                                                                     new Em( BigDecimal.ONE ) );

    Bounds bounds = instruction.computeBounds( new Bounds( 0, 0, 100, 100 ), 10 );

    assertEquals( 10, bounds.getX() );
    assertEquals( 10, bounds.getY() );
    assertEquals( 80, bounds.getWidth() );
    assertEquals( 80, bounds.getHeight() );
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.instruction.MarginInstruction.computeBounds()

    MarginInstruction instruction = new MarginInstruction( new Percentage( BigDecimal.valueOf( 10 ) ),
                                                                     new Percentage( BigDecimal.valueOf( 10 ) ),
                                                                     new Percentage( BigDecimal.valueOf( 10 ) ),
                                                                     new Percentage( BigDecimal.valueOf( 10 ) ) );

    Bounds bounds = instruction.computeBounds( new Bounds( 0, 0, 100, 100 ), 16 );

    assertEquals( 10, bounds.getX() );
    assertEquals( 10, bounds.getY() );
    assertEquals( 80, bounds.getWidth() );
    assertEquals( 80, bounds.getHeight() );
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.instruction.MarginInstruction.computeBounds()

    MarginInstruction instruction = new MarginInstruction( new Percentage( BigDecimal.valueOf( 10 ) ),
                                                                     new Em( BigDecimal.ONE ),
                                                                     new Percentage( BigDecimal.valueOf( 10 ) ),
                                                                     new Pixel( 10 ) );

    Bounds bounds = instruction.computeBounds( new Bounds( 0, 0, 100, 100 ), 10 );

    assertEquals( 10, bounds.getX() );
    assertEquals( 10, bounds.getY() );
    assertEquals( 80, bounds.getWidth() );
    assertEquals( 80, bounds.getHeight() );
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.