本文整理匯總了Java中javafx.scene.layout.CornerRadii.EMPTY屬性的典型用法代碼示例。如果您正苦於以下問題:Java CornerRadii.EMPTY屬性的具體用法?Java CornerRadii.EMPTY怎麽用?Java CornerRadii.EMPTY使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類javafx.scene.layout.CornerRadii
的用法示例。
在下文中一共展示了CornerRadii.EMPTY屬性的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: initGraphics
@Override protected void initGraphics() {
super.initGraphics();
final ZonedDateTime TIME = tile.getTime();
titleText = new Text(MONTH_YEAR_FORMATTER.format(TIME));
titleText.setFill(tile.getTitleColor());
clickHandler = e -> checkClick(e);
labels = new ArrayList<>(56);
for (int i = 0 ; i < 56 ; i++) {
Label label = new Label();
label.setManaged(false);
label.setVisible(false);
label.setAlignment(Pos.CENTER);
label.addEventHandler(MouseEvent.MOUSE_PRESSED, clickHandler);
labels.add(label);
}
weekBorder = new Border(new BorderStroke(Color.TRANSPARENT,
Tile.GRAY,
Color.TRANSPARENT,
Color.TRANSPARENT,
BorderStrokeStyle.NONE,
BorderStrokeStyle.SOLID,
BorderStrokeStyle.NONE,
BorderStrokeStyle.NONE,
CornerRadii.EMPTY, BorderWidths.DEFAULT,
Insets.EMPTY));
text = new Text(DAY_FORMATTER.format(TIME));
text.setFill(tile.getTextColor());
getPane().getChildren().addAll(titleText, text);
getPane().getChildren().addAll(labels);
}
示例2: getSimpleBorder
public static Border getSimpleBorder(Paint p, double width) {
return new Border(new BorderStroke(p, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, new BorderWidths(width)));
}
示例3: changeChartBackgroundColor
/**
* Change the main chart background color
*/
public void changeChartBackgroundColor() {
BackgroundFill fill = new BackgroundFill(ChartBackgroundColorProperty.getValue(), CornerRadii.EMPTY, Insets.EMPTY);
Background background = new Background(fill);
ChartPaneBackgroundProperty.setValue(background);
}
示例4: start
public static Border start() {
return new Border(new BorderStroke(Color.RED, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT));
}
示例5: end
public static Border end() {
return new Border(new BorderStroke(Color.YELLOW, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT));
}