Module MaterialFX

Class PositionBean

java.lang.Object
io.github.palexdev.materialfx.beans.PositionBean
Direct Known Subclasses:
TransitionPositionBean

public class PositionBean extends Object
Simple bean that keeps track of two coordinates, x and y.

Both are JavaFX properties to allow dynamic uses.

  • Property Details

  • Constructor Details

    • PositionBean

      public PositionBean()
    • PositionBean

      public PositionBean(double x, double y)
  • Method Details

    • of

      public static PositionBean of(double x, double y)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getX

      public double getX()
      Gets the value of the property x.
      Property description:
      The x coordinate property.
    • xProperty

      public DoubleProperty xProperty()
      The x coordinate property.
      See Also:
    • setX

      public void setX(double xPosition)
      Sets the value of the property x.
      Property description:
      The x coordinate property.
    • getY

      public double getY()
      Gets the value of the property y.
      Property description:
      The y coordinate property
    • yProperty

      public DoubleProperty yProperty()
      The y coordinate property
      See Also:
    • setY

      public void setY(double yPosition)
      Sets the value of the property y.
      Property description:
      The y coordinate property