Package org.wmn4j.notation
Interface Notation.Connectable
- 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 Summary
Modifier and TypeMethodDescriptionboolean
beginsNotation
(Notation.Type notationType) Returns true if this note begins a notation of the given type.boolean
endsNotation
(Notation.Type notationType) Returns true if this note ends a notation of the given type.getConnection
(Notation notation) Returns the notation connection belonging to the given notation.
-
Method Details
-
getConnection
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
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
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
-