dguitar.codecs.guitarPro
Class GPGraceNote

java.lang.Object
  extended bydguitar.codecs.guitarPro.GPGraceNote

public class GPGraceNote
extends java.lang.Object

This class describes a grace note.

Author:
Matthieu Wipliez

Field Summary
private  GPDuration _duration
          The duration of the grace note.
private  GPDynamic _dynamic
          The dynamic of the grace note.
private  int _fret
          The fret number of the grace note.
private  GPGraceNoteTransition _transition
          The transition of the grace note.
 
Constructor Summary
GPGraceNote()
          Creates a new GPGraceNote.
 
Method Summary
 GPDuration getDuration()
          Returns this grace note's duration.
 GPDynamic getDynamic()
          Returns this grace note's dynamic.
 int getFret()
          Returns this grace note's fret.
 GPGraceNoteTransition getTransition()
          Returns this grace note's transition.
 void setDuration(GPDuration duration)
          Sets this grace note's duration.
 void setDynamic(GPDynamic dynamic)
          Sets this grace note's dynamic.
 void setFret(int fret)
          Sets this grace note's fret.
 void setTransition(GPGraceNoteTransition transition)
          Sets this grace note's transition.
 java.lang.String toString()
          Returns a string representation of the GPGraceNote.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_duration

private GPDuration _duration
The duration of the grace note.


_dynamic

private GPDynamic _dynamic
The dynamic of the grace note.


_fret

private int _fret
The fret number of the grace note.


_transition

private GPGraceNoteTransition _transition
The transition of the grace note.

Constructor Detail

GPGraceNote

public GPGraceNote()
Creates a new GPGraceNote.

Method Detail

getDuration

public GPDuration getDuration()
Returns this grace note's duration.

Returns:
this grace note's duration.
See Also:
GPDuration

getDynamic

public GPDynamic getDynamic()
Returns this grace note's dynamic.

Returns:
this grace note's dynamic.
See Also:
GPDynamic

getFret

public int getFret()
Returns this grace note's fret.

Returns:
this grace note's fret.

getTransition

public GPGraceNoteTransition getTransition()
Returns this grace note's transition.

Returns:
this grace note's transition.
See Also:
GPGraceNoteTransition

setDuration

public void setDuration(GPDuration duration)
Sets this grace note's duration.

Parameters:
duration - the duration to set.
See Also:
GPDuration

setDynamic

public void setDynamic(GPDynamic dynamic)
Sets this grace note's dynamic.

Parameters:
dynamic - the dynamic to set.
See Also:
GPDynamic

setFret

public void setFret(int fret)
Sets this grace note's fret.

Parameters:
fret - the fret to set.

setTransition

public void setTransition(GPGraceNoteTransition transition)
Sets this grace note's transition.

Parameters:
transition - the transition to set.
See Also:
GPGraceNoteTransition

toString

public java.lang.String toString()
Returns a string representation of the GPGraceNote.