javafx.scene.shape.Rectangle.setOpacity()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中javafx.scene.shape.Rectangle.setOpacity方法的一些代码示例,展示了Rectangle.setOpacity的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rectangle.setOpacity方法的具体详情如下:
包路径:javafx.scene.shape.Rectangle
类名称:Rectangle
方法名:setOpacity

Rectangle.setOpacity介绍

暂无

代码示例

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Background opacity
 *
 * @param opacity
 */
public void setBackgroundOpacity(double opacity) {
 shadowRectangle.setOpacity(opacity);
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

public void setBackgroundOpacity(double opacity) {
 undecorator.getBackgroundNode().setOpacity(opacity);
}

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Activate dock feedback on screen's bounds
 *
 * @param x
 * @param y
 */
public void setDockFeedbackVisible(double x, double y, double width, double height) {
 dockFeedbackPopup.setX(x);
 dockFeedbackPopup.setY(y);
 dockFeedback.setX(SHADOW_WIDTH);
 dockFeedback.setY(SHADOW_WIDTH);
 dockFeedback.setHeight(height - SHADOW_WIDTH * 2);
 dockFeedback.setWidth(width - SHADOW_WIDTH * 2);
 dockFeedbackPopup.setWidth(width);
 dockFeedbackPopup.setHeight(height);
 dockFeedback.setOpacity(1);
 dockFeedbackPopup.show();
 dockFadeTransition = new FadeTransition();
 dockFadeTransition.setDuration(Duration.millis(200));
 dockFadeTransition.setNode(dockFeedback);
 dockFadeTransition.setFromValue(0);
 dockFadeTransition.setToValue(1);
 dockFadeTransition.setAutoReverse(true);
 dockFadeTransition.setCycleCount(3);
 dockFadeTransition.play();
}

代码示例来源:origin: org.gillius/jfxutils

selectRect.setFill( Color.DODGERBLUE );
selectRect.setMouseTransparent( true );
selectRect.setOpacity( 0.3 );
selectRect.setStroke( Color.rgb( 0, 0x29, 0x66 ) );
selectRect.setStrokeType( StrokeType.INSIDE );

代码示例来源:origin: com.github.almasb/fxgl-ui

trace.setTranslateY(3);
trace.setFill(traceFill);
trace.setOpacity(0.55);
trace.setEffect(new Glow(0.5));

代码示例来源:origin: com.github.almasb/fxgl-base

trace.setTranslateY(3);
trace.setFill(traceFill);
trace.setOpacity(0.55);
trace.setEffect(new Glow(0.5));

相关文章

微信公众号

最新文章

更多