abc.notation
Class MultiNote

java.lang.Object
  extended byabc.notation.NoteAbstract
      extended byabc.notation.MultiNote
All Implemented Interfaces:
ScoreElementInterface
Direct Known Subclasses:
PositionableMultiNote

public class MultiNote
extends NoteAbstract

A multi note is a group of notes that should be played together.


Field Summary
 
Fields inherited from class abc.notation.NoteAbstract
DOWN, NONE, UP
 
Constructor Summary
MultiNote(java.util.Vector notes)
          Creates a new MultiNote from given notes.
 
Method Summary
 Note getLongestNote()
          Returns the longest note of this multi note.
 java.util.Vector getNotesAsVector()
          Returns a new vector containing all Note objects contained in this multi note.
 
Methods inherited from class abc.notation.NoteAbstract
getBow, getChordName, getDotted, getGracingNotes, getGracingNotesLength, getTuplet, hasGeneralGracing, hasGracingNotes, hasStaccato, isPartOfSlur, isPartOfTuplet, setBow, setChordName, setDotted, setGeneralGracing, setGracingNotes, setPartOfSlur, setStaccato, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiNote

public MultiNote(java.util.Vector notes)
Creates a new MultiNote from given notes.

Parameters:
notes - A Vector containing the NoteAbstract of this MultiNote.
Method Detail

getLongestNote

public Note getLongestNote()
Returns the longest note of this multi note.

Returns:
The longest note of this multi note. If several notes have the same longest length, the first one is returned.

getNotesAsVector

public java.util.Vector getNotesAsVector()
Returns a new vector containing all Note objects contained in this multi note.

Returns:
a new vector containing all Note objects contained in this multi note.