本文整理汇总了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));
}