dguitar.codecs.guitarPro
Class GPGraceNoteTransition

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

public class GPGraceNoteTransition
extends java.lang.Object

This class describes the transitions for a grace note.

Author:
Matthieu Wipliez

Field Summary
private static GPGraceNoteTransition[] _transitions
          The transitions.
private static java.lang.String[] _transitionsNames
          The durations' names.
private  int _type
          A grace note transition is represented by an integer.
static GPGraceNoteTransition BEND
          Bend.
static GPGraceNoteTransition HAMMER
          Hammer.
static GPGraceNoteTransition NONE
          None.
static GPGraceNoteTransition SLIDE
          Slide.
 
Constructor Summary
private GPGraceNoteTransition(int type)
          Creates a new GraceNoteTransition whose type is type.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of this GPGraceNoteTransition.
static GPGraceNoteTransition valueOf(int type)
          Returns the GPGraceNoteTransition associated with the value type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_type

private int _type
A grace note transition is represented by an integer.


NONE

public static final GPGraceNoteTransition NONE
None.


SLIDE

public static final GPGraceNoteTransition SLIDE
Slide.


BEND

public static final GPGraceNoteTransition BEND
Bend.


HAMMER

public static final GPGraceNoteTransition HAMMER
Hammer.


_transitions

private static GPGraceNoteTransition[] _transitions
The transitions.


_transitionsNames

private static java.lang.String[] _transitionsNames
The durations' names.

Constructor Detail

GPGraceNoteTransition

private GPGraceNoteTransition(int type)
Creates a new GraceNoteTransition whose type is type.

Parameters:
type - the grace note transition type as an integer.
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this GPGraceNoteTransition.


valueOf

public static GPGraceNoteTransition valueOf(int type)
Returns the GPGraceNoteTransition associated with the value type.

Parameters:
type - the grace note transition integer value.
Returns:
the grace note transition associated.