From c54c8150061571a2aaf4ea81e027498b6bc248a7 Mon Sep 17 00:00:00 2001 From: Einar Pehrson Date: Tue, 13 May 2003 00:59:46 +0000 Subject: [PATCH] Changed MooNoteElement constructor --- MooNoteElement.java | 5 +++-- MooTrackView.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MooNoteElement.java b/MooNoteElement.java index beb5702..f64e082 100644 --- a/MooNoteElement.java +++ b/MooNoteElement.java @@ -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; } diff --git a/MooTrackView.java b/MooTrackView.java index 8138442..a9a41d9 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -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. -- 2.39.2