public enum EditHandleState extends Enum<EditHandleState>
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.
Enum Constant and Description |
---|
Active
Active handles are handles that users are currently interacting with.
|
Highlighted
Highlighted handles are not interacted with, but signal that they are ready for interaction.
|
Inactive
Inactive handles have the lowest priority when it comes to event handling.
|
Modifier and Type | Method and Description |
---|---|
static EditHandleState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EditHandleState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EditHandleState Inactive
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.
public static final EditHandleState Highlighted
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.
public static final EditHandleState Active
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.
public static EditHandleState[] values()
for (EditHandleState c : EditHandleState.values()) System.out.println(c);
public static EditHandleState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null