]> ruin.nu Git - moosique.git/blobdiff - MooNoteElement.java
*** empty log message ***
[moosique.git] / MooNoteElement.java
index 6f372349e5372c2e657f71333366075c0d4dfe50..8d8778d369e57a18b778f39734a9158644b50385 100644 (file)
@@ -59,6 +59,14 @@ public class MooNoteElement extends JPanel {
                return selected;
        }
 
+       /** 
+        * Returns the note of this element.
+        * @return the note
+        */
+       public MooNote getNote() {
+               return note;
+       }
+
        /** 
         * Selects the current NoteElement.
         * @param state if the element should be selected
@@ -85,8 +93,8 @@ public class MooNoteElement extends JPanel {
                }
        */
                
-               g2.drawString(notePitch, 1, 9);
-               g2.drawString("" + noteVelocity, 21, 9);
+               g2.drawString(notePitch, 1, 8);
+               g2.drawString("" + noteVelocity, 21, 8);
        }
 
        /**
@@ -117,18 +125,15 @@ public class MooNoteElement extends JPanel {
                noteVelocity = ""+note.getVelocity();
        }
 
-       /**
-        * Gets the note that is element represents
-        * @return the MooNote object.
-        */
-       public MooNote getNote(){
-               return note;
-       }
-
        /**
         * Listener that checks the mouse actions on this element.
         */
        class MAdapter extends MouseAdapter {
+       
+               public void mouseClicked(MouseEvent e) {
+                       
+               }
+
                /**
                 * Checks if the mouse is pressed.
                 * Pops up the menu if right mousebutton is used.
@@ -178,7 +183,7 @@ public class MooNoteElement extends JPanel {
         * Asks the MooTrackView that it's painted on to remove this element and the note.
         */
        protected void remove(){
-               mtv.removeNote(this, note);
+               mtv.removeNote(this);
        }
 
 }