1
package org.herac.tuxguitar.gui.editors.tab;
3
import org.herac.tuxguitar.song.factory.TGFactory;
4
import org.herac.tuxguitar.song.models.TGBeat;
5
import org.herac.tuxguitar.song.models.TGChord;
6
import org.herac.tuxguitar.song.models.TGLyric;
7
import org.herac.tuxguitar.song.models.TGMeasure;
8
import org.herac.tuxguitar.song.models.TGMeasureHeader;
9
import org.herac.tuxguitar.song.models.TGNote;
10
import org.herac.tuxguitar.song.models.TGText;
11
import org.herac.tuxguitar.song.models.TGTrack;
13
public class TGFactoryImpl extends TGFactory{
15
public TGFactoryImpl(){
19
public TGMeasureHeader newHeader(){
20
return new TGMeasureHeaderImpl(this);
23
public TGTrack newTrack(){
24
return new TGTrackImpl(this);
27
public TGMeasure newMeasure(TGMeasureHeader header){
28
return new TGMeasureImpl(header);
31
public TGNote newNote(){
32
return new TGNoteImpl(this);
35
public TGBeat newBeat(){
36
return new TGBeatImpl(this);
39
public TGLyric newLyric(){
40
return new TGLyricImpl();
43
public TGChord newChord(int length){
44
return new TGChordImpl(length);
47
public TGText newText(){
48
return new TGTextImpl();