Package com.eclipsesource.tabris.passepartout.internal.instruction

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


  @Test
  public void testComputesBoundsWithExcludeInstrutions() {
    Layouter layouter = new Layouter( createEnvironment( new Bounds( 0, 0, 600, 200 ) ), createConfig() );
    ArrayList<Instruction> instructions = new ArrayList<Instruction>();
    instructions.add( new ExcludeInstruction() );

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

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


   * <p>
   * Creates an {@link Instruction} that will exclude a component in a {@link FluidGridLayout} from layouting.
   * </p>
   */
  public static Instruction exclude() {
    return new ExcludeInstruction();
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.passepartout.internal.instruction.ExcludeInstruction

Copyright © 2018 www.massapicom. 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.