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

x33g5p2x  于2022-01-24 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(242)

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

Node.setOpacity介绍

暂无

代码示例

代码示例来源:origin: jfoenixadmin/JFoenix

  1. @Override
  2. protected void stopping() {
  3. super.stopping();
  4. mark.setOpacity(getRate() == 1 ? 1 : 0);
  5. }
  6. }

代码示例来源:origin: jfoenixadmin/JFoenix

  1. @Override
  2. public void initAnimation(Node contentContainer, Node overlay) {
  3. overlay.setOpacity(0);
  4. contentContainer.setScaleX(0);
  5. contentContainer.setScaleY(0);
  6. }

代码示例来源:origin: jfoenixadmin/JFoenix

  1. public final void setContentNode(final Node content) {
  2. this.contentNodeProperty().set(content);
  3. content.setOpacity(0);
  4. }

代码示例来源:origin: jfoenixadmin/JFoenix

  1. @Override
  2. public void initAnimation(Node contentContainer, Node overlay) {
  3. overlay.setOpacity(0);
  4. contentContainer.setTranslateX(-(contentContainer.getLayoutX()
  5. + contentContainer.getLayoutBounds().getMaxX()));
  6. }

代码示例来源:origin: jfoenixadmin/JFoenix

  1. @Override
  2. public void initAnimation(Node contentContainer, Node overlay) {
  3. overlay.setOpacity(0);
  4. contentContainer.setTranslateX(contentContainer.getLayoutX()
  5. + contentContainer.getLayoutBounds().getMaxX());
  6. }

代码示例来源:origin: jfoenixadmin/JFoenix

  1. @Override
  2. public void initAnimation(Node contentContainer, Node overlay) {
  3. overlay.setOpacity(0);
  4. contentContainer.setTranslateY(-(contentContainer.getLayoutY()
  5. + contentContainer.getLayoutBounds().getMaxY()));
  6. }

代码示例来源:origin: jfoenixadmin/JFoenix

  1. @Override
  2. public void initAnimation(Node contentContainer, Node overlay) {
  3. overlay.setOpacity(0);
  4. contentContainer.setTranslateY(contentContainer.getLayoutY()
  5. + contentContainer.getLayoutBounds().getMaxY());
  6. }

代码示例来源:origin: speedment/speedment

  1. notification.setOpacity(0);
  2. notification.setLayoutX(area.getWidth());
  3. notification.setLayoutY(area.getHeight());

代码示例来源:origin: jfoenixadmin/JFoenix

  1. container.getChildren().get(0).setOpacity(0);
  2. container.setScaleX(1);
  3. container.setScaleY(1);

代码示例来源:origin: com.miglayout/miglayout-javafx

  1. private double extractOpacity(Node node)
  2. {
  3. if (addedNodes.remove(node)) {
  4. node.setOpacity(0);
  5. return 1;
  6. } else if (removedNodes.remove(node)) {
  7. return 0;
  8. }
  9. return -1;
  10. }

代码示例来源:origin: com.jfoenix/jfoenix

  1. @Override
  2. public void initAnimation(Node contentContainer, Node overlay) {
  3. overlay.setOpacity(0);
  4. contentContainer.setScaleX(0);
  5. contentContainer.setScaleY(0);
  6. }

代码示例来源:origin: com.jfoenix/jfoenix

  1. @Override
  2. protected void stopping() {
  3. super.stopping();
  4. mark.setOpacity(getRate() == 1 ? 1 : 0);
  5. }
  6. }

代码示例来源:origin: ch.sahits.game/OpenPatricianJavaFX

  1. public PaginationV2Builder nextButtonNode(Node nextButtonNode) {
  2. if (nextButtonNode instanceof Polygon && withPolygonShading) {
  3. ((Polygon)nextButtonNode).setFill(Color.DARKGREEN);
  4. nextButtonNode.setOpacity(0.5);
  5. }
  6. this.nextButtonNode = new SimpleObjectProperty<>(this, "nextButtonNode", nextButtonNode);
  7. return this;
  8. }

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

  1. /**
  2. * @param processedView
  3. */
  4. private void setRight(Node processedView) {
  5. Platform.runLater(() -> {
  6. processedView.setOpacity(1);
  7. centerStackPane.getChildren().clear();
  8. centerStackPane.getChildren().add(processedView);
  9. });
  10. }

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

  1. /**
  2. * @param processedView
  3. */
  4. private void setCenter(Node processedView) {
  5. Platform.runLater(() -> {
  6. processedView.setOpacity(1);
  7. centerStackPane.getChildren().clear();
  8. centerStackPane.getChildren().add(processedView);
  9. });
  10. }

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

  1. /**
  2. * @param processedView
  3. */
  4. private void setRight(Node processedView) {
  5. Platform.runLater(() -> {
  6. processedView.setOpacity(1);
  7. rightStackPane.getChildren().clear();
  8. rightStackPane.getChildren().add(processedView);
  9. });
  10. }

代码示例来源:origin: com.jfoenix/jfoenix

  1. @Override
  2. public void initAnimation(Node contentContainer, Node overlay) {
  3. overlay.setOpacity(0);
  4. contentContainer.setTranslateX(contentContainer.getLayoutX()
  5. + contentContainer.getLayoutBounds().getMaxX());
  6. }

代码示例来源:origin: com.jfoenix/jfoenix

  1. @Override
  2. public void initAnimation(Node contentContainer, Node overlay) {
  3. overlay.setOpacity(0);
  4. contentContainer.setTranslateX(-(contentContainer.getLayoutX()
  5. + contentContainer.getLayoutBounds().getMaxX()));
  6. }

代码示例来源:origin: com.jfoenix/jfoenix

  1. @Override
  2. public void initAnimation(Node contentContainer, Node overlay) {
  3. overlay.setOpacity(0);
  4. contentContainer.setTranslateY(contentContainer.getLayoutY()
  5. + contentContainer.getLayoutBounds().getMaxY());
  6. }

代码示例来源:origin: org.controlsfx/controlsfx

  1. private void showFadeInAnimation(Duration fadeInDuration) {
  2. // Fade In
  3. Node skinNode = getSkin().getNode();
  4. skinNode.setOpacity(0);
  5. FadeTransition fadeIn = new FadeTransition(fadeInDuration, skinNode);
  6. fadeIn.setFromValue(0);
  7. fadeIn.setToValue(1);
  8. fadeIn.play();
  9. }

相关文章

Node类方法