From: Einar Pehrson Date: Tue, 13 May 2003 00:59:46 +0000 (+0000) Subject: Changed MooNoteElement constructor X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=commitdiff_plain;h=c54c8150061571a2aaf4ea81e027498b6bc248a7 Changed MooNoteElement constructor --- 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.