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

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

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

JSlider.getParent介绍

暂无

代码示例

代码示例来源:origin: Exslims/MercuryTrade

@Override
  public void mouseDragged(MouseEvent e) {
    slider.getParent().repaint();
  }
});

代码示例来源:origin: nroduit/Weasis

/**
 * @since 2.5.0
 */
@Override
public void stateChanged(ChangeEvent e) {
  JSlider s = (JSlider) e.getSource();
  JPanel panel = (JPanel) s.getParent();
  if (panel instanceof AbstractSliderComponent) {
    ((AbstractComponent) panel).updatePanelTitle();
  }
  AcquireImageInfo imageInfo = getImageInfo();
  imageInfo.getNextValues().setOrientation(s.getValue());
  applyNextValues();
  rectifyAction.updateCropDisplay();
  imageInfo.applyPreProcess(getView());
}

代码示例来源:origin: nroduit/Weasis

@Override
public void stateChanged(ChangeEvent e) {
  JSlider slider = (JSlider) e.getSource();
  JPanel panel = (JPanel) slider.getParent();
  if (panel instanceof AbstractSliderComponent) {
    ((AbstractComponent) panel).updatePanelTitle();
  }
  AcquireImageInfo imageInfo = AcquireObject.getImageInfo();
  imageInfo.getNextValues().setBrightness(brightnessPanel.getSliderValue());
  imageInfo.getNextValues().setContrast(contrastPanel.getSliderValue());
  applyNextValues();
  imageInfo.applyPreProcess(AcquireObject.getView());
}

相关文章

JSlider类方法