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

« back to all changes in this revision

Viewing changes to src/org/herac/tuxguitar/song/models/TimeSignature.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2007-02-04 01:41:23 UTC
  • Revision ID: james.westby@ubuntu.com-20070204014123-9pv7okph0iaiqkvw
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Created on 29-nov-2005
 
3
 *
 
4
 * TODO To change the template for this generated file go to
 
5
 * Window - Preferences - Java - Code Style - Code Templates
 
6
 */
 
7
package org.herac.tuxguitar.song.models;
 
8
 
 
9
import java.io.Serializable;
 
10
 
 
11
/**
 
12
 * @author julian
 
13
 *
 
14
 * TODO To change the template for this generated type comment go to
 
15
 * Window - Preferences - Java - Code Style - Code Templates
 
16
 */
 
17
public class TimeSignature implements Serializable{
 
18
    private Duration denominator;
 
19
    private int numerator;
 
20
    
 
21
    public TimeSignature(int numerator,Duration denominator){
 
22
        this.numerator = numerator;
 
23
        this.denominator = denominator;        
 
24
    }
 
25
    
 
26
    
 
27
 
 
28
    public int getNumerator() {
 
29
        return numerator;
 
30
    }
 
31
    public void setNumerator(int numerator) {
 
32
        this.numerator = numerator;
 
33
    }
 
34
 
 
35
    
 
36
    
 
37
    public Duration getDenominator() {
 
38
        return denominator;
 
39
    }
 
40
    public void setDenominator(Duration denominator) {
 
41
        this.denominator = denominator;
 
42
    }
 
43
    public Object clone(){
 
44
        return new TimeSignature(getNumerator(),(Duration)getDenominator().clone());
 
45
    }
 
46
}