]> ruin.nu Git - moosique.git/commitdiff
Changed MooNoteElement constructor
authorEinar Pehrson <einarp@itstud.chalmers.se>
Tue, 13 May 2003 00:59:46 +0000 (00:59 +0000)
committerEinar Pehrson <einarp@itstud.chalmers.se>
Tue, 13 May 2003 00:59:46 +0000 (00:59 +0000)
MooNoteElement.java
MooTrackView.java

index beb5702b0467b663f102f2482e73cf75cbcb96fb..f64e082c16884aa0f9382c8f2ba9380658161c6a 100644 (file)
@@ -16,9 +16,10 @@ public class MooNoteElement extends JPanel {
 
        /** 
         * Creates a new note element.
-        * @param mn The note that will be graphically represented
+        * @param mn    the note that will be graphically represented
+        * @param rows  the number of rows that the note will occupy
         */
-       public MooNoteElement (MooNote mn) {
+       public MooNoteElement (MooNote mn, int rows) {
                note = mn;
        }
 
index 81384425b7289063262d4968546aab0033cdfb6b..a9a41d9f127a9c6a8871b5b8515c46cfcd9d1aea 100644 (file)
@@ -89,7 +89,7 @@ public class MooTrackView extends JPanel implements ActionListener {
                                if (note instanceof MooNote) {
                                        // Adds the note element to the note area.
                                        MooNote mn = (MooNote)note;
-                                       elem = new MooNoteElement(mn);
+                                       elem = new MooNoteElement(mn, mn.getDuration() / 24);
                                        add(elem);
 
                                        // Moves the note element to the appropriate place.