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


Java StyleableDoubleProperty类代码示例

本文整理汇总了Java中javafx.css.StyleableDoubleProperty的典型用法代码示例。如果您正苦于以下问题:Java StyleableDoubleProperty类的具体用法?Java StyleableDoubleProperty怎么用?Java StyleableDoubleProperty使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


StyleableDoubleProperty类属于javafx.css包,在下文中一共展示了StyleableDoubleProperty类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createStyleableDoubleProperty

import javafx.css.StyleableDoubleProperty; //导入依赖的package包/类
public static StyleableDoubleProperty createStyleableDoubleProperty(Object bean, String name, CssMetaData<? extends Styleable, Number> cssMetadata) {
    return new StyleableDoubleProperty() {
        @Override
        public Object getBean() {
            return bean;
        }


        @Override
        public String getName() {
            return name;
        }


        @Override
        public CssMetaData<? extends Styleable, Number> getCssMetaData() {
            return cssMetadata;
        }
    };
}
 
开发者ID:dejv78,项目名称:j.commons,代码行数:21,代码来源:CssHelper.java

示例2: panSensitivityProperty

import javafx.css.StyleableDoubleProperty; //导入依赖的package包/类
/** Replies the property that indicates the sensibility of the panning moves.
 * The sensibility is a strictly positive number that is multiplied to the
 * distance covered by the mouse motion for obtaining the move to
 * apply to the document.
 * The default value is 1.
 *
 * @return the property.
 */
public DoubleProperty panSensitivityProperty() {
	if (this.panSensitivity == null) {
		this.panSensitivity = new StyleableDoubleProperty(DEFAULT_PAN_SENSITIVITY) {
			@Override
			public void invalidated() {
				if (get() <= MIN_PAN_SENSITIVITY) {
					set(MIN_PAN_SENSITIVITY);
				}
			}

			@Override
			public CssMetaData<ZoomablePane<?>, Number> getCssMetaData() {
				return StyleableProperties.PAN_SENSITIVITY;
			}

			@Override
			public Object getBean() {
				return ZoomablePane.this;
			}

			@Override
			public String getName() {
				return PAN_SENSITIVITY_PROPERTY;
			}
		};
	}
	return this.panSensitivity;
}
 
开发者ID:gallandarakhneorg,项目名称:afc,代码行数:37,代码来源:ZoomablePane.java

示例3: getStyleableProperty

import javafx.css.StyleableDoubleProperty; //导入依赖的package包/类
@Override
public StyleableDoubleProperty getStyleableProperty(SVGGlyph control) {
    return control.size;
}
 
开发者ID:jfoenixadmin,项目名称:JFoenix,代码行数:5,代码来源:SVGGlyph.java

示例4: radiusProperty

import javafx.css.StyleableDoubleProperty; //导入依赖的package包/类
public final StyleableDoubleProperty radiusProperty() {
    return this.radius;
}
 
开发者ID:jfoenixadmin,项目名称:JFoenix,代码行数:4,代码来源:JFXSpinner.java

示例5: startingAngleProperty

import javafx.css.StyleableDoubleProperty; //导入依赖的package包/类
public final StyleableDoubleProperty startingAngleProperty() {
    return this.startingAngle;
}
 
开发者ID:jfoenixadmin,项目名称:JFoenix,代码行数:4,代码来源:JFXSpinner.java

示例6: getStyleableProperty

import javafx.css.StyleableDoubleProperty; //导入依赖的package包/类
@Override
public StyleableDoubleProperty getStyleableProperty(JFXSpinner control) {
    return control.radius;
}
 
开发者ID:jfoenixadmin,项目名称:JFoenix,代码行数:5,代码来源:JFXSpinner.java


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