Package org.fxmisc.flowless
Enum VirtualFlow.Gravity
- java.lang.Object
-
- java.lang.Enum<VirtualFlow.Gravity>
-
- org.fxmisc.flowless.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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FRONT
If using avertical viewport
, lays out the content from top-to-bottom.REAR
If using avertical viewport
, lays out the content from bottom-to-top.
-
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.
-
-
-
Enum Constant Detail
-
FRONT
public static final VirtualFlow.Gravity FRONT
If using avertical 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 avertical 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.
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-