Examples of Pixel


Examples of ch.akuhn.foreach.benchmarks.OneBillionFinalPixels.Pixel

        public boolean hasNext() {
            return y < LEN;
        }

        public Pixel next() {
            Pixel p = new Pixel(x, y, ARRAY ? RANDOM[x][y] : Benchmark.next());
            if (++x == LEN) { x = 0; ++y; }
            return p;
        }
View Full Code Here

Examples of ch.akuhn.foreach.benchmarks.OneBillionPixels.Pixel

        public boolean hasNext() {
            return y < LEN;
        }

        public Pixel next() {
            Pixel p = new Pixel(x, y, ARRAY ? RANDOM[x][y] : Benchmark.next());
            if (++x == LEN) { x = 0; ++y; }
            return p;
        }
View Full Code Here

Examples of ch.akuhn.foreach.benchmarks.OneRunningPixel.Pixel

        ben.end();
        System.out.println(tally);
    }

    public Iterator<Pixel> iterator() {
        return new Pixel();
    }
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.unit.Pixel

    new MaxWidthCondition( null );
  }

  @Test( expected = IllegalArgumentException.class )
  public void testFailsWidthZeroMaxWidth() {
    new MaxWidthCondition( new Pixel( 0 ) );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.unit.Pixel

    new MaxWidthCondition( new Pixel( 0 ) );
  }

  @Test( expected = IllegalArgumentException.class )
  public void testFailsWidthNegativeMaxWidth() {
    new MaxWidthCondition( new Pixel( -1 ) );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.unit.Pixel

    new MaxWidthCondition( new Pixel( -1 ) );
  }

  @Test
  public void testCompliesNotWithWidthBiggerThanMaxWidth() {
    MaxWidthCondition condition = new MaxWidthCondition( new Pixel( 100 ) );
    Bounds bounds = new Bounds( 10, 10, 110, 0 );

    boolean complies = condition.compliesWith( createEnvironment( bounds ) );

    assertFalse( complies );
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.unit.Pixel

    assertFalse( complies );
  }

  @Test
  public void testCompliesWithWidthSameThanMaxWidth() {
    MaxWidthCondition condition = new MaxWidthCondition( new Pixel( 100 ) );
    Bounds bounds = new Bounds( 10, 10, 100, 0 );

    boolean complies = condition.compliesWith( createEnvironment( bounds ) );

    assertTrue( complies );
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.unit.Pixel

    assertTrue( complies );
  }

  @Test
  public void testCompliesWithWidthSmallerThanMaxWidth() {
    MaxWidthCondition condition = new MaxWidthCondition( new Pixel( 100 ) );
    Bounds bounds = new Bounds( 10, 10, 90, 0 );

    boolean complies = condition.compliesWith( createEnvironment( bounds ) );

    assertTrue( complies );
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.unit.Pixel

    new MinWidthCondition( null );
  }

  @Test( expected = IllegalArgumentException.class )
  public void testFailsWidthNegativeMinWidth() {
    new MinWidthCondition( new Pixel( -1 ) );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.internal.unit.Pixel

    new MinWidthCondition( new Pixel( -1 ) );
  }

  @Test
  public void testCompliesWithWidthBiggerThanMinWidth() {
    MinWidthCondition condition = new MinWidthCondition( new Pixel( 100 ) );
    Bounds bounds = new Bounds( 10, 10, 110, 0 );

    boolean complies = condition.compliesWith( createEnvironment( bounds ) );

    assertTrue( complies );
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.