abc4j API Specification

abc.notation
Class RepeatBarLine

java.lang.Object
  extended by abc.notation.BarLine
      extended by abc.notation.RepeatBarLine
All Implemented Interfaces:
MusicElement

public class RepeatBarLine
extends BarLine
implements MusicElement

A special bar line that enables you to repeat part of music from a tune.


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.

abc4j API Specification

Submit a bug or feature