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

us.ihmc.simulationconstructionset.gui.dialogConstructors.DataBufferPropertiesDialogGenerator 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.DataBufferChangeListener;
import us.ihmc.simulationconstructionset.gui.dialogs.DataBufferPropertiesDialog;
import us.ihmc.yoVariables.buffer.YoBuffer;

public class DataBufferPropertiesDialogGenerator implements DataBufferPropertiesDialogConstructor
{
   private YoBuffer dataBuffer;
   private Container parentContainer;
   private JFrame frame;
   private DataBufferChangeListener listener;

   public DataBufferPropertiesDialogGenerator(YoBuffer dataBuffer, Container parentContainer, JFrame frame, DataBufferChangeListener listener)
   {
      this.dataBuffer = dataBuffer;
      this.parentContainer = parentContainer;
      this.frame = frame;
      this.listener = listener;
   }

   @Override
   public void constructDialog()
   {
      new DataBufferPropertiesDialog(parentContainer, frame, dataBuffer, listener);
   }

   @Override
   public void closeAndDispose()
   {
      dataBuffer = null;
      parentContainer = null;
      frame = null;
      listener = null;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy