Enum VirtualFlow.Gravity

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<VirtualFlow.Gravity>
    Enclosing class:
    VirtualFlow<T,​C extends Cell<T,​?>>

    public static enum VirtualFlow.Gravity
    extends java.lang.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
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Gravity()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static VirtualFlow.Gravity valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static VirtualFlow.Gravity[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • Gravity

        private Gravity()
    • Method Detail

      • values

        public static VirtualFlow.Gravity[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (VirtualFlow.Gravity c : VirtualFlow.Gravity.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static VirtualFlow.Gravity valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null