us.ihmc.simulationconstructionset.gui.dialogConstructors.DataBufferPropertiesDialogGenerator 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.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;
}
}