本文整理汇总了Java中javafx.scene.control.ProgressIndicator.getSkin方法的典型用法代码示例。如果您正苦于以下问题:Java ProgressIndicator.getSkin方法的具体用法?Java ProgressIndicator.getSkin怎么用?Java ProgressIndicator.getSkin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.control.ProgressIndicator
的用法示例。
在下文中一共展示了ProgressIndicator.getSkin方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getStyleableProperty
import javafx.scene.control.ProgressIndicator; //导入方法依赖的package包/类
@Override
public StyleableProperty<Paint> getStyleableProperty(ProgressIndicator n) {
final TaskProgressIndicatorSkin skin = (TaskProgressIndicatorSkin) n.getSkin();
if (skin.indeterminateSegmentCount instanceof StyleableProperty) {
@SuppressWarnings("unchecked")
StyleableProperty<Paint> property = (StyleableProperty<Paint>) skin.progressColor;
return property;
} else {
throw new RuntimeException("Illegal cast to StyleableProperty<Paint>");
}
}
示例2: isSettable
import javafx.scene.control.ProgressIndicator; //导入方法依赖的package包/类
@Override
public boolean isSettable(ProgressIndicator n)
{
final MetroProgressIndicatorSkin skin = (MetroProgressIndicatorSkin) n.getSkin();
return skin.indeterminateSegmentCount == null
|| !skin.indeterminateSegmentCount.isBound();
}
示例3: isSettable
import javafx.scene.control.ProgressIndicator; //导入方法依赖的package包/类
@Override
public boolean isSettable(ProgressIndicator n) {
final TaskProgressIndicatorSkin skin = (TaskProgressIndicatorSkin) n.getSkin();
return skin == null || !skin.progressColor.isBound();
}
示例4: getStyleableProperty
import javafx.scene.control.ProgressIndicator; //导入方法依赖的package包/类
@Override
public StyleableProperty<Paint> getStyleableProperty(ProgressIndicator n)
{
final MetroProgressIndicatorSkin skin = (MetroProgressIndicatorSkin) n.getSkin();
return (StyleableProperty<Paint>) skin.progressColor;
}