dguitar.codecs.guitarPro
Class GPVibrato

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

public class GPVibrato
extends java.lang.Object

This class describes a vibrato.

Author:
Matthieu Wipliez

Field Summary
private  int _type
          A vibrato is represented by an integer.
private static GPVibrato[] _vibratos
          The vibratos.
private static java.lang.String[] _vibratosNames
          The vibratos' names.
static GPVibrato AVERAGE
          Average.
static GPVibrato FAST
          Fast.
static GPVibrato NONE
          None.
static GPVibrato SLOW
          Slow.
 
Constructor Summary
private GPVibrato(int type)
          Creates a new GPVibrato whose type is type.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of this GPVibrato.
static GPVibrato valueOf(int type)
          Returns the GPVibrato 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 vibrato is represented by an integer.


NONE

public static final GPVibrato NONE
None.


FAST

public static final GPVibrato FAST
Fast.


AVERAGE

public static final GPVibrato AVERAGE
Average.


SLOW

public static final GPVibrato SLOW
Slow.


_vibratos

private static GPVibrato[] _vibratos
The vibratos.


_vibratosNames

private static java.lang.String[] _vibratosNames
The vibratos' names.

Constructor Detail

GPVibrato

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

Parameters:
type - this vibrato's integer type.
Method Detail

toString

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


valueOf

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

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