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

us.ihmc.simulationconstructionset.gui.actions.dialogActions.CameraPropertiesAction Maven / Gradle / Ivy

There is a newer version: 0.25.2
Show newest version
package us.ihmc.simulationconstructionset.gui.actions.dialogActions;

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

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

import us.ihmc.simulationconstructionset.gui.DollyCheckBox;
import us.ihmc.simulationconstructionset.gui.TrackCheckBox;
import us.ihmc.simulationconstructionset.gui.dialogConstructors.CameraPropertiesDialogConstructor;

public class CameraPropertiesAction extends AbstractAction
{
   private static final long serialVersionUID = 2728147089395054885L;

   private final CameraPropertiesDialogConstructor constructor;
   private final TrackCheckBox trackCheckBox;
   private final DollyCheckBox dollyCheckBox;

   public CameraPropertiesAction(CameraPropertiesDialogConstructor constructor, TrackCheckBox trackCheckBox, DollyCheckBox dollyCheckBox)
   {
      super("Camera Properties...");

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

      this.constructor = constructor;
      this.trackCheckBox = trackCheckBox;
      this.dollyCheckBox = dollyCheckBox;
   }

   @Override
   public void actionPerformed(ActionEvent actionEvent)
   {
      constructor.constructCameraPropertiesDialog(trackCheckBox, dollyCheckBox);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy