abc.notation
Class RepeatBarLine

java.lang.Object
  extended byabc.notation.BarLine
      extended byabc.notation.RepeatBarLine
All Implemented Interfaces:
ScoreElementInterface

public class RepeatBarLine
extends BarLine
implements ScoreElementInterface

A special bar line that enables you to repeat part of the score.


Field Summary
 
Fields inherited from class abc.notation.BarLine
REPEAT_CLOSE, REPEAT_OPEN, SIMPLE
 
Constructor Summary
RepeatBarLine(byte repeatsNumber)
          Creates a new repeat bar line.
 
Method Summary
 byte getRepeatNumber()
          Returns the number of times the repeat should occur.
 java.lang.String toString()
          Returns a string representation of this repeat barline.
 
Methods inherited from class abc.notation.BarLine
convertToBarLine, getType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepeatBarLine

public RepeatBarLine(byte repeatsNumber)
Creates a new repeat bar line.

Parameters:
repeatsNumber - The number of times the repeat should occur.
Method Detail

getRepeatNumber

public byte getRepeatNumber()
Returns the number of times the repeat should occur.

Returns:
the number of times the repeat should occur.

toString

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

Overrides:
toString in class BarLine
Returns:
A string representation of this repeat barline.