private int trackLength;
public NoteArea(Track track) {
- System.out.println("Creating track view...");
setLayout(null);
trackLength = 140;
setPreferredSize(new Dimension(200,140*NOTE_HEIGHT));
y = insets.top + (int)(mn.getTick() / 24) * NOTE_HEIGHT;
height = NOTE_HEIGHT;
// height = (mn.getDuration() / 24) * NOTE_HEIGHT;
- // System.out.println("Comp at: " + x + ", " + y + " is: " + findComponentAt(x + 10, y + 10));
while(findComponentAt(x, y) instanceof MooNoteElement ||
findComponentAt(x, y + height - 1) instanceof MooNoteElement) x += NOTE_WIDTH;
elem.setBounds(x, y, NOTE_WIDTH, height);