本文整理匯總了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;
}