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 Object implements Popup.PositionBehavior.Position
offsets the position by aligning it using the popup's size
  • Constructor Details

    • AlignedOffsetPosition

      public AlignedOffsetPosition(int align)
      Parameters:
      align - the align
  • Method Details

    • apply

      public void apply(com.badlogic.gdx.scenes.scene2d.Event event, com.badlogic.gdx.scenes.scene2d.Actor popup)
      Specified by:
      apply in interface Popup.PositionBehavior.Position
      Parameters:
      event - the event
      popup - the popup which position to set
    • getAlign

      public int getAlign()
      Returns:
      the align
    • setAlign

      public void setAlign(int align)
      Parameters:
      align - the align to set