Interface EditTool


public interface EditTool
An editor tool: selection, pencil, eraser, etc.
  • Method Details

    • getIcon

      Icon getIcon(boolean selected)
      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

      void editMultipleNotes(List<NoteView> noteViews)
      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

      default boolean isOverrideSnapSetting(MouseEvent e)
      Check if the specified MouseEvent uses keyboard modifiers (eg alt) that modify the current snap setting.
      Parameters:
      e -
      Returns:
    • isConstantPitchModifier

      default boolean isConstantPitchModifier(MouseEvent e)
    • editorClicked

      void editorClicked(MouseEvent e)
    • editorDragged

      void editorDragged(MouseEvent e)
    • editorReleased

      void editorReleased(MouseEvent e)
    • editorWheelMoved

      void editorWheelMoved(MouseWheelEvent evt)
    • noteClicked

      void noteClicked(MouseEvent e, NoteView nv)
    • noteWheelMoved

      void noteWheelMoved(MouseWheelEvent e, NoteView nv)
    • noteMoved

      void noteMoved(MouseEvent e, NoteView nv)
    • noteEntered

      void noteEntered(MouseEvent e, NoteView nv)
    • noteExited

      void noteExited(MouseEvent e, NoteView nv)
    • noteDragged

      void noteDragged(MouseEvent e, NoteView nv)
    • noteReleased

      void noteReleased(MouseEvent e, NoteView nv)