abc4j API Specification

abc.notation
Class MultiPartsDefinition

java.lang.Object
  extended by abc.notation.RepeatedPartAbstract
      extended by abc.notation.MultiPartsDefinition
All Implemented Interfaces:
java.lang.Cloneable

public class MultiPartsDefinition
extends RepeatedPartAbstract
implements java.lang.Cloneable

This class describes the way a multipart music tune is defined.


Constructor Summary
MultiPartsDefinition()
          Creates a new multi part definition.
MultiPartsDefinition(MultiPartsDefinition root)
          Copy constructor
 
Method Summary
 void addPart(RepeatedPartAbstract p)
          Adds a new part to this multi part.
 java.lang.Object clone()
           
 java.util.Vector getPartsAsRepeatedOnceVector()
           
 Part[] toPartsArray()
          Returns this multipart as an array of singles parts.
 
Methods inherited from class abc.notation.RepeatedPartAbstract
getNumberOfRepeats, setNumberOfRepeats
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPartsDefinition

public MultiPartsDefinition()
Creates a new multi part definition.


MultiPartsDefinition

public MultiPartsDefinition(MultiPartsDefinition root)
Copy constructor

Method Detail

addPart

public void addPart(RepeatedPartAbstract p)
Adds a new part to this multi part.

Parameters:
p - The part that has to be added to the multi part. This part can be a simple Part or another MultiPart (composite definition).

toPartsArray

public Part[] toPartsArray()
Returns this multipart as an array of singles parts. The playing of the multi part would sound the same as the playing of the array of parts.

Specified by:
toPartsArray in class RepeatedPartAbstract
Returns:
An array of singles parts that would sound the same as the playing of this multipart.

getPartsAsRepeatedOnceVector

public java.util.Vector getPartsAsRepeatedOnceVector()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

abc4j API Specification

Submit a bug or feature