dguitar.codecs.guitarPro
Class GPSlide

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

public class GPSlide
extends java.lang.Object

This class describes a slide.

Author:
Matthieu Wipliez

Field Summary
private static GPSlide[] _slides
          The slides.
private static java.lang.String[] _slidesNames
          The slides' names.
private  int _type
          A slide is represented by an integer.
static GPSlide FROM_ABOVE
          Slide into from above.
static GPSlide FROM_BELOW
          Slide into from below.
static GPSlide LEGATO_SLIDE
          Legato slide.
static GPSlide NO_SLIDE
          No slide
static GPSlide OUT_DOWNWARD
          Slide out of downwards.
static GPSlide OUT_UPWARD
          Slide out of upwards.
static GPSlide SHIFT_SLIDE
          Shift slide.
 
Constructor Summary
private GPSlide(int type)
          Creates a new Slide whose type is type.
 
Method Summary
 int getIndex()
          Returns an index-like value starting from 0 for FROM_ABOVE
 java.lang.String toString()
          Returns a string representation of this GPSlide.
static GPSlide valueOf(int type)
          Returns the GPSlide 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 slide is represented by an integer.


FROM_ABOVE

public static final GPSlide FROM_ABOVE
Slide into from above.


FROM_BELOW

public static final GPSlide FROM_BELOW
Slide into from below.


NO_SLIDE

public static final GPSlide NO_SLIDE
No slide


SHIFT_SLIDE

public static final GPSlide SHIFT_SLIDE
Shift slide.


LEGATO_SLIDE

public static final GPSlide LEGATO_SLIDE
Legato slide.


OUT_DOWNWARD

public static final GPSlide OUT_DOWNWARD
Slide out of downwards.


OUT_UPWARD

public static final GPSlide OUT_UPWARD
Slide out of upwards.


_slides

private static GPSlide[] _slides
The slides.


_slidesNames

private static java.lang.String[] _slidesNames
The slides' names.

Constructor Detail

GPSlide

private GPSlide(int type)
Creates a new Slide whose type is type.

Parameters:
type - the slide integer type.
Method Detail

toString

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


valueOf

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

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

getIndex

public int getIndex()
Returns an index-like value starting from 0 for FROM_ABOVE

Returns:
an integer ...0 for FROM_ABOVE..and so on