Class Popup.PositionBehavior.PresetPosition
java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.Popup.PositionBehavior.PresetPosition
- All Implemented Interfaces:
Popup.PositionBehavior.Position
- Enclosing class:
- Popup.PositionBehavior
public static class Popup.PositionBehavior.PresetPosition extends java.lang.Object implements Popup.PositionBehavior.Position
a preset position
-
Constructor Summary
Constructors Constructor Description PresetPosition()
PresetPosition(float x, float y)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PresetPosition
public PresetPosition() -
PresetPosition
public PresetPosition(float x, float y)- Parameters:
x
- thex
y
- they
-
-
Method Details
-
apply
public void apply(com.badlogic.gdx.scenes.scene2d.Event event, com.badlogic.gdx.scenes.scene2d.Actor popup)- Specified by:
apply
in 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
- thex
to set
-
getY
public float getY()- Returns:
- the
y
-
setY
public void setY(float y)- Parameters:
y
- they
to set
-