use of blue.ui.core.score.ScoreTopComponent in project blue by kunstmusik.
the class RaisePixelSecondAction method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
ScoreTopComponent scoreTopComponent = (ScoreTopComponent) WindowManager.getDefault().findTopComponent("ScoreTopComponent");
scoreTopComponent.getTimeState().raisePixelSecond();
}
use of blue.ui.core.score.ScoreTopComponent in project blue by kunstmusik.
the class NudgeLeft10Action method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
Collection<? extends ScoreObject> scoreObjects = ScoreController.getInstance().getSelectedScoreObjects();
ScoreTopComponent scoreTopComponent = (ScoreTopComponent) WindowManager.getDefault().findTopComponent("ScoreTopComponent");
if (!scoreObjects.isEmpty()) {
float adjust = -10.0f / scoreTopComponent.getTimeState().getPixelSecond();
NudgeUtils.nudgeHorizontal(adjust, scoreObjects);
}
}
use of blue.ui.core.score.ScoreTopComponent in project blue by kunstmusik.
the class NudgeRight10Action method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
Collection<? extends ScoreObject> scoreObjects = ScoreController.getInstance().getSelectedScoreObjects();
ScoreTopComponent scoreTopComponent = (ScoreTopComponent) WindowManager.getDefault().findTopComponent("ScoreTopComponent");
if (!scoreObjects.isEmpty()) {
float adjust = 10.0f / scoreTopComponent.getTimeState().getPixelSecond();
NudgeUtils.nudgeHorizontal(adjust, scoreObjects);
}
}
use of blue.ui.core.score.ScoreTopComponent in project blue by kunstmusik.
the class NudgeRightAction method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
Collection<? extends ScoreObject> scoreObjects = ScoreController.getInstance().getSelectedScoreObjects();
ScoreTopComponent scoreTopComponent = (ScoreTopComponent) WindowManager.getDefault().findTopComponent("ScoreTopComponent");
if (!scoreObjects.isEmpty()) {
float adjust = 1.0f / scoreTopComponent.getTimeState().getPixelSecond();
NudgeUtils.nudgeHorizontal(adjust, scoreObjects);
}
}
use of blue.ui.core.score.ScoreTopComponent in project blue by kunstmusik.
the class SoundObjectView method addNotify.
@Override
public void addNotify() {
super.addNotify();
ScoreTopComponent scoreTopComponent = (ScoreTopComponent) WindowManager.getDefault().findTopComponent("ScoreTopComponent");
result = scoreTopComponent.getLookup().lookupResult(SoundObject.class);
result.addLookupListener(this);
resultChanged(null);
}
Aggregations