本文整理了Java中javafx.scene.paint.Color.rgb()
方法的一些代码示例,展示了Color.rgb()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Color.rgb()
方法的具体详情如下:
包路径:javafx.scene.paint.Color
类名称:Color
方法名:rgb
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
@Override
public Paint getUnFocusColor() {
return unFocusColor == null ? Color.rgb(77, 77, 77) : unFocusColor.get();
}
代码示例来源:origin: jfoenixadmin/JFoenix
@Override
public Paint getUnFocusColor() {
return unFocusColor == null ? Color.rgb(77, 77, 77) : unFocusColor.get();
}
代码示例来源:origin: jfoenixadmin/JFoenix
public Paint getUnFocusColor() {
return unFocusColor == null ? Color.rgb(77, 77, 77) : unFocusColor.get();
}
代码示例来源:origin: jfoenixadmin/JFoenix
public Paint getUnFocusColor() {
return unFocusColor == null ? Color.rgb(77, 77, 77) : unFocusColor.get();
}
代码示例来源:origin: jfoenixadmin/JFoenix
public Paint getRipplerFill() {
return ripplerFill == null ? Color.rgb(0, 200, 255) : ripplerFill.get();
}
代码示例来源:origin: jfoenixadmin/JFoenix
void init() {
calendarPlaceHolder.setOpacity(1);
if(unit.get() == TimeUnit.HOURS){
selectedHourLabel.setTextFill(Color.rgb(255, 255, 255, 0.87));
}else{
selectedMinLabel.setTextFill(Color.rgb(255, 255, 255, 0.87));
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
public static void pop(Node control) {
control.setEffect(new DropShadow(BlurType.GAUSSIAN, Color.rgb(0, 0, 0, 0.26), 5, 0.05, 0, 1));
}
代码示例来源:origin: jfoenixadmin/JFoenix
public final Color getSelectedColor() {
return selectedColor == null ? Color.rgb(0, 0, 0, 0.2) : this.selectedColorProperty().get();
}
代码示例来源:origin: jfoenixadmin/JFoenix
public final Color getSelectedColor() {
return selectedColor == null ? Color.rgb(0, 0, 0, 0.2) : this.selectedColorProperty().get();
}
代码示例来源:origin: jfoenixadmin/JFoenix
void init() {
calendarPlaceHolder.setOpacity(1);
selectedDateLabel.setTextFill(Color.WHITE);
selectedYearLabel.setTextFill(Color.rgb(255, 255, 255, 0.67));
yearsListView.setOpacity(0);
yearsListView.setVisible(false);
}
代码示例来源:origin: jfoenixadmin/JFoenix
minCircle.setFill(Color.rgb(255, 255, 255, 0.87));
minCircle.setTranslateX(selectionCircle.getRadius() - minCircle.getRadius());
minCircle.setVisible(time.getMinute() % 5 != 0);
Color.rgb(255, 255, 255, 0.87) : Color.rgb(0, 0, 0, 0.87));
selectedMinLabel.textProperty().addListener((o, oldVal, newVal) -> {
if (Integer.parseInt(newVal) == Integer.parseInt(label.getText())) {
label.setTextFill(Color.rgb(255, 255, 255, 0.87));
} else {
label.setTextFill(Color.rgb(0, 0, 0, 0.87));
代码示例来源:origin: jfoenixadmin/JFoenix
/**
* creates empty drawer node
*/
public JFXDrawer() {
initialize();
contentHolder.setPickOnBounds(false);
addEventHandler(JFXDrawerEvent.CLOSED, handler -> Platform.runLater(() -> getCachePolicy().restore(contentHolder)));
overlayPane.setBackground(new Background(new BackgroundFill(Color.rgb(0, 0, 0, 0.1),
CornerRadii.EMPTY,
Insets.EMPTY)));
overlayPane.getStyleClass().add("jfx-drawer-overlay-pane");
overlayPane.setOpacity(0);
overlayPane.setMouseTransparent(true);
sidePane.getStyleClass().add("jfx-drawer-side-pane");
sidePane.setBackground(new Background(new BackgroundFill(Color.rgb(255, 255, 255, 1),
CornerRadii.EMPTY,
Insets.EMPTY)));
sidePane.setPickOnBounds(false);
translateTimer.setCacheNodes(sidePane);
// add listeners
initListeners();
// init size value
setDefaultDrawerSize(100);
getChildren().setAll(contentHolder, overlayPane, sidePane);
}
代码示例来源:origin: jfoenixadmin/JFoenix
Color.rgb(255, 255, 255, 0.87) : Color.rgb(0, 0, 0, 0.87));
selectedHourLabel.textProperty().addListener((o, oldVal, newVal) -> {
if (Integer.parseInt(newVal) == Integer.parseInt(label.getText())) {
label.setTextFill(Color.rgb(255, 255, 255, 0.87));
} else {
label.setTextFill(Color.rgb(0, 0, 0, 0.87));
Color.rgb(255, 255, 255, 0.54) : Color.rgb(0, 0, 0, 0.54));
selectedHourLabel.textProperty().addListener((o, oldVal, newVal) -> {
if (Integer.parseInt(newVal) == Integer.parseInt(label.getText())) {
label.setTextFill(Color.rgb(255, 255, 255, 0.54));
} else {
label.setTextFill(Color.rgb(0, 0, 0, 0.54));
代码示例来源:origin: jfoenixadmin/JFoenix
private void initialize() {
this.setVisible(false);
this.getStyleClass().add(DEFAULT_STYLE_CLASS);
this.transitionType.addListener((o, oldVal, newVal) -> {
animation = getShowAnimation(transitionType.get());
});
contentHolder = new StackPane();
contentHolder.setBackground(new Background(new BackgroundFill(Color.WHITE, new CornerRadii(2), null)));
JFXDepthManager.setDepth(contentHolder, 4);
contentHolder.setPickOnBounds(false);
// ensure stackpane is never resized beyond it's preferred size
contentHolder.setMaxSize(Region.USE_PREF_SIZE, Region.USE_PREF_SIZE);
this.getChildren().add(contentHolder);
this.getStyleClass().add("jfx-dialog-overlay-pane");
StackPane.setAlignment(contentHolder, Pos.CENTER);
this.setBackground(new Background(new BackgroundFill(Color.rgb(0, 0, 0, 0.1), null, null)));
// close the dialog if clicked on the overlay pane
if (overlayClose.get()) {
this.addEventHandler(MouseEvent.MOUSE_PRESSED, closeHandler);
}
// prevent propagating the events to overlay pane
contentHolder.addEventHandler(MouseEvent.ANY, e -> e.consume());
}
代码示例来源:origin: jfoenixadmin/JFoenix
selectedYearLabel.setTextFill(Color.rgb(255, 255, 255, 0.67));
selectedYearLabel.setFont(Font.font(ROBOTO, FontWeight.BOLD, 14));
代码示例来源:origin: jfoenixadmin/JFoenix
newVal.setStroke(Color.rgb(255, 255, 255, 0.87));
newVal.playTransition(1);
hslColorPicker.moveToColor((Color) newVal.getFill());
代码示例来源:origin: jfoenixadmin/JFoenix
protected BorderPane createContentPane(LocalTime time, boolean _24HourView) {
Circle circle = new Circle(contentCircleRadius),
selectionCircle = new Circle(contentCircleRadius / 6);
circle.setFill(Color.rgb(224, 224, 224, 0.67));
代码示例来源:origin: jfoenixadmin/JFoenix
Interpolator.EASE_BOTH),
new KeyValue(selectedDateLabel.textFillProperty(),
Color.rgb(255, 255, 255, 0.67),
Interpolator.EASE_BOTH)))) {
Interpolator.EASE_BOTH),
new KeyValue(selectedYearLabel.textFillProperty(),
Color.rgb(255, 255, 255, 0.67),
Interpolator.EASE_BOTH)))) {
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public static javafx.scene.paint.Color awtToJfx(java.awt.Color awtColor)
{
return javafx.scene.paint.Color.rgb(awtColor.getRed(), awtColor.getGreen(), awtColor.getBlue(), awtColor.getAlpha() / 255.0);
}
}
代码示例来源:origin: us.ihmc/ihmc-path-planning-visualizers
public static Color getRegionColor(int regionId, double opacity)
{
java.awt.Color awtColor = colorPicker.getColor(regionId);
return Color.rgb(awtColor.getRed(), awtColor.getGreen(), awtColor.getBlue(), opacity);
}
内容来源于网络,如有侵权,请联系作者删除!