+ * @param mn The note that will be graphically represented
+ */
+ public MooNoteElement (MooNote mn) {
+ note = mn;
+ setPreferredSize(new Dimension(20,20));
+ setFont(new Font("Helvetica", Font.PLAIN, 10));
+
+ class MouseList implements MouseListener{
+ public void mouseClicked(MouseEvent event){
+ //Bring upp dialog to edit note.
+ }
+
+ public void mouseEntered(MouseEvent event){
+ //Show note props in statusbar?
+ }
+
+ public void mouseExited(MouseEvent event){
+ //Reset statusbar?
+ }
+
+ public void mousePressed(MouseEvent event){ }
+
+ public void mouseReleased(MouseEvent event){}
+ };
+ MouseListener listener = new MouseList();
+ addMouseListener(listener);
+ }
+
+ /**
+ * Returns true if the current NoteElement is selected, otherwise false.
+ * @return if the element is selected
+ */
+ public boolean isSelected() {
+ return selected;
+ }
+
+ /**
+ * Selects the current NoteElement.
+ * @param state if the element should be selected
+ */
+ public void setSelected(boolean state) {
+ selected = state;
+ }
+
+ /**
+ *