本文整理汇总了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;
}
};
}
示例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;
}
示例3: getStyleableProperty
import javafx.css.StyleableDoubleProperty; //导入依赖的package包/类
@Override
public StyleableDoubleProperty getStyleableProperty(SVGGlyph control) {
return control.size;
}
示例4: radiusProperty
import javafx.css.StyleableDoubleProperty; //导入依赖的package包/类
public final StyleableDoubleProperty radiusProperty() {
return this.radius;
}
示例5: startingAngleProperty
import javafx.css.StyleableDoubleProperty; //导入依赖的package包/类
public final StyleableDoubleProperty startingAngleProperty() {
return this.startingAngle;
}
示例6: getStyleableProperty
import javafx.css.StyleableDoubleProperty; //导入依赖的package包/类
@Override
public StyleableDoubleProperty getStyleableProperty(JFXSpinner control) {
return control.radius;
}