private Rectangle box;
private int ticksPerSixteenth, popupY = 0;
private boolean leftMouseButtonPressed = false;
private Rectangle box;
private int ticksPerSixteenth, popupY = 0;
private boolean leftMouseButtonPressed = false;
protected static int viewLength = 0;
protected static int extraHeight = 0;
public static final int NOTE_HEIGHT = 10, NOTE_WIDTH = 40, VIEW_WIDTH = 200;
protected static int viewLength = 0;
protected static int extraHeight = 0;
public static final int NOTE_HEIGHT = 10, NOTE_WIDTH = 40, VIEW_WIDTH = 200;
* Creates note elements for all MooNotes in the track, and places them in the appropriate place.
*/
public void placeNoteElements() {
* Creates note elements for all MooNotes in the track, and places them in the appropriate place.
*/
public void placeNoteElements() {
x = insets.left;
y = insets.top + (int)((mn.getTick() * NOTE_HEIGHT) / ticksPerSixteenth);
height = (mn.getDuration() * NOTE_HEIGHT) / ticksPerSixteenth;
x = insets.left;
y = insets.top + (int)((mn.getTick() * NOTE_HEIGHT) / ticksPerSixteenth);
height = (mn.getDuration() * NOTE_HEIGHT) / ticksPerSixteenth;
r = new Rectangle(x, y, NOTE_WIDTH, height);
// Places the element in the appropriate place.
r = new Rectangle(x, y, NOTE_WIDTH, height);
// Places the element in the appropriate place.