当前位置: 首页>>代码示例>>Java>>正文


Java MultiThumbSliderUI类代码示例

本文整理汇总了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;
}
 
开发者ID:OSUCartography,项目名称:TerrainViewer,代码行数:24,代码来源:GradientSlider.java

示例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;
}
 
开发者ID:teddyted,项目名称:iSeleda,代码行数:13,代码来源:GradientSlider.java

示例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;
}
 
开发者ID:OSUCartography,项目名称:PyramidShader,代码行数:13,代码来源:GradientSlider.java

示例4: getUI

import com.bric.plaf.MultiThumbSliderUI; //导入依赖的package包/类
public MultiThumbSliderUI<T> getUI() {
	return (MultiThumbSliderUI<T>)ui;
}
 
开发者ID:OSUCartography,项目名称:PyramidShader,代码行数:4,代码来源:MultiThumbSlider.java

示例5: setUI

import com.bric.plaf.MultiThumbSliderUI; //导入依赖的package包/类
public void setUI(MultiThumbSliderUI<T> ui) {
	super.setUI( (ComponentUI)ui );
}
 
开发者ID:OSUCartography,项目名称:PyramidShader,代码行数:4,代码来源:MultiThumbSlider.java


注:本文中的com.bric.plaf.MultiThumbSliderUI类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。