dguitar.codecs.guitarPro
Class GPFingering

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

public class GPFingering
extends java.lang.Object

This class describes the fingering for a chord.

Author:
Matthieu Wipliez

Field Summary
private static GPFingering[] _fingerings
          The fingerings.
private static java.lang.String[] _fingeringsNames
          The fingerings' names.
private  int _type
          A Fingering is represented by an integer.
static GPFingering INDEX
          Index.
static GPFingering LITTLE_FINGER
          Little finger.
static GPFingering MIDDLE_FINGER
          Middle finger.
static GPFingering NO_FINGER
          X or no finger.
static GPFingering RING_FINGER
          Ring finger.
static GPFingering THUMB
          Thumb.
static GPFingering UNKNOWN
          Unknown finger.
 
Constructor Summary
private GPFingering(int type)
          Creates a new Fingering whose type is type.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of a Fingering.
static GPFingering valueOf(int type)
          Returns the GPFingering 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 Fingering is represented by an integer.


UNKNOWN

public static final GPFingering UNKNOWN
Unknown finger.


NO_FINGER

public static final GPFingering NO_FINGER
X or no finger.


THUMB

public static final GPFingering THUMB
Thumb.


INDEX

public static final GPFingering INDEX
Index.


MIDDLE_FINGER

public static final GPFingering MIDDLE_FINGER
Middle finger.


RING_FINGER

public static final GPFingering RING_FINGER
Ring finger.


LITTLE_FINGER

public static final GPFingering LITTLE_FINGER
Little finger.


_fingerings

private static GPFingering[] _fingerings
The fingerings.


_fingeringsNames

private static java.lang.String[] _fingeringsNames
The fingerings' names.

Constructor Detail

GPFingering

private GPFingering(int type)
Creates a new Fingering whose type is type.

Parameters:
type -
Method Detail

toString

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


valueOf

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

Parameters:
type - the fingering integer value.
Returns:
the fingering object associated.