us.ihmc.simulationconstructionset.gui.actions.dialogActions.CameraPropertiesAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simulation-construction-set
Show all versions of simulation-construction-set
Simulation Construction Set
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);
}
}