us.ihmc.simulationconstructionset.gui.actions.SetOutPointAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simulation-construction-set
Show all versions of simulation-construction-set
Simulation Construction Set
package us.ihmc.simulationconstructionset.gui.actions;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.AbstractAction;
import us.ihmc.simulationconstructionset.commands.SetOutPointCommandExecutor;
import us.ihmc.simulationconstructionset.gui.actions.dialogActions.AbstractActionTools;
public class SetOutPointAction extends AbstractAction
{
private static final long serialVersionUID = 3859062359920445441L;
private SetOutPointCommandExecutor executor;
public SetOutPointAction(SetOutPointCommandExecutor executor)
{
super("Set Out Point");
this.executor = executor;
String iconFilename = "icons/SetOutPoint.png";
int shortKey = KeyEvent.VK_U;
String longDescription = "Set Out Point";
String shortDescription = "Set Out Point";
AbstractActionTools.setupIconButton(this, iconFilename, shortKey, longDescription, shortDescription);
}
@Override
public void actionPerformed(ActionEvent actionEvent)
{
executor.setOutPoint();
}
}