本文整理了Java中javax.swing.JSlider.setExtent()
方法的一些代码示例,展示了JSlider.setExtent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSlider.setExtent()
方法的具体详情如下:
包路径:javax.swing.JSlider
类名称:JSlider
方法名:setExtent
暂无
代码示例来源:origin: de.sciss/prefuse-core
public void focusGained(FocusEvent e) {
((JSlider)e.getSource()).setExtent(0);
}
public void focusLost(FocusEvent e) {
代码示例来源:origin: palantir/Cinch
public <T extends Enum<?> & ModelUpdate> void update(T... changed) {
if (!BindingContext.isOn(onObject, changed)) {
return;
}
try {
int extent = (Integer) getter.getMethod().invoke(model1);
slider.removeChangeListener(changeListener);
slider.setExtent(extent);
slider.addChangeListener(changeListener);
} catch (Exception ex) {
logger.error("could not invoke JSlider binding", ex);
}
}
};
代码示例来源:origin: org.gephi/ui-components
slider.setExtent(valueForYPosition(thumbMiddle) - slider.getValue());
break;
slider.setExtent(valueForXPosition(thumbMiddle) - slider.getValue());
break;
代码示例来源:origin: org.gephi/ui-components
slider.setExtent(valueForYPosition(thumbMiddle) - slider.getValue());
break;
slider.setExtent(valueForXPosition(thumbMiddle) - slider.getValue());
break;
代码示例来源:origin: igvteam/igv
slider.setExtent(valueForYPosition(thumbMiddle) - slider.getValue());
break;
slider.setExtent(valueForXPosition(thumbMiddle) - slider.getValue());
break;
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-mobility-svgcore
private void updateTimelineBounds(JComponent source) {
ComponentGroup.ComponentWrapper wrapper;
if ( (wrapper = m_startTime.findWrapper(source)) != null) {
float value = wrapper.getValue();
stopTimeSlider.setExtent( Math.round( value * 100));
((SpinnerNumberModel)stopTimeSpinner.getModel()).setMinimum( new Double(value));
} else if ((wrapper = m_stopTime.findWrapper(source)) != null) {
float value = wrapper.getValue();
startTimeSlider.setExtent( startTimeSlider.getMaximum() - Math.round( value * 100));
((SpinnerNumberModel)startTimeSpinner.getModel()).setMaximum( new Double(value));
}
}
代码示例来源:origin: stackoverflow.com
slider.setMajorTickSpacing(10);
slider.setMinorTickSpacing(5);
slider.setExtent(5);
slider.setPaintTicks(true);
slider.setPaintLabels(true);
代码示例来源:origin: org.gephi/ui-components
slider.setExtent(snappedValue - slider.getValue());
代码示例来源:origin: igvteam/igv
slider.setExtent(snappedValue - slider.getValue());
代码示例来源:origin: org.gephi/ui-components
slider.setExtent(snappedValue - slider.getValue());
代码示例来源:origin: org.xworker/xworker_core
comp.setExtent(extent);
内容来源于网络,如有侵权,请联系作者删除!