Enum Class VirtualFlow.Gravity

java.lang.Object
java.lang.Enum<VirtualFlow.Gravity>
org.fxmisc.flowless.VirtualFlow.Gravity
All Implemented Interfaces:
Serializable, Comparable<VirtualFlow.Gravity>, Constable
Enclosing class:
VirtualFlow<T,C extends Cell<T,?>>

public static enum VirtualFlow.Gravity extends Enum<VirtualFlow.Gravity>
Determines how the cells in the viewport should be laid out and where any extra unused space should exist if there are not enough cells to completely fill up the viewport
  • Enum Constant Details

    • FRONT

      public static final VirtualFlow.Gravity FRONT
      If using a vertical viewport, lays out the content from top-to-bottom. The first visible item will appear at the top and the last visible item (or unused space) towards the bottom.

      If using a horizontal viewport, lays out the content from left-to-right. The first visible item will appear at the left and the last visible item (or unused space) towards the right.

    • REAR

      public static final VirtualFlow.Gravity REAR
      If using a vertical viewport, lays out the content from bottom-to-top. The first visible item will appear at the bottom and the last visible item (or unused space) towards the top.

      If using a horizontal viewport, lays out the content from right-to-left. The first visible item will appear at the right and the last visible item (or unused space) towards the left.

  • Constructor Details

    • Gravity

      private Gravity()
  • Method Details

    • values

      public static VirtualFlow.Gravity[] 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

      public static VirtualFlow.Gravity 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