setPosition

public final Unit setPosition(ImmutablePosition position)

Sets the current position of the control.

Parameters

position

The new position to be assigned.

Throws

If any of the position coordinates is negative.


public final Unit setPosition(Float x, Float y)

Sets the current position of the control.

Parameters

x

The x coordinate to be assigned.

y

The y coordinate to be assigned.

Throws

If any of the position coordinates is negative.