Search in sources :

Example 6 with ScoreTopComponent

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();
}
Also used : ScoreTopComponent(blue.ui.core.score.ScoreTopComponent)

Example 7 with ScoreTopComponent

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);
    }
}
Also used : ScoreTopComponent(blue.ui.core.score.ScoreTopComponent)

Example 8 with ScoreTopComponent

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);
    }
}
Also used : ScoreTopComponent(blue.ui.core.score.ScoreTopComponent)

Example 9 with ScoreTopComponent

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);
    }
}
Also used : ScoreTopComponent(blue.ui.core.score.ScoreTopComponent)

Example 10 with ScoreTopComponent

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);
}
Also used : ScoreTopComponent(blue.ui.core.score.ScoreTopComponent) SoundObject(blue.soundObject.SoundObject)

Aggregations

ScoreTopComponent (blue.ui.core.score.ScoreTopComponent)11 SoundObject (blue.soundObject.SoundObject)2 Point (java.awt.Point)2 Action (javax.swing.Action)2 TimeState (blue.score.TimeState)1 AudioClip (blue.score.layers.audio.core.AudioClip)1 PolyObject (blue.soundObject.PolyObject)1 ScoreTimeCanvas (blue.ui.core.score.layers.soundObject.ScoreTimeCanvas)1 AddScoreObjectEdit (blue.ui.core.score.undo.AddScoreObjectEdit)1 LazyPlugin (blue.ui.nbutilities.lazyplugin.LazyPlugin)1 AbstractAction (javax.swing.AbstractAction)1 JMenu (javax.swing.JMenu)1 JMenuItem (javax.swing.JMenuItem)1 JPopupMenu (javax.swing.JPopupMenu)1 ContextAwareAction (org.openide.util.ContextAwareAction)1