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

    Modifier and Type Method Description
    void apply​(com.badlogic.gdx.scenes.scene2d.Event event, com.badlogic.gdx.scenes.scene2d.Actor popup)  
    float getX()  
    float getY()  
    void setX​(float x)  
    void setY​(float y)  

    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 - the x
      y - the y
  • 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
    • getX

      public float getX()
      Returns:
      the x
    • setX

      public void setX​(float x)
      Parameters:
      x - the x to set
    • getY

      public float getY()
      Returns:
      the y
    • setY

      public void setY​(float y)
      Parameters:
      y - the y to set