Examples of UIEnvironmentImpl


Examples of com.eclipsesource.tabris.passepartout.internal.UIEnvironmentImpl

  @Test
  public void testMinWidthPassesMinWidthToCondition() {
    Condition condition = PassePartout.minWidth( PassePartout.px( 100 ) );

    boolean complies = condition.compliesWith( new UIEnvironmentImpl( new Bounds( 10, 10, 110, 0 ),
                                                                      mock( Bounds.class ),
                                                                      16 ) );

    assertTrue( complies );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.UIEnvironmentImpl

  @Test
  public void testMaxWidthPassesMaxWidthToCondition() {
    Condition condition = PassePartout.maxWidth( PassePartout.px( 100 ) );

    boolean complies = condition.compliesWith( new UIEnvironmentImpl( new Bounds( 10, 10, 90, 0 ),
                                                                      mock( Bounds.class ),
                                                                      16 ) );

    assertTrue( complies );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.UIEnvironmentImpl

  public static UIEnvironment createEnvironment() {
    return createEnvironment( new Bounds( 0, 0, 0, 0 ) );
  }

  public static UIEnvironment createEnvironment( Bounds bounds ) {
    return new UIEnvironmentImpl( bounds, mock( Bounds.class ), 16 );
  }
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.