Package org.fxmisc.richtext
Enum Selection.Direction
- java.lang.Object
-
- java.lang.Enum<Selection.Direction>
-
- org.fxmisc.richtext.Selection.Direction
-
- All Implemented Interfaces:
Serializable
,Comparable<Selection.Direction>
public static enum Selection.Direction extends Enum<Selection.Direction>
Specifies whether to update the start/end value of a selection to the left (towards 0) or right (away from 0)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Selection.Direction
valueOf(String name)
Returns the enum constant of this type with the specified name.static Selection.Direction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEFT
public static final Selection.Direction LEFT
-
RIGHT
public static final Selection.Direction RIGHT
-
-
Method Detail
-
values
public static Selection.Direction[] 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 (Selection.Direction c : Selection.Direction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Selection.Direction valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-