Enum Class EditHandleState
- All Implemented Interfaces:
Serializable
,Comparable<EditHandleState>
,Constable
IEditHandle
.
The state determines the order in which events are dispatched to a handle, and the order in which the mouse cursor is retrieved: Active > Highlighted > Inactive
Depending on their state, handles are usually visualized differently or have a different mouse cursor.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionActive handles are handles that users are currently interacting with.Highlighted handles are not interacted with, but signal that they are ready for interaction.Inactive handles have the lowest priority when it comes to event handling. -
Method Summary
Modifier and TypeMethodDescriptionstatic EditHandleState
Returns the enum constant of this class with the specified name.static EditHandleState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Inactive
Inactive handles have the lowest priority when it comes to event handling.Both highlighted and active handles have a higher priority. They are also typically painted differently than highlighted or active handles, and they typically don't trigger the use of a non-standard mouse cursor.
-
Highlighted
Highlighted handles are not interacted with, but signal that they are ready for interaction.Handles are typically highlighted when users hover over them using the mouse. As for handling events, active handles take precedence. Highlighted handles however take precedence over other handles, and get the chance to become active first.
Highlighted handles can be painted differently to make it visually clear that they can be interacted with, or they can trigger the use of a different mouse cursor.
-
Active
Active handles are handles that users are currently interacting with.This is the case while a user drags a point handle, for example. Active handles get the chance to consume events before any other handle.
Active handles can be painted differently to make it visually clear that they are being interacted with, or they can trigger the use of a different mouse cursor.
-
-
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
-