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

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

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

public class GotoOutPointAction extends AbstractAction
{
   private static final long serialVersionUID = 4300972053727473361L;

   private GotoOutPointCommandExecutor executor;

   public GotoOutPointAction(GotoOutPointCommandExecutor executor)
   {
      super("Goto Out Point");
      this.executor = executor;

      String iconFilename = "icons/GotoOutPoint.png";
      int shortKey = KeyEvent.VK_O;
      String longDescription = "Goto Out Point";
      String shortDescription = "Goto Out Point";

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy