![JAR search and dependency download from the Maven repository](/logo.png)
com.objogate.wl.swing.gesture.GesturePerformer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of windowlicker-swing Show documentation
Show all versions of windowlicker-swing Show documentation
This is the Windowlicker Swing library.
The newest version!
package com.objogate.wl.swing.gesture;
import javax.swing.SwingUtilities;
import com.objogate.exception.Defect;
import com.objogate.wl.Gesture;
import com.objogate.wl.Automaton;
import com.objogate.wl.robot.RoboticAutomaton;
public class GesturePerformer {
private final Automaton automaton;
public GesturePerformer() {
this(new RoboticAutomaton());
}
public GesturePerformer(Automaton automaton) {
this.automaton = automaton;
}
public void perform(Gesture... gestures) {
if (SwingUtilities.isEventDispatchThread()) {
throw new Defect("attempted to perform gestures on the Swing event dispatch thread");
}
for (Gesture gesture : gestures) {
gesture.performGesture(automaton);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy