dguitar.codecs.guitarPro
Class GPMeasure

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

public class GPMeasure
extends java.lang.Object

This class describes a measure.

Author:
Matthieu Wipliez

Field Summary
private  int _denominator
          Denominator of the measure
private  int _number
          The number of the measure
private  int _numberOfAlternateEnding
          The number of alternate endings of the measure.
private  int _numberOfRepetitions
          The number of repetitions of the measure.
private  int _numerator
          Numerator of the measure
private  GPKey _tonality
          The tonality of this measure.
 boolean hasDoubleBar
          Presence of a double bar.
 GPMarker marker
          The marker possibly associated with this measure.
 boolean repeatStart
          Presence of a beginning of repeat sign.
 
Constructor Summary
GPMeasure()
          Creates a new measure
GPMeasure(GPMeasure original)
          Creates a new Measure with the same numerator/denominator and tonality
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if the given object is equals to this GPMeasure object.
 int getDenominator()
          Returns this measure's denominator.
 int getNumber()
          Returns this measure's number.
 int getNumberOfAlternateEnding()
          Returns this measure's number of alternate endings.
 int getNumberOfRepetitions()
          Returns this measure's number of repetitions.
 int getNumerator()
          Returns this measure's numerator.
 GPKey getTonality()
          Returns this measure's tonality.
 void setDenominator(int denominator)
          Sets this measure's denominator.
 void setNumber(int number)
          Sets this measure's number.
 void setNumberOfAlternateEnding(int numberOfAlternateEnding)
          Sets this measure's number of alternate endings.
 void setNumberOfRepetitions(int numberOfRepetitions)
          Sets this measure's number of repetitions.
 void setNumerator(int numerator)
          Sets this measure's numerator.
 void setTonality(GPKey tonality)
          Sets this measure's tonality.
 java.lang.String toString()
          Returns a string representation of this Measure.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hasDoubleBar

public boolean hasDoubleBar
Presence of a double bar.


marker

public GPMarker marker
The marker possibly associated with this measure.


repeatStart

public boolean repeatStart
Presence of a beginning of repeat sign.


_denominator

private int _denominator
Denominator of the measure


_number

private int _number
The number of the measure


_numberOfAlternateEnding

private int _numberOfAlternateEnding
The number of alternate endings of the measure.


_numberOfRepetitions

private int _numberOfRepetitions
The number of repetitions of the measure.


_numerator

private int _numerator
Numerator of the measure


_tonality

private GPKey _tonality
The tonality of this measure.

Constructor Detail

GPMeasure

public GPMeasure()
Creates a new measure


GPMeasure

public GPMeasure(GPMeasure original)
Creates a new Measure with the same numerator/denominator and tonality

Method Detail

equals

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

See Also:
Object.equals(java.lang.Object)

getDenominator

public int getDenominator()
Returns this measure's denominator.

Returns:
this measure's denominator.

getNumber

public int getNumber()
Returns this measure's number.

Returns:
this measure's number.

getNumberOfAlternateEnding

public int getNumberOfAlternateEnding()
Returns this measure's number of alternate endings.

Returns:
this measure's number of alternate endings.

getNumberOfRepetitions

public int getNumberOfRepetitions()
Returns this measure's number of repetitions.

Returns:
this measure's number of repetitions.

getNumerator

public int getNumerator()
Returns this measure's numerator.

Returns:
this measure's numerator.

getTonality

public GPKey getTonality()
Returns this measure's tonality.

Returns:
this measure's tonality.

setDenominator

public void setDenominator(int denominator)
Sets this measure's denominator.

Parameters:
denominator - the denominator to set.

setNumber

public void setNumber(int number)
Sets this measure's number.

Parameters:
number - the number to set.

setNumberOfAlternateEnding

public void setNumberOfAlternateEnding(int numberOfAlternateEnding)
Sets this measure's number of alternate endings.

Parameters:
numberOfAlternateEnding - the number of alternate endings to set.

setNumberOfRepetitions

public void setNumberOfRepetitions(int numberOfRepetitions)
Sets this measure's number of repetitions.

Parameters:
numberOfRepetitions - the number of repetitions to set.

setNumerator

public void setNumerator(int numerator)
Sets this measure's numerator.

Parameters:
numerator - the numerator to set.

setTonality

public void setTonality(GPKey tonality)
Sets this measure's tonality.

Parameters:
tonality - The tonality to set.

toString

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