Examples of HeightInstruction


Examples of com.eclipsesource.tabris.passepartout.internal.instruction.HeightInstruction

  @Test
  public void testComputesBoundsWithoutHeightInstrutions() {
    Layouter layouter = new Layouter( createEnvironment( new Bounds( 0, 0, 600, 200 ) ), createConfig() );
    ArrayList<Instruction> instructions = new ArrayList<Instruction>();
    instructions.add( new HeightInstruction( PassePartout.px( 300 ) ) );

    Bounds bounds = layouter.computeBounds( new Bounds( 0, 0, 100, 100 ), instructions );

    assertEquals( new Bounds( 0, 0, 150, 300 ), bounds );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.instruction.HeightInstruction

   * </p>
   *
   * @param height the height to use. Must not be <code>null</code>.
   */
  public static Instruction height( Unit height ) {
    return new HeightInstruction( height );
  }
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.