pane.add(toolbar, BorderLayout.NORTH);
// Adds main view.
- view = new MooView(seq.getTracks());
+ view = new MooView(seq);
pane.add(view, BorderLayout.CENTER);
// Adds status bar.
*/
public void setSequence(Sequence sequence) {
seq = sequence;
- view.update(seq.getTracks());
+ view.setSequence(seq);
}
/**
public void setStatus(String text) {
statusBar.setText(text);
}
+
+ /**
+ * Update the view.
+ */
+ public void update(){
+ view.update();
+ // Calls on the toolbar to update the progress indicator.
+ //toolbar.updateProgInd();
+ }
class MooGUICloser extends WindowAdapter {
public void windowClosing(WindowEvent e) {
Moosique.quit();
}
}
-}
\ No newline at end of file
+}