Class Popup.PositionBehavior.OffsetPosition
java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.Popup.PositionBehavior.OffsetPosition
- All Implemented Interfaces:
Popup.PositionBehavior.Position
- Enclosing class:
Popup.PositionBehavior
public static class Popup.PositionBehavior.OffsetPosition
extends Object
implements Popup.PositionBehavior.Position
offsets the popup by a certain amount
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OffsetPosition
public OffsetPosition(float x, float y) - Parameters:
x- thexy- they
-
-
Method Details
-
apply
public void apply(com.badlogic.gdx.scenes.scene2d.Event event, com.badlogic.gdx.scenes.scene2d.Actor popup) - Specified by:
applyin interfacePopup.PositionBehavior.Position- Parameters:
event- the eventpopup- the popup which position to set
-
getX
public float getX()- Returns:
- the
x
-
setX
public void setX(float x) - Parameters:
x- thexto set
-
getY
public float getY()- Returns:
- the
y
-
setY
public void setY(float y) - Parameters:
y- theyto set
-