All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.simulationconstructionset.gui.actions.SetInPointAction Maven / Gradle / Ivy

There is a newer version: 0.25.3
Show newest version
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.SetInPointCommandExecutor;
import us.ihmc.simulationconstructionset.gui.actions.dialogActions.AbstractActionTools;

public class SetInPointAction extends AbstractAction
{
   private static final long serialVersionUID = 1396893923616884444L;

   private SetInPointCommandExecutor executor;

   public SetInPointAction(SetInPointCommandExecutor executor)
   {
      super("Set In Point");
      this.executor = executor;

      String iconFilename = "icons/SetInPoint.png";
      int shortKey = KeyEvent.VK_N;
      String longDescription = "Set In Point";
      String shortDescription = "Set In Point";

      AbstractActionTools.setupIconButton(this, iconFilename, shortKey, longDescription, shortDescription);
   }

   @Override
   public void actionPerformed(ActionEvent actionEvent)
   {
      executor.setInPoint();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy