Package org.jjazz.pianoroll.api
Interface EditTool
public interface EditTool
An editor tool: selection, pencil, eraser, etc.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
editMultipleNotes
(List<NoteView> noteViews) Perform the edit on multiple notes (if operation is supported, see isEditMultipleNotesSupported()).void
void
void
void
getIcon
(boolean selected) A 20x20 icon.getName()
default boolean
boolean
If true user can draw a rectangle to edit multiple notes.default boolean
Check if the specified MouseEvent uses keyboard modifiers (eg alt) that modify the current snap setting.void
noteClicked
(MouseEvent e, NoteView nv) void
noteDragged
(MouseEvent e, NoteView nv) void
noteEntered
(MouseEvent e, NoteView nv) void
noteExited
(MouseEvent e, NoteView nv) void
noteMoved
(MouseEvent e, NoteView nv) void
noteReleased
(MouseEvent e, NoteView nv) void
-
Method Details
-
getIcon
A 20x20 icon.- Parameters:
selected
-- Returns:
-
getCursor
Cursor getCursor() -
getName
String getName() -
isEditMultipleNotesSupported
boolean isEditMultipleNotesSupported()If true user can draw a rectangle to edit multiple notes.- Returns:
- See Also:
-
editMultipleNotes
Perform the edit on multiple notes (if operation is supported, see isEditMultipleNotesSupported()).This method is called when user has selected one or more notes via the rectangle selection.
- Parameters:
noteViews
-- See Also:
-
isOverrideSnapSetting
Check if the specified MouseEvent uses keyboard modifiers (eg alt) that modify the current snap setting.- Parameters:
e
-- Returns:
-
isConstantPitchModifier
-
editorClicked
-
editorDragged
-
editorReleased
-
editorWheelMoved
-
noteClicked
-
noteWheelMoved
-
noteMoved
-
noteEntered
-
noteExited
-
noteDragged
-
noteReleased
-