abc.parser
Class PositionableMultiNote
java.lang.Object
abc.notation.NoteAbstract
abc.notation.MultiNote
abc.parser.PositionableMultiNote
- All Implemented Interfaces:
- MusicElement, PositionableInCharStream
public class PositionableMultiNote
- extends MultiNote
- implements PositionableInCharStream
A multinote that encapsulates the information needed to locate where the abc
information describing this multinote was positioned in the parsed stream.
| Methods inherited from class abc.notation.MultiNote |
contains, excludeTiesEndings, getHighestNote, getHighestNote, getLongestNote, getLongestNote, getLowestNote, getLowestNote, getNotesAsVector, getNotesBeginningTie, getNotesShorterThan, getShortestNote, getStrictDurations, hasAccidental, hasUniqueStrictDuration, normalize, toArray |
| Methods inherited from class abc.notation.NoteAbstract |
countDots, getBow, getChordName, getDotted, getGracingNotes, getGracingNotesLength, getSlurDefinition, getTuplet, hasGeneralGracing, hasGracingNotes, hasStaccato, isBeginingSlur, isEndingSlur, isPartOfSlur, isPartOfTuplet, setBow, setChordName, setDotted, setGeneralGracing, setGracingNotes, setPartOfSlur, setSlurDefinition, setStaccato |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PositionableMultiNote
public PositionableMultiNote(java.util.Vector notes)
getPosition
public CharStreamPosition getPosition()
- Description copied from interface:
PositionableInCharStream
- Returns the start position.
- Specified by:
getPosition in interface PositionableInCharStream
- Returns:
- The start position.
setBeginPosition
public void setBeginPosition(CharStreamPosition position)
setLength
public void setLength(int length)
getLength
public int getLength()
- Description copied from interface:
PositionableInCharStream
- Returns the length of this positionable object.
- Specified by:
getLength in interface PositionableInCharStream
- Returns:
- The length of this positionable object.
toString
public java.lang.String toString()
- Description copied from class:
NoteAbstract
- Returns a String representation of this Object.
- Overrides:
toString in class NoteAbstract
- Returns:
- a String representation of this Object.
Submit a bug or feature