abc4j API Specification

abc.parser
Class PositionableNote

java.lang.Object
  extended by abc.notation.NoteAbstract
      extended by abc.notation.Note
          extended by abc.parser.PositionableNote
All Implemented Interfaces:
MusicElement, PositionableInCharStream

public class PositionableNote
extends Note
implements PositionableInCharStream

A note that encapsulates the information needed to locate where the abc information describing this note was positioned in the parsed stream.


Field Summary
 
Fields inherited from class abc.notation.Note
a, A, b, B, c, C, d, D, DOTTED_EIGHTH, DOTTED_HALF, DOTTED_QUARTER, DOTTED_SIXTEENTH, DOTTED_SIXTY_FOURTH, DOTTED_THIRTY_SECOND, DOTTED_WHOLE, e, E, EIGHTH, f, F, g, G, HALF, QUARTER, REST, SIXTEENTH, SIXTY_FOURTH, THIRTY_SECOND, WHOLE
 
Fields inherited from class abc.notation.NoteAbstract
DOWN, NONE, UP
 
Constructor Summary
PositionableNote(byte heigthValue, byte accidentalValue)
           
PositionableNote(byte heigthValue, byte accidentalValue, byte octaveTranspositionValue)
           
 
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.Note
convertToAccidentalType, convertToNoteLengthStrict, convertToNoteType, getAccidental, getDuration, getHeight, getHeigth, getHighestNote, getHighestNoteIndex, getLowestNote, getOctaveTransposition, getOctaveTransposition, getStrictDuration, getStrictHeight, getStrictHeight, getTieDefinition, hasAccidental, isBeginningTie, isEndingTie, isHigherThan, isLowerThan, isRest, isStrictDuration, isTied, setAccidental, setDotted, setDuration, setHeight, setHeigth, setLength, setOctaveTransposition, setStrictDuration, setTieDefinition, toRootOctaveHeigth
 
Methods inherited from class abc.notation.NoteAbstract
countDots, getBow, getChordName, getDotted, getGracingNotes, getGracingNotesLength, getSlurDefinition, getTuplet, hasGeneralGracing, hasGracingNotes, hasStaccato, isBeginingSlur, isEndingSlur, isPartOfSlur, isPartOfTuplet, setBow, setChordName, setGeneralGracing, setGracingNotes, setPartOfSlur, setSlurDefinition, setStaccato
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PositionableNote

public PositionableNote(byte heigthValue,
                        byte accidentalValue)

PositionableNote

public PositionableNote(byte heigthValue,
                        byte accidentalValue,
                        byte octaveTranspositionValue)
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 Note
Returns:
a String representation of this Object.

abc4j API Specification

Submit a bug or feature