Called after the end of a mouse drag gesture.
Called after the end of a mouse drag gesture. If this constitutes a valid edit, the method should return the resulting undoable edit.
the last editing state
the cursor that might be needed to construct the undoable edit
either Some
edit or None
if the action does not constitute an
edit or the edit parameters are invalid.
The mouse cursor used when the tool is active.
Applies standard mouse selection techniques regarding regions.
Applies standard mouse selection techniques regarding regions.
- If no modifier is hold, clicking outside of a region deselects all currently selected regions. - Clicking on an already selected region has no effect. - Clicking on a unselected region, will clear the selection and only select the new region. - Holding shift while clicking will add or remove regions to the list of selected regions.
Abstract method to be implemented by sub-classes.
Abstract method to be implemented by sub-classes. Called when the mouse is pressed
the event corresponding to the press
the track index corresponding to the vertical mouse coordinate.
the frame position corresponding to the horizontal mouse coordinate
Some
timeline object that is beneath the mouse
position or None
if the mouse is pressed over
an empty part of the timeline.
The icon to use in a tool bar.
Implemented by adding mouse (motion) listeners to the component.
Implemented by adding mouse (motion) listeners to the component.
The human readable name of the tool.
Implemented by removing listeners from component.
Implemented by removing listeners from component.