dguitar.codecs.guitarPro
Class GPBend

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

public class GPBend
extends java.lang.Object

This class describes a Bend read from a Guitar Pro file.
A Bend is defined by its type, its height, and points that define how the bend is to be played.

Author:
Matthieu Wipliez

Field Summary
private  java.util.List _points
          A list of points the bend is constitued of.
private  GPBendType _type
          The bend type (bend, bend and release,...).
private  int _value
          The bend height
 
Constructor Summary
GPBend()
          Creates a new Bend
 
Method Summary
 java.util.List getPoints()
          Returns this bend's points.
 GPBendType getType()
          Returns this bend's type.
 int getValue()
          Returns this bend's value.
 void setType(GPBendType type)
          Sets the type of this bend.
 void setValue(int value)
          Sets this bend's value.
 java.lang.String toString()
          Returns a string representation of the Bend.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_points

private java.util.List _points
A list of points the bend is constitued of.


_type

private GPBendType _type
The bend type (bend, bend and release,...).

See Also:
GPBendType

_value

private int _value
The bend height

Constructor Detail

GPBend

public GPBend()
Creates a new Bend

Method Detail

getPoints

public java.util.List getPoints()
Returns this bend's points.

Returns:
the points.

getType

public GPBendType getType()
Returns this bend's type.

Returns:
this bend's type.
See Also:
GPBendType

getValue

public int getValue()
Returns this bend's value.

Returns:
this bend's value.

setType

public void setType(GPBendType type)
Sets the type of this bend.

Parameters:
type - this bend's type
See Also:
GPBendType

setValue

public void setValue(int value)
Sets this bend's value.

Parameters:
value - The value to set.

toString

public java.lang.String toString()
Returns a string representation of the Bend.