~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/TEComponentChord.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.io.tef.base;
 
2
 
 
3
public class TEComponentChord extends TEComponent{
 
4
        
 
5
        private int chord;
 
6
        
 
7
        public TEComponentChord(int position,int measure, int string, int chord) {
 
8
                super(position, measure, string);
 
9
                this.chord = chord;
 
10
        }
 
11
        
 
12
        public int getChord() {
 
13
                return this.chord;
 
14
        }
 
15
        
 
16
        public String toString(){
 
17
                String string = new String("[NOTE]");
 
18
                string += "\n     Measure:   " + getMeasure();
 
19
                string += "\n     Position:  " + getPosition();
 
20
                string += "\n     String:    " + getString();
 
21
                string += "\n     Chord:     " + getChord();
 
22
                return string;
 
23
        }
 
24
}