Enum Class Pos

java.lang.Object
java.lang.Enum<Pos>
javafx.geometry.Pos
All Implemented Interfaces:
Serializable, Comparable<Pos>, Constable

public enum Pos extends Enum<Pos>
A set of values for describing vertical and horizontal positioning and alignment.
Since:
JavaFX 2.0
  • Nested Class Summary Link icon

    Nested classes/interfaces declared in class java.lang.Enum Link icon

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary Link icon

    Enum Constants
    Enum Constant
    Description
    Represents positioning on the baseline vertically and on the center horizontally.
    Represents positioning on the baseline vertically and on the left horizontally.
    Represents positioning on the baseline vertically and on the right horizontally.
    Represents positioning on the bottom vertically and on the center horizontally.
    Represents positioning on the bottom vertically and on the left horizontally.
    Represents positioning on the bottom vertically and on the right horizontally.
    Represents positioning on the center both vertically and horizontally.
    Represents positioning on the center vertically and on the left horizontally.
    Represents positioning on the center vertically and on the right horizontally.
    Represents positioning on the top vertically and on the center horizontally.
    Represents positioning on the top vertically and on the left horizontally.
    Represents positioning on the top vertically and on the right horizontally.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Returns the horizontal positioning/alignment.
    Returns the vertical positioning/alignment.
    static Pos
    Returns the enum constant of this class with the specified name.
    static Pos[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods declared in class java.lang.Object Link icon

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details Link icon

    • TOP_LEFT Link icon

      public static final Pos TOP_LEFT
      Represents positioning on the top vertically and on the left horizontally.
    • TOP_CENTER Link icon

      public static final Pos TOP_CENTER
      Represents positioning on the top vertically and on the center horizontally.
    • TOP_RIGHT Link icon

      public static final Pos TOP_RIGHT
      Represents positioning on the top vertically and on the right horizontally.
    • CENTER_LEFT Link icon

      public static final Pos CENTER_LEFT
      Represents positioning on the center vertically and on the left horizontally.
    • CENTER Link icon

      public static final Pos CENTER
      Represents positioning on the center both vertically and horizontally.
    • CENTER_RIGHT Link icon

      public static final Pos CENTER_RIGHT
      Represents positioning on the center vertically and on the right horizontally.
    • BOTTOM_LEFT Link icon

      public static final Pos BOTTOM_LEFT
      Represents positioning on the bottom vertically and on the left horizontally.
    • BOTTOM_CENTER Link icon

      public static final Pos BOTTOM_CENTER
      Represents positioning on the bottom vertically and on the center horizontally.
    • BOTTOM_RIGHT Link icon

      public static final Pos BOTTOM_RIGHT
      Represents positioning on the bottom vertically and on the right horizontally.
    • BASELINE_LEFT Link icon

      public static final Pos BASELINE_LEFT
      Represents positioning on the baseline vertically and on the left horizontally.
    • BASELINE_CENTER Link icon

      public static final Pos BASELINE_CENTER
      Represents positioning on the baseline vertically and on the center horizontally.
    • BASELINE_RIGHT Link icon

      public static final Pos BASELINE_RIGHT
      Represents positioning on the baseline vertically and on the right horizontally.
  • Method Details Link icon

    • values Link icon

      public static Pos[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf Link icon

      public static Pos valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getVpos Link icon

      public VPos getVpos()
      Returns the vertical positioning/alignment.
      Returns:
      the vertical positioning/alignment.
    • getHpos Link icon

      public HPos getHpos()
      Returns the horizontal positioning/alignment.
      Returns:
      the horizontal positioning/alignment.