1
package org.herac.tuxguitar.song.models.effects;
3
import org.herac.tuxguitar.song.factory.TGFactory;
4
import org.herac.tuxguitar.song.models.TGDuration;
6
public abstract class TGEffectTrill {
9
private TGDuration duration;
11
public TGEffectTrill(TGFactory factory) {
13
this.duration = factory.newDuration();
16
public int getFret() {
20
public void setFret(int fret) {
24
public TGDuration getDuration() {
28
public void setDuration(TGDuration duration) {
29
this.duration = duration;
32
public TGEffectTrill clone(TGFactory factory){
33
TGEffectTrill effect = factory.newEffectTrill();
34
effect.setFret(getFret());
35
effect.getDuration().setValue(getDuration().getValue());
36
effect.getDuration().setDotted(getDuration().isDotted());
37
effect.getDuration().setDoubleDotted(getDuration().isDoubleDotted());
38
effect.getDuration().getTupleto().setEnters(getDuration().getTupleto().getEnters());
39
effect.getDuration().getTupleto().setTimes(getDuration().getTupleto().getTimes());