本文整理汇总了Java中javax.swing.plaf.SliderUI类的典型用法代码示例。如果您正苦于以下问题:Java SliderUI类的具体用法?Java SliderUI怎么用?Java SliderUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SliderUI类属于javax.swing.plaf包,在下文中一共展示了SliderUI类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TrackableSlider
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
/**
* Simple constructor.
*
* @param slider
* The associated slider.
*/
public TrackableSlider(JSlider slider, ButtonModel transitionModel) {
this.slider = slider;
this.transitionModel = transitionModel;
SliderUI sliderUI = slider.getUI();
if (sliderUI instanceof BasicSliderUI) {
try {
this.thumbRectField = BasicSliderUI.class
.getDeclaredField("thumbRect");
this.thumbRectField.setAccessible(true);
} catch (Exception exc) {
this.thumbRectField = null;
}
}
this.stateTransitionTracker = new StateTransitionTracker(
this.slider, this.transitionModel);
}
示例2: setUI
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
/**
* Maps {@code JSlider.setUI(SliderUI)} through queue
*/
public void setUI(final SliderUI sliderUI) {
runMapping(new MapVoidAction("setUI") {
@Override
public void map() {
((JSlider) getSource()).setUI(sliderUI);
}
});
}
示例3: getThumbRectField
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
private static Rectangle getThumbRectField() {
try {
SliderUI ui = slider.getUI();
Field field = BasicSliderUI.class.getDeclaredField("thumbRect");
field.setAccessible(true);
return (Rectangle) field.get(ui);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
示例4: getUI
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
/**
* Maps {@code JSlider.getUI()} through queue
*/
public SliderUI getUI() {
return (runMapping(new MapAction<SliderUI>("getUI") {
@Override
public SliderUI map() {
return ((JSlider) getSource()).getUI();
}
}));
}
示例5: getUI
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
public SliderUI getUI() {
AndroidClassUtil.callEmptyMethod();
return (SliderUI) null;
}
示例6: setUI
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
public void setUI(SliderUI ui) {
AndroidClassUtil.callEmptyMethod();
}
示例7: updateUI
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
/**
* Sets this slider's UI delegate to the default (obtained from the
* {@link UIManager}) for the current look and feel.
*/
public void updateUI()
{
updateLabelUIs();
setUI((SliderUI) UIManager.getUI(this));
}
示例8: getUI
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
public SliderUI getUI() {
return (SliderUI)ui;
}
示例9: setUI
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
public void setUI(final SliderUI ui) {
super.setUI(ui);
}
示例10: updateUI
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
public void updateUI() {
setUI((SliderUI)UIManager.getUI(this));
}
示例11: setUI
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
/**
* Sets the slider's UI delegate.
*
* @param ui the UI delegate.
*/
public void setUI(SliderUI ui)
{
super.setUI(ui);
}
示例12: getUI
import javax.swing.plaf.SliderUI; //导入依赖的package包/类
/**
* Returns the slider's UI delegate.
*
* @return The slider's UI delegate.
*/
public SliderUI getUI()
{
return (SliderUI) ui;
}