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