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
}
*/
- g2.drawString(notePitch, 1, 9);
- g2.drawString("" + noteVelocity, 21, 9);
+ g2.drawString(notePitch, 1, 8);
+ g2.drawString("" + noteVelocity, 21, 8);
}
/**
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.
* 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);
}
}