~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/TERhythm.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 TERhythm {
 
4
        
 
5
        private String name;
 
6
        private int volume;
 
7
        private int instrument;
 
8
        
 
9
        public TERhythm(String name, int volume, int instrument) {
 
10
                this.name = name;
 
11
                this.volume = volume;
 
12
                this.instrument = instrument;
 
13
        }
 
14
        
 
15
        public int getInstrument() {
 
16
                return this.instrument;
 
17
        }
 
18
        
 
19
        public String getName() {
 
20
                return this.name;
 
21
        }
 
22
        
 
23
        public int getVolume() {
 
24
                return this.volume;
 
25
        }
 
26
        
 
27
        public String toString(){
 
28
                String string = new String("[RHYTHM]     ");
 
29
                string += "\n     Name:       " + getName();
 
30
                string += "\n     Volume:     " + getVolume();
 
31
                string += "\n     Instrument: " + getInstrument();
 
32
                return string;
 
33
        }
 
34
}