本文整理汇总了Java中com.bric.plaf.MultiThumbSliderUI类的典型用法代码示例。如果您正苦于以下问题:Java MultiThumbSliderUI类的具体用法?Java MultiThumbSliderUI怎么用?Java MultiThumbSliderUI使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MultiThumbSliderUI类属于com.bric.plaf包,在下文中一共展示了MultiThumbSliderUI类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: showColorPicker
import com.bric.plaf.MultiThumbSliderUI; //导入依赖的package包/类
private boolean showColorPicker() {
final Color[] colors = getColors();
final int i = getSelectedThumb();
Frame frame = getFrame();
boolean includeOpacity = MultiThumbSliderUI.getProperty(this, "GradientSlider.colorPickerIncludesOpacity", "true").equals("true");
Color initialColor = colors[i];
colors[i] = ColorPicker.showDialog(frame, "Select a Color", colors[i], includeOpacity, new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
if (evt.getPropertyName().equals(ColorPicker.SELECTED_COLOR_PROPERTY)) {
colors[i] = (Color) (evt.getNewValue());
setValues(getThumbPositions(), colors);
}
}
});
if (colors[i] == null) {
colors[i] = initialColor;
}
setValues(getThumbPositions(), colors);
return true;
}
示例2: showColorPicker
import com.bric.plaf.MultiThumbSliderUI; //导入依赖的package包/类
private boolean showColorPicker() {
Color[] colors = getColors();
int i = getSelectedThumb();
Frame frame = getFrame();
boolean includeOpacity = MultiThumbSliderUI.getProperty(this,"GradientSlider.colorPickerIncludesOpacity","true").equals("true");
colors[i] = ColorPicker.showDialog(frame, colors[i], includeOpacity);
if(colors[i]!=null)
setValues(getThumbPositions(), colors);
return true;
}
示例3: showColorPicker
import com.bric.plaf.MultiThumbSliderUI; //导入依赖的package包/类
private boolean showColorPicker() {
Color[] colors = getValues();
int i = getSelectedThumb();
Frame frame = getFrame();
boolean includeOpacity = MultiThumbSliderUI.getProperty(this,"GradientSlider.colorPickerIncludesOpacity","true").equals("true");
colors[i] = ColorPicker.showDialog(frame, colors[i], includeOpacity);
if(colors[i]!=null)
setValues(getThumbPositions(), colors);
return true;
}
示例4: getUI
import com.bric.plaf.MultiThumbSliderUI; //导入依赖的package包/类
public MultiThumbSliderUI<T> getUI() {
return (MultiThumbSliderUI<T>)ui;
}
示例5: setUI
import com.bric.plaf.MultiThumbSliderUI; //导入依赖的package包/类
public void setUI(MultiThumbSliderUI<T> ui) {
super.setUI( (ComponentUI)ui );
}