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

us.ihmc.simulationconstructionset.gui.actions.ThinBufferAction 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 javax.swing.Action;

import us.ihmc.simulationconstructionset.commands.ThinBufferCommandExecutor;

public class ThinBufferAction extends AbstractAction
{
   private static final long serialVersionUID = 5502411154340525798L;
   private ThinBufferCommandExecutor executor;

   public ThinBufferAction(ThinBufferCommandExecutor executor)
   {
      super("Thin Buffer, Removing Every Other Tick");
      this.executor = executor;

      putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_T));
      putValue(Action.LONG_DESCRIPTION, "Long Description");
      putValue(Action.SHORT_DESCRIPTION, "Short Description");
   }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy