public interface IEditModeController
IEditModeController.EditMode
. The
drag layer retrieves the correct controller based on the object type of the
timeline object over which the mouse cursor hovers. Once retrieved the mouse
event is sent to the controller, which then needs to reply with one of the
values of IEditModeController.EditMode
. The controller can not only use the location of
the mouse event but also the modifiers. This way some editing modes can be
more protected when they can only be reached with certain modifiers active.DragLayer.setEditModeController(Class, IEditModeController)
Modifier and Type | Interface and Description |
---|---|
static class |
IEditModeController.EditMode
An enumeration of possible editing states that the drag layer can be in.
|
Modifier and Type | Method and Description |
---|---|
IEditModeController.EditMode |
getEditMode(DragLayer layer,
ObjectBounds bounds,
MouseEvent evt)
Returns an edit mode based on the given bounds and mouse event.
|
IEditModeController.EditMode getEditMode(DragLayer layer, ObjectBounds bounds, MouseEvent evt)
layer
- the drag layer requesting the edit modebounds
- the object bounds over which the mouse cursor currently hoversevt
- the mouse event that triggered the requestCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.