us.ihmc.simulationconstructionset.SimulationConstructionSet.attachExitActionListener()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.attachExitActionListener()方法的一些代码示例,展示了SimulationConstructionSet.attachExitActionListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.attachExitActionListener()方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:attachExitActionListener

SimulationConstructionSet.attachExitActionListener介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void putButtonsAndExitActionListenerOnSimulationGUI(final SimulationConstructionSet simulationConstructionSet)
{
 // Add some buttons:
 EventDispatchThreadHelper.invokeAndWait(new Runnable()
 {
   @Override
   public void run()
   {
    connectButton = new ConnectButton(connection);
    connectButton.setRequestFocusEnabled(false);
    simulationConstructionSet.addButton(connectButton);
    pauseButton = new PauseButton();
    pauseButton.setRequestFocusEnabled(false);
    if (debug)
      simulationConstructionSet.addButton(pauseButton);
    recordCheckBox = new RecordCheckBox();
    recordCheckBox.setRequestFocusEnabled(false);
    recordCheckBox.setSelected(false);
    simulationConstructionSet.addCheckBox(recordCheckBox);
   }
 });
 simulationConstructionSet.attachExitActionListener(this);
}

代码示例来源:origin: us.ihmc/ihmc-simulation-toolkit

public void waitForSCSToClose()
{
 scs.disableSystemExit();
 ExitChecker exitCheckerRunnable = new ExitChecker();
 scs.attachExitActionListener(exitCheckerRunnable);    // Make sure exit listener attached before starting scs in FootstepVisualizer constructor
 waitForSCSToClose(scs, exitCheckerRunnable);
}

代码示例来源:origin: us.ihmc/IHMCSimulationToolkit

public void waitForSCSToClose()
{
 scs.disableSystemExit();
 ExitChecker exitCheckerRunnable = new ExitChecker();
 scs.attachExitActionListener(exitCheckerRunnable);    // Make sure exit listener attached before starting scs in FootstepVisualizer constructor
 waitForSCSToClose(scs, exitCheckerRunnable);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public MidiSliderBoard(SimulationConstructionSet scs, boolean showVirtualSliderBoard, boolean showSliderBoardVisualizer)
{
 this((YoVariableHolder) scs);
 boolean showSCSWindows = scs != null && scs.getSimulationConstructionSetParameters().getShowWindows();
 if ((showSCSWindows && preferedDevice.equals(Devices.VIRTUAL)) || (showVirtualSliderBoard || alwaysShowVirtualSliderBoard))
 {
      if ((scs == null) || (scs.getStandardSimulationGUI() != null))
   {
    PrintTools.info(this, "Setting Up Virtual Slider Board");
    virtualSliderBoard = new VirtualSliderBoardGui(this, closeableAndDisposableRegistry);
   }
 }
 else if (!preferedDevice.equals(Devices.VIRTUAL) && showSliderBoardVisualizer)
 {
   visualizer = new MidiSliderBoardConfigurationVisualizer(controlsHashTable);
 }
 if (scs != null)
 {
   printIfDebug("Attaching exit action listener " + getClass().getSimpleName() + " to SCS");
   scs.attachExitActionListener(this);
 }
}

代码示例来源:origin: us.ihmc/RobotDataCommunication

scs.setScrollGraphsEnabled(false);
scs.setGroundVisible(false);
scs.attachExitActionListener(this);

代码示例来源:origin: us.ihmc/IHMCRobotDataVisualizer

scs.setScrollGraphsEnabled(false);
scs.setGroundVisible(false);
scs.attachExitActionListener(this);
scs.attachPlaybackListener(createYoGraphicsUpdater());
scs.setRunName(yoVariableClient.getServerName());

代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer

scs.setScrollGraphsEnabled(false);
scs.setGroundVisible(false);
scs.attachExitActionListener(this);
scs.attachPlaybackListener(createYoGraphicsUpdater());
scs.setRunName(yoVariableClientInterface.getServerName());

代码示例来源:origin: us.ihmc/simulation-construction-set-test

scs.attachExitActionListener(exitActionListener);
exitActionListenerHasBeenNotified.set(false);
scs.notifyExitActionListeners();

相关文章

SimulationConstructionSet类方法