X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooTrackView.java;h=1d46e09d258b227546816e0efd8eaabb1201f8f8;hb=5508e288626b65061da51e75d318516dbccdd5bb;hp=b06355430b125be17116ef370a5c26a761f55563;hpb=cb597eafcb8d01784857381580ae5f35b5427e63;p=moosique.git diff --git a/MooTrackView.java b/MooTrackView.java index b063554..1d46e09 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -14,6 +14,7 @@ import java.util.*; public class MooTrackView extends JPanel { private Track track; + private MooTrackTitle; private Rectangle box; private JPopupMenu popup; @@ -23,9 +24,10 @@ public class MooTrackView extends JPanel { protected static int extraHeight = 0; public static final int NOTE_HEIGHT = 10, NOTE_WIDTH = 40, VIEW_WIDTH = 200; - public MooTrackView (Track track) { + public MooTrackView (Track track, MooTrackTitle title;) { super(true); this.track = track; + this.title = title; // Configures panel setBackground(Color.white); @@ -66,7 +68,7 @@ public class MooTrackView extends JPanel { addKeyListener(new MooKeyboard()); } - public void layoutElementMooNoteElement elem, boolean old){ + public void layoutElement(MooNoteElement elem, boolean old){ // If the element is currently in the view, removes its coordinates from the list. Rectangle r = new Rectangle(); if (old){ @@ -101,7 +103,6 @@ public class MooTrackView extends JPanel { viewLength = y + height; if(old)setPreferredSize(new Dimension(VIEW_WIDTH, viewLength + extraHeight)); } - } public Track getTrack() { @@ -169,8 +170,9 @@ public class MooTrackView extends JPanel { public void actionPerformed(ActionEvent e) { Object source = e.getSource(); if (source == popupAdd) { - addNote(new MooNote()); + //addNote(new MooNote()); // int channel, int pitch, int velocity, long timestamp, int duration + } } } } \ No newline at end of file