~ubuntu-branches/ubuntu/oneiric/tuxguitar/oneiric

« back to all changes in this revision

Viewing changes to TuxGuitar/src/org/herac/tuxguitar/gui/editors/tab/TGFactoryImpl.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mfrom: (1.1.1 upstream) (2.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080619003030-agens2gvd5m4dacu
New upstream release (Closes: #481728) also (LP: #176979, #212207)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.herac.tuxguitar.gui.editors.tab;
 
2
 
 
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;
 
12
 
 
13
public class TGFactoryImpl extends TGFactory{
 
14
        
 
15
        public TGFactoryImpl(){
 
16
                super();
 
17
        }
 
18
        
 
19
        public TGMeasureHeader newHeader(){
 
20
                return new TGMeasureHeaderImpl(this);
 
21
        }
 
22
        
 
23
        public TGTrack newTrack(){
 
24
                return new TGTrackImpl(this);
 
25
        }
 
26
        
 
27
        public TGMeasure newMeasure(TGMeasureHeader header){
 
28
                return new TGMeasureImpl(header);
 
29
        }
 
30
        
 
31
        public TGNote newNote(){
 
32
                return new TGNoteImpl(this);
 
33
        }
 
34
        
 
35
        public TGBeat newBeat(){
 
36
                return new TGBeatImpl(this);
 
37
        }
 
38
        
 
39
        public TGLyric newLyric(){
 
40
                return new TGLyricImpl();
 
41
        }
 
42
        
 
43
        public TGChord newChord(int length){
 
44
                return new TGChordImpl(length);
 
45
        }
 
46
        
 
47
        public TGText newText(){
 
48
                return new TGTextImpl();
 
49
        }
 
50
}