abc.parser
Class PositionableNote
java.lang.Object
abc.notation.NoteAbstract
abc.notation.Note
abc.parser.PositionableNote
- All Implemented Interfaces:
- PositionableInCharStream, ScoreElementInterface
- public class PositionableNote
- extends Note
- implements PositionableInCharStream
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 |
Constructor Summary |
PositionableNote(byte heigthValue,
byte accidentalValue)
|
PositionableNote(byte heigthValue,
byte accidentalValue,
byte octaveTranspositionValue)
|
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 |
PositionableNote
public PositionableNote(byte heigthValue,
byte accidentalValue)
PositionableNote
public PositionableNote(byte heigthValue,
byte accidentalValue,
byte octaveTranspositionValue)
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