Java 类javax.swing.plaf.SliderUI 实例源码
项目:JRLib
文件:SubstanceIconFactory.java
/**
* 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);
}
项目:jdk8u-jdk
文件:bug6848475.java
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);
}
}
项目:openjdk-jdk10
文件:bug6848475.java
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);
}
}
项目:openjdk-jdk10
文件:JSliderOperator.java
/**
* Maps {@code JSlider.getUI()} through queue
*/
public SliderUI getUI() {
return (runMapping(new MapAction<SliderUI>("getUI") {
@Override
public SliderUI map() {
return ((JSlider) getSource()).getUI();
}
}));
}
项目:openjdk-jdk10
文件:JSliderOperator.java
/**
* 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);
}
});
}
项目:openjdk9
文件:bug6848475.java
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);
}
}
项目:openjdk9
文件:JSliderOperator.java
/**
* Maps {@code JSlider.getUI()} through queue
*/
public SliderUI getUI() {
return (runMapping(new MapAction<SliderUI>("getUI") {
@Override
public SliderUI map() {
return ((JSlider) getSource()).getUI();
}
}));
}
项目:openjdk9
文件:JSliderOperator.java
/**
* 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);
}
});
}
项目:jdk8u_jdk
文件:bug6848475.java
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);
}
}
项目:lookaside_java-1.8.0-openjdk
文件:bug6848475.java
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);
}
}
项目:infobip-open-jdk-8
文件:bug6848475.java
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);
}
}
项目:jdk8u-dev-jdk
文件:bug6848475.java
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);
}
}
项目:jdk7-jdk
文件:bug6848475.java
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);
}
}
项目:openjdk-source-code-learn
文件:bug6848475.java
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);
}
}
项目:OLD-OpenJDK8
文件:bug6848475.java
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);
}
}
项目:JAVA_UNIT
文件:bug6848475.java
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);
}
}
项目:openjdk-jdk7u-jdk
文件:bug6848475.java
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);
}
}
项目:openjdk-icedtea7
文件:bug6848475.java
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);
}
}
项目:j2se_for_android
文件:JSlider.java
public SliderUI getUI() {
AndroidClassUtil.callEmptyMethod();
return (SliderUI) null;
}
项目:j2se_for_android
文件:JSlider.java
public void setUI(SliderUI ui) {
AndroidClassUtil.callEmptyMethod();
}
项目:javify
文件:JSlider.java
/**
* 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));
}
项目:jvm-stm
文件:JSlider.java
/**
* 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));
}
项目:cn1
文件:JSlider.java
public SliderUI getUI() {
return (SliderUI)ui;
}
项目:cn1
文件:JSlider.java
public void setUI(final SliderUI ui) {
super.setUI(ui);
}
项目:cn1
文件:JSlider.java
public void updateUI() {
setUI((SliderUI)UIManager.getUI(this));
}
项目:JamVM-PH
文件:JSlider.java
/**
* 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));
}
项目:classpath
文件:JSlider.java
/**
* 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));
}
项目:freeVM
文件:JSlider.java
public SliderUI getUI() {
return (SliderUI)ui;
}
项目:freeVM
文件:JSlider.java
public void setUI(final SliderUI ui) {
super.setUI(ui);
}
项目:freeVM
文件:JSlider.java
public void updateUI() {
setUI((SliderUI)UIManager.getUI(this));
}
项目:freeVM
文件:JSlider.java
public SliderUI getUI() {
return (SliderUI)ui;
}
项目:freeVM
文件:JSlider.java
public void setUI(final SliderUI ui) {
super.setUI(ui);
}
项目:freeVM
文件:JSlider.java
public void updateUI() {
setUI((SliderUI)UIManager.getUI(this));
}
项目:javify
文件:JSlider.java
/**
* Returns the slider's UI delegate.
*
* @return The slider's UI delegate.
*/
public SliderUI getUI()
{
return (SliderUI) ui;
}
项目:javify
文件:JSlider.java
/**
* Sets the slider's UI delegate.
*
* @param ui the UI delegate.
*/
public void setUI(SliderUI ui)
{
super.setUI(ui);
}
项目:jvm-stm
文件:JSlider.java
/**
* Returns the slider's UI delegate.
*
* @return The slider's UI delegate.
*/
public SliderUI getUI()
{
return (SliderUI) ui;
}
项目:jvm-stm
文件:JSlider.java
/**
* Sets the slider's UI delegate.
*
* @param ui the UI delegate.
*/
public void setUI(SliderUI ui)
{
super.setUI(ui);
}
项目:JamVM-PH
文件:JSlider.java
/**
* Returns the slider's UI delegate.
*
* @return The slider's UI delegate.
*/
public SliderUI getUI()
{
return (SliderUI) ui;
}
项目:JamVM-PH
文件:JSlider.java
/**
* Sets the slider's UI delegate.
*
* @param ui the UI delegate.
*/
public void setUI(SliderUI ui)
{
super.setUI(ui);
}
项目:classpath
文件:JSlider.java
/**
* Returns the slider's UI delegate.
*
* @return The slider's UI delegate.
*/
public SliderUI getUI()
{
return (SliderUI) ui;
}