abc.parser
Class PositionableNote

java.lang.Object
  extended byabc.notation.NoteAbstract
      extended byabc.notation.Note
          extended byabc.parser.PositionableNote
All Implemented Interfaces:
PositionableInCharStream, ScoreElementInterface

public class PositionableNote
extends Note
implements PositionableInCharStream


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, getHeigth, getOctaveTransposition, isRest, isTied, setAccidental, setHeigth, setIsTied, setLength, setOctaveTransposition, toRootOctaveHeigth
 
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
 
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