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

us.ihmc.simulationconstructionset.gui.dialogConstructors.YoGraphicsPropertiesDialogGenerator 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.SimulationConstructionSet;
import us.ihmc.simulationconstructionset.gui.dialogs.YoGraphicsPropertiesDialog;

public class YoGraphicsPropertiesDialogGenerator implements YoGraphicsPropertiesDialogConstructor
{
   private SimulationConstructionSet sim;
   private JFrame frame;
   private Container parentContainer;

   public YoGraphicsPropertiesDialogGenerator(SimulationConstructionSet sim, Container parentContainer, JFrame frame)
   {
      this.sim = sim;
      this.frame = frame;
      this.parentContainer = parentContainer;
   }

   @Override
   public void constructDialog()
   {
      new YoGraphicsPropertiesDialog(parentContainer, frame, sim);
   }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy