Class Popup.PositionBehavior.AlignedOffsetPosition
java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.Popup.PositionBehavior.AlignedOffsetPosition
- All Implemented Interfaces:
Popup.PositionBehavior.Position
- Enclosing class:
- Popup.PositionBehavior
public static class Popup.PositionBehavior.AlignedOffsetPosition extends java.lang.Object implements Popup.PositionBehavior.Position
offsets the position by aligning it using the popup's size
-
Constructor Summary
Constructors Constructor Description AlignedOffsetPosition(int align)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AlignedOffsetPosition
public AlignedOffsetPosition(int align)- Parameters:
align
- thealign
-
-
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
-
getAlign
public int getAlign()- Returns:
- the
align
-
setAlign
public void setAlign(int align)- Parameters:
align
- thealign
to set
-