public void setY (float y) { if (this.y != y) { this.y = y; positionChanged(); } }
/** Sets the y position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setY (float y, int alignment) { if ((alignment & top) != 0) y -= height; else if ((alignment & bottom) == 0) // y -= height / 2; if (this.y != y) { this.y = y; positionChanged(); } }
/** Add x and y to current position */ public void moveBy (float x, float y) { if (x != 0 || y != 0) { this.x += x; this.y += y; positionChanged(); } }
public void setX (float x) { if (this.x != x) { this.x = x; positionChanged(); } }
public void setX (float x) { if (this.x != x) { this.x = x; positionChanged(); } }
/** Sets the x position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setX (float x, int alignment) { if ((alignment & right) != 0) x -= width; else if ((alignment & left) == 0) // x -= width / 2; if (this.x != x) { this.x = x; positionChanged(); } }
public void setY (float y) { if (this.y != y) { this.y = y; positionChanged(); } }
/** Sets the position of the actor's bottom left corner. */ public void setPosition (float x, float y) { if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } }
/** Sets the x position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setX (float x, int alignment) { if ((alignment & right) != 0) x -= width; else if ((alignment & left) == 0) // x -= width / 2; if (this.x != x) { this.x = x; positionChanged(); } }
/** Sets the position of the actor's bottom left corner. */ public void setPosition (float x, float y) { if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } }
/** Add x and y to current position */ public void moveBy (float x, float y) { if (x != 0 || y != 0) { this.x += x; this.y += y; positionChanged(); } }
/** Sets the y position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setY (float y, int alignment) { if ((alignment & top) != 0) y -= height; else if ((alignment & bottom) == 0) // y -= height / 2; if (this.y != y) { this.y = y; positionChanged(); } }
/** Sets the position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setPosition (float x, float y, int alignment) { if ((alignment & right) != 0) x -= width; else if ((alignment & left) == 0) // x -= width / 2; if ((alignment & top) != 0) y -= height; else if ((alignment & bottom) == 0) // y -= height / 2; if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } }
/** Sets the position using the specified {@link Align alignment}. Note this may set the position to non-integer * coordinates. */ public void setPosition (float x, float y, int alignment) { if ((alignment & right) != 0) x -= width; else if ((alignment & left) == 0) // x -= width / 2; if ((alignment & top) != 0) y -= height; else if ((alignment & bottom) == 0) // y -= height / 2; if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } }
/** Set bounds the x, y, width, and height. */ public void setBounds (float x, float y, float width, float height) { if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } if (this.width != width || this.height != height) { this.width = width; this.height = height; sizeChanged(); } }
/** Set bounds the x, y, width, and height. */ public void setBounds (float x, float y, float width, float height) { if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } if (this.width != width || this.height != height) { this.width = width; this.height = height; sizeChanged(); } }
/** Add x and y to current position */ public void moveBy (float x, float y) { if (x != 0 || y != 0) { this.x += x; this.y += y; positionChanged(); } }
public void setX (float x) { if (this.x != x) { this.x = x; positionChanged(); } }
/** Sets the position of the actor's bottom left corner. */ public void setPosition (float x, float y) { if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } }
/** Set bounds the x, y, width, and height. */ public void setBounds (float x, float y, float width, float height) { if (this.x != x || this.y != y) { this.x = x; this.y = y; positionChanged(); } if (this.width != width || this.height != height) { this.width = width; this.height = height; sizeChanged(); } }