abc4j API Specification

abc.parser
Class PositionableMultiNote

java.lang.Object
  extended by abc.notation.NoteAbstract
      extended by abc.notation.MultiNote
          extended by 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.


Field Summary
 
Fields inherited from class abc.notation.NoteAbstract
DOWN, NONE, UP
 
Constructor Summary
PositionableMultiNote(java.util.Vector notes)
           
 
Method Summary
 int getLength()
          Returns the length of this positionable object.
 CharStreamPosition getPosition()
          Returns the start position.
 void setBeginPosition(CharStreamPosition position)
           
 void setLength(int length)
           
 java.lang.String toString()
          Returns a String representation of this Object.
 
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
 

Constructor Detail

PositionableMultiNote

public PositionableMultiNote(java.util.Vector notes)
Method Detail

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.

abc4j API Specification

Submit a bug or feature