Package org.fxmisc.flowless
Enum Class VirtualFlow.Gravity
- All Implemented Interfaces:
Serializable
,Comparable<VirtualFlow.Gravity>
,Constable
- Enclosing class:
VirtualFlow<T,
C extends Cell<T, ?>>
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf using avertical viewport
, lays out the content from top-to-bottom.If using avertical viewport
, lays out the content from bottom-to-top. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualFlow.Gravity
Returns the enum constant of this class with the specified name.static VirtualFlow.Gravity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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.
-
-
Constructor Details
-
Gravity
private Gravity()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-