javax.swing.JSlider.removeMouseMotionListener()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(110)

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

JSlider.removeMouseMotionListener介绍

暂无

代码示例

代码示例来源:origin: lbalazscs/Pixelitor

@Override
protected void uninstallListeners(JSlider slider) {
  super.uninstallListeners(slider);
  slider.removeMouseListener(myMouseListener);
  slider.removeMouseMotionListener(myMouseListener);
}

代码示例来源:origin: lbalazscs/Pixelitor

@Override
protected void installListeners(JSlider slider) {
  super.installListeners(slider);
  slider.removeMouseListener(trackListener);
  slider.removeMouseMotionListener(trackListener);
  slider.addMouseListener(myMouseListener);
  slider.addMouseMotionListener(myMouseListener);
  slider.setOpaque(false);
}

代码示例来源:origin: com.github.insubstantial/substance

@Override
protected void uninstallListeners(JSlider slider) {
  super.uninstallListeners(slider);
  slider.removeMouseListener(this.substanceRolloverListener);
  slider.removeMouseMotionListener(this.substanceRolloverListener);
  this.substanceRolloverListener = null;
  slider
      .removePropertyChangeListener(this.substancePropertyChangeListener);
  this.substancePropertyChangeListener = null;
  this.stateTransitionTracker.unregisterModelListeners();
  this.stateTransitionTracker.unregisterFocusListeners();
}

代码示例来源:origin: org.java.net.substance/substance

@Override
protected void uninstallListeners(JSlider slider) {
  super.uninstallListeners(slider);
  slider.removeMouseListener(this.substanceRolloverListener);
  slider.removeMouseMotionListener(this.substanceRolloverListener);
  this.substanceRolloverListener = null;
  slider
      .removePropertyChangeListener(this.substancePropertyChangeListener);
  this.substancePropertyChangeListener = null;
  this.stateTransitionTracker.unregisterModelListeners();
  this.stateTransitionTracker.unregisterFocusListeners();
}

代码示例来源:origin: com.github.insubstantial/substance

@Override
protected void uninstallListeners(JSlider slider) {
  super.uninstallListeners(slider);
  // fix for defect 109 - memory leak on changing skin
  slider.removeMouseListener(this.substanceRolloverListener);
  slider.removeMouseMotionListener(this.substanceRolloverListener);
  this.substanceRolloverListener = null;
  slider
      .removePropertyChangeListener(this.substancePropertyChangeListener);
  this.substancePropertyChangeListener = null;
  this.stateTransitionTracker.unregisterModelListeners();
  this.stateTransitionTracker.unregisterFocusListeners();
}

代码示例来源:origin: org.java.net.substance/substance

@Override
protected void uninstallListeners(JSlider slider) {
  super.uninstallListeners(slider);
  // fix for defect 109 - memory leak on changing skin
  slider.removeMouseListener(this.substanceRolloverListener);
  slider.removeMouseMotionListener(this.substanceRolloverListener);
  this.substanceRolloverListener = null;
  slider
      .removePropertyChangeListener(this.substancePropertyChangeListener);
  this.substancePropertyChangeListener = null;
  this.stateTransitionTracker.unregisterModelListeners();
  this.stateTransitionTracker.unregisterFocusListeners();
}

代码示例来源:origin: com.synaptix/SynaptixSwing

protected void uninstallListeners(JSlider slider) {
  slider.removeMouseListener(trackListener);
  slider.removeMouseMotionListener(trackListener);
  slider.removeFocusListener(focusListener);
  slider.removeComponentListener(componentListener);
  slider.removePropertyChangeListener(propertyChangeListener);
  slider.getModel().removeChangeListener(changeListener);
  handler = null;
}

代码示例来源:origin: com.synaptix/SynaptixSwing

protected void uninstallListeners(JSlider slider) {
  slider.removeMouseListener(trackListener);
  slider.removeMouseMotionListener(trackListener);
  slider.removeFocusListener(focusListener);
  slider.removeComponentListener(componentListener);
  slider.removePropertyChangeListener(propertyChangeListener);
  slider.getModel().removeChangeListener(changeListener);
  handler = null;
}

相关文章

JSlider类方法