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

« back to all changes in this revision

Viewing changes to src/org/herac/tuxguitar/song/models/Marker.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;
2
 
 
3
 
public class Marker {
4
 
        private static final RGBColor DEFAULT_COLOR = RGBColor.RED;
5
 
        private static final String DEFAULT_TITLE = "Untitled";
6
 
        
7
 
        private int measure;
8
 
        private String title;
9
 
        private RGBColor color;
10
 
        
11
 
        public Marker() {
12
 
        }               
13
 
                
14
 
        public Marker(int measure) {
15
 
                this(measure,DEFAULT_TITLE);
16
 
        }               
17
 
        
18
 
        public Marker(int measure, String title) {
19
 
                this(measure,title,DEFAULT_COLOR);
20
 
        }       
21
 
        
22
 
        public Marker(int measure, String title, RGBColor color) {
23
 
                this.measure = measure;
24
 
                this.title = title;
25
 
                this.color = color;
26
 
        }
27
 
        
28
 
        public int getMeasure() {
29
 
                return measure;
30
 
        }
31
 
        public void setMeasure(int measure) {
32
 
                this.measure = measure;
33
 
        }
34
 
 
35
 
        public String getTitle() {
36
 
                return title;
37
 
        }
38
 
        public void setTitle(String title) {
39
 
                this.title = title;
40
 
        }
41
 
                
42
 
        public RGBColor getColor() {
43
 
                return color;
44
 
        }
45
 
        public void setColor(RGBColor color) {
46
 
                this.color = color;
47
 
        }
48
 
        
49
 
        public Object clone(){
50
 
                return new Marker(getMeasure(),getTitle(),(RGBColor)getColor().clone());
51
 
        }
52
 
}