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

« back to all changes in this revision

Viewing changes to TuxGuitar-tef/src/org/herac/tuxguitar/io/tef/base/TEComponentNote.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.io.tef.base;
 
2
 
 
3
public class TEComponentNote extends TEComponent{
 
4
        
 
5
        private int fret;
 
6
        
 
7
        private int duration;
 
8
        
 
9
        private int dynamic;
 
10
        
 
11
        private int effect;
 
12
        
 
13
        public TEComponentNote(int position,int measure, int string, int fret, int duration, int dynamic, int effect) {
 
14
                super(position, measure, string);
 
15
                this.fret = fret;
 
16
                this.duration = duration;
 
17
                this.dynamic = dynamic;
 
18
                this.effect = effect;
 
19
        }
 
20
        
 
21
        public int getDuration() {
 
22
                return this.duration;
 
23
        }
 
24
        
 
25
        public int getDynamic() {
 
26
                return this.dynamic;
 
27
        }
 
28
        
 
29
        public int getEffect() {
 
30
                return this.effect;
 
31
        }
 
32
        
 
33
        public int getFret() {
 
34
                return this.fret;
 
35
        }
 
36
        
 
37
        public String toString(){
 
38
                String string = new String("[NOTE]");
 
39
                string += "\n     Measure:   " + getMeasure();
 
40
                string += "\n     Position:  " + getPosition();
 
41
                string += "\n     String:    " + getString();
 
42
                string += "\n     Fret:      " + getFret();
 
43
                
 
44
                return string;
 
45
        }
 
46
}