Examples of moveX()


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

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

        entity.moveX(7);
        assertEquals(new Point(7, 0), entity.position);

        entity.moveX(-11);
        assertEquals(new Point(-4, 0), entity.position);
    }
View Full Code Here

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

        Entity entity = new Entity(0, 0);

        entity.moveX(7);
        assertEquals(new Point(7, 0), entity.position);

        entity.moveX(-11);
        assertEquals(new Point(-4, 0), entity.position);
    }

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

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

      Rectangle bounds = getState().getAbsoluteBounds(containerElement);
      bounds.translate(getState().getAbsoluteBounds(getElement()).getLocation().getNegated());
      // exclude spacing
      {
        int spacing = ReflectionUtils.getFieldInt(getObject(), "spacing");
        bounds.moveX(spacing);
      }
      // use full height
      bounds.setBottom(PortalInfo.this.getBounds().height);
      // done
      return bounds;
View Full Code Here

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

      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")) {
        bounds.resize(-barThickness, 0);
      }
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.