* @param tickPosition the tick position to visualize
*/
public void updateProgInd(long tickPosition) {
+ ticksPerBeat = Moosique.getSequence().getResolution();
if (tickPosition == 0) {
resetProgInd();
} else {
ticksPerBeat = Moosique.getSequence().getResolution();
}
- /*
+ /**
* Creates a button with the specified image and tooltip.
*/
private JButton createButton(String imagelocation, String tooltip) {
return button;
}
- /*
+ /**
* Creates labels with the specified text and font size.
*/
private JLabel createLabel(String title, int fontSize){
return label;
}
- /*
+ /**
* Formats the given label for the progress indicator.
*/
private JLabel formatProgInd(JLabel label){
Moosique.stop();
}
} else if (e.getSource() instanceof JLabel) {
- long position = Moosique.getPosition();
+ long position = Moosique.getEditPosition();
if (e.getSource().equals(measuresValue)) {
if (SwingUtilities.isRightMouseButton(e)) {
position += beatsPerMeasure * ticksPerBeat;
position -= 1;
}
}
- Moosique.setPosition(position);
+ Moosique.setEditPosition(position);
Moosique.getGUI().update(position);
}
}