org.herac.tuxguitar.song.models
Class Note

java.lang.Object
  extended by org.herac.tuxguitar.song.models.Note
All Implemented Interfaces:
java.io.Serializable, Component

public class Note
extends java.lang.Object
implements Component, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Note(int value, long start, Duration duration, int velocity, int string, boolean tiedNote, NoteEffect effect)
           
 
Method Summary
 java.lang.Object clone()
           
 Duration getDuration()
           
 NoteEffect getEffect()
           
 long getStart()
           
 long getStartWithRepetitions()
           
 int getString()
           
 int getValue()
           
 int getVelocity()
           
 boolean isTiedNote()
           
 void setDuration(Duration duration)
           
 void setEffect(NoteEffect effect)
           
 void setStart(long start)
           
 void setStartWithRepetitions(long startWithRepetitions)
           
 void setString(int string)
           
 void setTiedNote(boolean tiedNote)
           
 void setValue(int value)
           
 void setVelocity(int velocity)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Note

public Note(int value,
            long start,
            Duration duration,
            int velocity,
            int string,
            boolean tiedNote,
            NoteEffect effect)
Method Detail

getStart

public long getStart()
Specified by:
getStart in interface Component

setStart

public void setStart(long start)
Specified by:
setStart in interface Component

getValue

public int getValue()

setValue

public void setValue(int value)

getDuration

public Duration getDuration()
Specified by:
getDuration in interface Component

setDuration

public void setDuration(Duration duration)
Specified by:
setDuration in interface Component

getVelocity

public int getVelocity()

setVelocity

public void setVelocity(int velocity)

getString

public int getString()

setString

public void setString(int string)

isTiedNote

public boolean isTiedNote()

setTiedNote

public void setTiedNote(boolean tiedNote)

getEffect

public NoteEffect getEffect()

setEffect

public void setEffect(NoteEffect effect)

getStartWithRepetitions

public long getStartWithRepetitions()

setStartWithRepetitions

public void setStartWithRepetitions(long startWithRepetitions)

clone

public java.lang.Object clone()
Specified by:
clone in interface Component
Overrides:
clone in class java.lang.Object