Examples of moveY()


Examples of main.ch.morrolan.gibb.snake.Entity.moveY()

    @Test
    public void moveY() {
        Entity entity = new Entity(0, 0);

        entity.moveY(-21);
        assertEquals(new Point(0, -21), entity.position);

        entity.moveY(25);
        assertEquals(new Point(0, 4), entity.position);
    }
View Full Code Here

Examples of main.ch.morrolan.gibb.snake.Entity.moveY()

        Entity entity = new Entity(0, 0);

        entity.moveY(-21);
        assertEquals(new Point(0, -21), entity.position);

        entity.moveY(25);
        assertEquals(new Point(0, 4), entity.position);
    }

    @Test
    public void moveUp() {
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.moveY()

      Rectangle bounds = tabSet.getModelBounds().getCopy();
      Integer barThickness = tabSet.getTabBarThickness();
      String barPosition = tabSet.getTabBarPosition();
      // cut bar area
      if (barPosition.equalsIgnoreCase("TOP")) {
        bounds.moveY(barThickness);
      } else if (barPosition.equalsIgnoreCase("LEFT")) {
        bounds.moveX(barThickness);
      } else if (barPosition.equalsIgnoreCase("BOTTOM")) {
        bounds.resize(0, -barThickness);
      } else if (barPosition.equalsIgnoreCase("RIGHT")) {
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.