dguitar.codecs.guitarPro
Class GPTonalityType

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

public class GPTonalityType
extends java.lang.Object

This class describes a tonality type.

Author:
Matthieu Wipliez

Field Summary
private static GPTonalityType[] _tonalityTypes
          The tonality types.
private static java.lang.String[] _tonalityTypeStrings
          The tonality types's names.
private  int _type
          A tonality type is represented by an integer.
static GPTonalityType AUGMENTED
          Diminished.
static GPTonalityType DIMINISHED
          Augmented.
static GPTonalityType PERFECT
          Perfect.
 
Constructor Summary
private GPTonalityType(int type)
          Creates a new TonalityType whose type is type.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of this GPTonality
static GPTonalityType valueOf(int type)
          Returns the GPTonalityType 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 tonality type is represented by an integer.


PERFECT

public static final GPTonalityType PERFECT
Perfect.


DIMINISHED

public static final GPTonalityType DIMINISHED
Augmented.


AUGMENTED

public static final GPTonalityType AUGMENTED
Diminished.


_tonalityTypes

private static GPTonalityType[] _tonalityTypes
The tonality types.


_tonalityTypeStrings

private static java.lang.String[] _tonalityTypeStrings
The tonality types's names.

Constructor Detail

GPTonalityType

private GPTonalityType(int type)
Creates a new TonalityType whose type is type.

Parameters:
type -
Method Detail

toString

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


valueOf

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

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