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

us.ihmc.simulationconstructionset.gui.dialogConstructors.CameraPropertiesDialogGenerator Maven / Gradle / Ivy

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

import java.awt.Container;

import javax.swing.JFrame;

import us.ihmc.simulationconstructionset.gui.ActiveCameraHolder;
import us.ihmc.simulationconstructionset.gui.DollyCheckBox;
import us.ihmc.simulationconstructionset.gui.TrackCheckBox;
import us.ihmc.simulationconstructionset.gui.dialogs.CameraPropertiesDialog;

public class CameraPropertiesDialogGenerator implements CameraPropertiesDialogConstructor
{
   private ActiveCameraHolder cameraHolder;
   private Container parentContainer;
   private JFrame frame;

   public CameraPropertiesDialogGenerator(ActiveCameraHolder cameraHolder, Container parentContainer, JFrame frame)
   {
      this.parentContainer = parentContainer;
      this.frame = frame;

      this.cameraHolder = cameraHolder;
   }

   @Override
   public void constructCameraPropertiesDialog(TrackCheckBox trackCheckBox, DollyCheckBox dollyCheckBox)
   {
      new CameraPropertiesDialog(parentContainer, frame, trackCheckBox, dollyCheckBox, cameraHolder);
   }

   public void closeAndDispose()
   {
      cameraHolder = null;
      parentContainer = null;
      frame = null;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy