org.herac.tuxguitar.io.abc.base
Class ABCLocation
java.lang.Object
org.herac.tuxguitar.io.abc.base.ABCLocation
- All Implemented Interfaces:
- java.lang.Comparable
- public class ABCLocation
- extends java.lang.Object
- implements java.lang.Comparable
- Author:
- peter
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ABCLocation
public ABCLocation(java.lang.String part,
int track,
int measure,
int ticks,
ABCChord chord,
ABCEvent event)
toString
public java.lang.String toString()
getMeasure
public int getMeasure()
- Returns:
- the measure
getPart
public java.lang.String getPart()
- Returns:
- the part
getTicks
public int getTicks()
- Returns:
- the ticks
getTrack
public int getTrack()
- Returns:
- the track
getEvent
public ABCEvent getEvent()
- Returns:
- the event
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
setMeasure
public void setMeasure(int measure)
- Parameters:
measure
- the measure to set
setPart
public void setPart(java.lang.String part)
- Parameters:
part
- the part to set
setTicks
public void setTicks(int ticks)
- Parameters:
ticks
- the ticks to set
setChord
public void setChord(ABCChord chord)
getChord
public ABCChord getChord()
- Returns:
- the chord
setTied
public void setTied(boolean tied)
isTied
public boolean isTied()
- Returns:
- the tied
getTempo
public int getTempo()
setTempo
public void setTempo(int tempo)
getLegato
public int getLegato()
- Returns:
- the legato
setLegato
public void setLegato(int legato)
- Parameters:
legato
- the legato to set