1 package org.herac.tuxguitar.song.factory; 2 3 import org.herac.tuxguitar.song.models.TGBeat; 4 import org.herac.tuxguitar.song.models.TGChannel; 5 import org.herac.tuxguitar.song.models.TGChord; 6 import org.herac.tuxguitar.song.models.TGColor; 7 import org.herac.tuxguitar.song.models.TGDuration; 8 import org.herac.tuxguitar.song.models.TGLyric; 9 import org.herac.tuxguitar.song.models.TGMarker; 10 import org.herac.tuxguitar.song.models.TGMeasure; 11 import org.herac.tuxguitar.song.models.TGMeasureHeader; 12 import org.herac.tuxguitar.song.models.TGNote; 13 import org.herac.tuxguitar.song.models.TGNoteEffect; 14 import org.herac.tuxguitar.song.models.TGScale; 15 import org.herac.tuxguitar.song.models.TGSong; 16 import org.herac.tuxguitar.song.models.TGString; 17 import org.herac.tuxguitar.song.models.TGStroke; 18 import org.herac.tuxguitar.song.models.TGTempo; 19 import org.herac.tuxguitar.song.models.TGText; 20 import org.herac.tuxguitar.song.models.TGTimeSignature; 21 import org.herac.tuxguitar.song.models.TGTrack; 22 import org.herac.tuxguitar.song.models.TGDivisionType; 23 import org.herac.tuxguitar.song.models.TGVoice; 24 import org.herac.tuxguitar.song.models.effects.TGEffectBend; 25 import org.herac.tuxguitar.song.models.effects.TGEffectGrace; 26 import org.herac.tuxguitar.song.models.effects.TGEffectHarmonic; 27 import org.herac.tuxguitar.song.models.effects.TGEffectTremoloBar; 28 import org.herac.tuxguitar.song.models.effects.TGEffectTremoloPicking; 29 import org.herac.tuxguitar.song.models.effects.TGEffectTrill; 30 31 public class TGFactory { 32 newSong()33 public TGSong newSong(){ 34 return new TGSong() { 35 //TGSong Implementation 36 }; 37 } 38 newLyric()39 public TGLyric newLyric(){ 40 return new TGLyric(){ 41 //TGLyric Implementation 42 }; 43 } 44 newMarker()45 public TGMarker newMarker(){ 46 return new TGMarker(this){ 47 //TGMarker Implementation 48 }; 49 } 50 newChord(int length)51 public TGChord newChord(int length){ 52 return new TGChord(length){ 53 //TGChord Implementation 54 }; 55 } 56 newScale()57 public TGScale newScale(){ 58 return new TGScale(){ 59 //TGScale Implementation 60 }; 61 } 62 newColor()63 public TGColor newColor(){ 64 return new TGColor(){ 65 //TGColor Implementation 66 }; 67 } 68 newDuration()69 public TGDuration newDuration(){ 70 return new TGDuration(this){ 71 //TGDuration Implementation 72 }; 73 } 74 newDivisionType()75 public TGDivisionType newDivisionType(){ 76 return new TGDivisionType(){ 77 //TGDivisionType Implementation 78 }; 79 } 80 newTimeSignature()81 public TGTimeSignature newTimeSignature(){ 82 return new TGTimeSignature(this){ 83 //TGTimeSignature Implementation 84 }; 85 } 86 newTempo()87 public TGTempo newTempo(){ 88 return new TGTempo(){ 89 //TGTempo Implementation 90 }; 91 } 92 newChannel()93 public TGChannel newChannel(){ 94 return new TGChannel(){ 95 //TGChannel Implementation 96 }; 97 } 98 newTrack()99 public TGTrack newTrack(){ 100 return new TGTrack(this){ 101 //TGTrack Implementation 102 }; 103 } 104 newHeader()105 public TGMeasureHeader newHeader(){ 106 return new TGMeasureHeader(this){ 107 //TGMeasureHeader Implementation 108 }; 109 } 110 newMeasure(TGMeasureHeader header)111 public TGMeasure newMeasure(TGMeasureHeader header){ 112 return new TGMeasure(header){ 113 //TGMeasure Implementation 114 }; 115 } 116 newBeat()117 public TGBeat newBeat(){ 118 return new TGBeat(this){ 119 //TGBeat Implementation 120 }; 121 } 122 newVoice(int index)123 public TGVoice newVoice(int index){ 124 return new TGVoice(this, index){ 125 //TGVoice Implementation 126 }; 127 } 128 newNote()129 public TGNote newNote(){ 130 return new TGNote(this){ 131 //TGNote Implementation 132 }; 133 } 134 newString()135 public TGString newString(){ 136 return new TGString(){ 137 //TGString Implementation 138 }; 139 } 140 newStroke()141 public TGStroke newStroke(){ 142 return new TGStroke(){ 143 //TGString Implementation 144 }; 145 } 146 newText()147 public TGText newText(){ 148 return new TGText(){ 149 //TGString Implementation 150 }; 151 } 152 newEffect()153 public TGNoteEffect newEffect(){ 154 return new TGNoteEffect(){ 155 //TGNoteEffect Implementation 156 }; 157 } 158 newEffectBend()159 public TGEffectBend newEffectBend(){ 160 return new TGEffectBend(){ 161 //TGEffectBend Implementation 162 }; 163 } 164 newEffectTremoloBar()165 public TGEffectTremoloBar newEffectTremoloBar(){ 166 return new TGEffectTremoloBar(){ 167 //TGEffectTremoloBar Implementation 168 }; 169 } 170 newEffectGrace()171 public TGEffectGrace newEffectGrace(){ 172 return new TGEffectGrace(){ 173 //TGEffectGrace Implementation 174 }; 175 } 176 newEffectHarmonic()177 public TGEffectHarmonic newEffectHarmonic(){ 178 return new TGEffectHarmonic(){ 179 //TGEffectHarmonic Implementation 180 }; 181 } 182 newEffectTrill()183 public TGEffectTrill newEffectTrill(){ 184 return new TGEffectTrill(this){ 185 //TGEffectTrill Implementation 186 }; 187 } 188 newEffectTremoloPicking()189 public TGEffectTremoloPicking newEffectTremoloPicking(){ 190 return new TGEffectTremoloPicking(this){ 191 //TGEffectTremoloPicking Implementation 192 }; 193 } 194 } 195