dguitar.codecs.guitarPro
Class GPPickStroke

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

public class GPPickStroke
extends java.lang.Object

This class describes a pickstroke.

Author:
Matthieu Wipliez

Field Summary
private static GPPickStroke[] _pickStrokes
          The pickstrokes.
private static java.lang.String[] _pickStrokesNames
          The pickstrokes' names.
private  int _type
          A pickstroke is represented by an integer.
static GPPickStroke DOWNWARD
          Downward.
static GPPickStroke NONE
          None.
static GPPickStroke UPWARD
          Upward.
 
Constructor Summary
private GPPickStroke(int type)
          Creates a new PickStroke whose type is type.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of this GPPickStroke.
static GPPickStroke valueOf(int type)
          Returns the GPPickStroke 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 pickstroke is represented by an integer.


NONE

public static final GPPickStroke NONE
None.


UPWARD

public static final GPPickStroke UPWARD
Upward.


DOWNWARD

public static final GPPickStroke DOWNWARD
Downward.


_pickStrokes

private static GPPickStroke[] _pickStrokes
The pickstrokes.


_pickStrokesNames

private static java.lang.String[] _pickStrokesNames
The pickstrokes' names.

Constructor Detail

GPPickStroke

private GPPickStroke(int type)
Creates a new PickStroke whose type is type.

Parameters:
type - the PickStroke type.
Method Detail

toString

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


valueOf

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

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