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

« back to all changes in this revision

Viewing changes to src/org/herac/tuxguitar/song/models/effects/TrillEffect.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mto: (5.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080619003030-h719szrhsngou7c6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package org.herac.tuxguitar.song.models.effects;
2
 
 
3
 
import org.herac.tuxguitar.song.models.Duration;
4
 
 
5
 
public class TrillEffect {
6
 
        
7
 
        private int fret;                       
8
 
        private Duration duration;
9
 
        
10
 
        public TrillEffect(int fret, int value) {
11
 
                this(fret,new Duration(value));
12
 
        }
13
 
        
14
 
        public TrillEffect(int fret, Duration duration) {
15
 
                this.fret = fret;
16
 
                this.duration = duration;
17
 
        }
18
 
 
19
 
        public int getFret() {
20
 
                return fret;
21
 
        }
22
 
 
23
 
        public void setFret(int fret) {
24
 
                this.fret = fret;
25
 
        }       
26
 
        
27
 
        public Duration getDuration() {
28
 
                return duration;
29
 
        }
30
 
 
31
 
        public void setDuration(Duration duration) {
32
 
                this.duration = duration;
33
 
        }
34
 
        
35
 
        public Object clone(){
36
 
                return new TrillEffect(fret,getDuration().getValue());
37
 
        }
38
 
}