Interface Notation.Connectable

All Known Implementing Classes:
GraceNote, Note
Enclosing class:
Notation

public static interface Notation.Connectable
Represents notation elements that can be connected to each other through notations, like notes and grace notes.
  • Method Details

    • getConnection

      Optional<Notation.Connection> getConnection(Notation notation)
      Returns the notation connection belonging to the given notation. If no notation connection for the notation is present, return empty.
      Parameters:
      notation - the notation for which the notation connection is returned
      Returns:
      the notation connection belonging to the given notation
    • beginsNotation

      boolean beginsNotation(Notation.Type notationType)
      Returns true if this note begins a notation of the given type.
      Parameters:
      notationType - the type of the notation for whose beginning this note is checked
      Returns:
      true if this note begins a notation of the given type
    • endsNotation

      boolean endsNotation(Notation.Type notationType)
      Returns true if this note ends a notation of the given type.
      Parameters:
      notationType - the type of the notation for whose end this note is checked
      Returns:
      true if this note ends a notation of the given type