dguitar.codecs.guitarPro
Class GPChordNote

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

public class GPChordNote
extends java.lang.Object

This class describes a note belonging to a chord diagram.

Author:
Matthieu Wipliez

Field Summary
private static java.lang.String[] _chordNames
          The allowed chord notes names.
private static GPChordNote[] _chordNotes
          The allowed chord notes.
private  int _type
          A chord note is represented by an integer.
static GPChordNote A
          A.
static GPChordNote A_SHARP
          A sharp.
static GPChordNote B
          B.
static GPChordNote C
          C.
static GPChordNote C_SHARP
          C sharp.
static GPChordNote D
          D.
static GPChordNote D_SHARP
          D sharp.
static GPChordNote E
          E.
static GPChordNote F
          F.
static GPChordNote F_SHARP
          F sharp.
static GPChordNote G
          G.
static GPChordNote G_SHARP
          G sharp.
static GPChordNote USER
          User.
 
Constructor Summary
private GPChordNote(int type)
          Creates a new GPChordNote whose type is type.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of this GPChordNote.
static GPChordNote valueOf(int value)
          Returns the GPChordNote 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 chord note is represented by an integer.


USER

public static final GPChordNote USER
User.


C

public static final GPChordNote C
C.


C_SHARP

public static final GPChordNote C_SHARP
C sharp.


D

public static final GPChordNote D
D.


D_SHARP

public static final GPChordNote D_SHARP
D sharp.


E

public static final GPChordNote E
E.


F

public static final GPChordNote F
F.


F_SHARP

public static final GPChordNote F_SHARP
F sharp.


G

public static final GPChordNote G
G.


G_SHARP

public static final GPChordNote G_SHARP
G sharp.


A

public static final GPChordNote A
A.


A_SHARP

public static final GPChordNote A_SHARP
A sharp.


B

public static final GPChordNote B
B.


_chordNotes

private static GPChordNote[] _chordNotes
The allowed chord notes.


_chordNames

private static java.lang.String[] _chordNames
The allowed chord notes names.

Constructor Detail

GPChordNote

private GPChordNote(int type)
Creates a new GPChordNote whose type is type.

Parameters:
type - the GPChordNote's type
Method Detail

toString

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


valueOf

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

Parameters:
value - the chord note integer value.
Returns:
the chord note object associated.