~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/TEChord.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 TEChord {
 
4
        
 
5
        private byte[] strings;
 
6
        private String name;
 
7
        
 
8
        public TEChord(byte[] strings,String name){
 
9
                this.strings = strings;
 
10
                this.name = name;
 
11
        }
 
12
        
 
13
        public String getName() {
 
14
                return this.name;
 
15
        }
 
16
        
 
17
        public byte[] getStrings() {
 
18
                return this.strings;
 
19
        }
 
20
        
 
21
        public String toString(){
 
22
                String string = new String("[CHORD]");
 
23
                string += "\n     Name:       " + getName();
 
24
                for(int i = 0; i < this.strings.length; i ++){
 
25
                        if(this.strings[i] != -1){
 
26
                                string += "\n     String " + (i + 1) + ":    " + this.strings[i];
 
27
                        }
 
28
                }
 
29
                return string;
 
30
        }
 
31
}