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

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

package us.ihmc.simulationconstructionset.gui.actions;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;

import us.ihmc.simulationconstructionset.commands.PreviousCameraKeyCommandExecutor;

public class PreviousCameraKeyAction extends AbstractAction
{
   private static final long serialVersionUID = -5162293334622550111L;
   private PreviousCameraKeyCommandExecutor executor;

   public PreviousCameraKeyAction(PreviousCameraKeyCommandExecutor executor)
   {
      super("Previous Camera Key");

      this.executor = executor;

      putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_R));
      putValue(Action.LONG_DESCRIPTION, "Procedes to the prvious chronological CameraKey.");
      putValue(Action.SHORT_DESCRIPTION, "previous camera key");
   }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy