本文整理了Java中javax.swing.JSlider.getParent()
方法的一些代码示例,展示了JSlider.getParent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSlider.getParent()
方法的具体详情如下:
包路径:javax.swing.JSlider
类名称: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());
}
内容来源于网络,如有侵权,请联系作者删除!