dguitar.codecs.guitarPro
Class GPBendType

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

public class GPBendType
extends java.lang.Object

This class describes a bend's type read from a Guitar Pro file.
Indeed, a bend can be a simple bend, a bend/release, a prebend, and so on.

Author:
Matthieu Wipliez

Field Summary
private static GPBendType[] _bendTypes
          The bend types.
private static java.lang.String[] _bendTypesNames
          The bend types' names.
private  int _type
          The bend type is represented by an integer.
static GPBendType BEND
          BEND indicates a bend of type Bend.
static GPBendType BEND_RELEASE
          BEND_RELEASE indicates a bend of type Bend and Release.
static GPBendType BEND_RELEASE_BEND
          BEND_RELEASE_BEND indicates a bend of type Bend and Release and Bend.
static GPBendType DIP
          Tremolo bar specific: DIP indicates a bend of type Dip.
static GPBendType DIVE
          Tremolo bar specific: DIVE indicates a bend of type Dive.
static GPBendType INVERTED_DIP
          Tremolo bar specific: INVERTED_DIP indicates a bend of type Inverted dip.
static GPBendType NONE
          NONE indicates a bend of type None.
static GPBendType PREBEND
          PREBEND indicates a bend of type Prebend.
static GPBendType PREBEND_RELEASE
          PREBEND_RELEASE indicates a bend of type Prebend and Release.
static GPBendType RELEASE_DOWN
          Tremolo bar specific: RELEASE_DOWN indicates a bend of type Release (down).
static GPBendType RELEASE_UP
          Tremolo bar specific: RELEASE_UP indicates a bend of type Release (up).
static GPBendType RETURN
          Tremolo bar specific: RETURN indicates a bend of type Return.
 
Constructor Summary
private GPBendType(int type)
          Creates a new BendType whose type is type.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if the object equals this.
 java.lang.String toString()
          Returns a string representation of this GPBendType.
static GPBendType valueOf(int type)
          Returns the GPBendType associated with the value type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_type

private int _type
The bend type is represented by an integer.


NONE

public static final GPBendType NONE
NONE indicates a bend of type None.


BEND

public static final GPBendType BEND
BEND indicates a bend of type Bend.


BEND_RELEASE

public static final GPBendType BEND_RELEASE
BEND_RELEASE indicates a bend of type Bend and Release.


BEND_RELEASE_BEND

public static final GPBendType BEND_RELEASE_BEND
BEND_RELEASE_BEND indicates a bend of type Bend and Release and Bend.


PREBEND

public static final GPBendType PREBEND
PREBEND indicates a bend of type Prebend.


PREBEND_RELEASE

public static final GPBendType PREBEND_RELEASE
PREBEND_RELEASE indicates a bend of type Prebend and Release.


DIP

public static final GPBendType DIP
Tremolo bar specific: DIP indicates a bend of type Dip.


DIVE

public static final GPBendType DIVE
Tremolo bar specific: DIVE indicates a bend of type Dive.


RELEASE_UP

public static final GPBendType RELEASE_UP
Tremolo bar specific: RELEASE_UP indicates a bend of type Release (up).


INVERTED_DIP

public static final GPBendType INVERTED_DIP
Tremolo bar specific: INVERTED_DIP indicates a bend of type Inverted dip.


RETURN

public static final GPBendType RETURN
Tremolo bar specific: RETURN indicates a bend of type Return.


RELEASE_DOWN

public static final GPBendType RELEASE_DOWN
Tremolo bar specific: RELEASE_DOWN indicates a bend of type Release (down).


_bendTypes

private static GPBendType[] _bendTypes
The bend types.


_bendTypesNames

private static java.lang.String[] _bendTypesNames
The bend types' names.

Constructor Detail

GPBendType

private GPBendType(int type)
Creates a new BendType whose type is type.

Parameters:
type - the bend type
Method Detail

equals

public boolean equals(java.lang.Object o)
Returns true if the object equals this.


toString

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


valueOf

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

Parameters:
type - the bend's type integer value.
Returns:
the bend's type associated.