Package javafx.scene

Examples of javafx.scene.Node


 
  public Node createEngineFilterUI(EnginePoolFilterModel model, List<ProcessingEngineInfo> engineList){
    HBox hbox = new HBox(3);
    hbox.setAlignment(Pos.CENTER_LEFT);
    EngineSelectionWidget engineSelectionWidget = new EngineSelectionWidget(model, engineList);
    Node node = engineSelectionWidget.createContent();
    hbox.getChildren().add(node);
    return hbox;
  }
View Full Code Here


            BorderPane contentPanel = new BorderPane();
            contentPanel.getStyleClass().add("center-content-panel");
            VBox.setVgrow(contentPanel, Priority.ALWAYS);

            Node content = createCenterContent();
            if (content != null) {
                contentPanel.setCenter(content);
                contentPanel.setPadding(new Insets(0, 0, 12, 0));
            }
View Full Code Here

  private void addAnimation(ArrayList<KeyFrame> keyFrames, final AnimationPartBase annimation, long minTime){
    long startTimeMs = annimation.startTime-minTime;
    long endTimeMs = annimation.endTime-minTime;
   
    final Node node = annimation.createVisualRepresentation();
   
    KeyValue keyValueStartX = new KeyValue(node.translateXProperty(), annimation.startx);
    KeyValue keyValueStartY = new KeyValue(node.translateYProperty(), annimation.starty);
    KeyValue keyValueEndX = new KeyValue(node.translateXProperty(),annimation.endx);
    KeyValue keyValueEndY = new KeyValue(node.translateYProperty(), annimation.endy);
   

    KeyFrame keyFrame1 = new KeyFrame(Duration.millis(startTimeMs),
          new EventHandler<ActionEvent>(){
            @Override
            public void handle(ActionEvent event) {
              animationPane.getChildren().add(node);
            }
              },new KeyValue(node.opacityProperty(), 0));
    KeyFrame keyFrame2 = new KeyFrame(Duration.millis(startTimeMs), keyValueStartX, keyValueStartY);
    KeyFrame keyFrame3 = new KeyFrame(Duration.millis(startTimeMs+FADEDURATION),new KeyValue(node.opacityProperty(), 1));
    KeyFrame keyFrame4 = new KeyFrame(Duration.millis(startTimeMs+FADEDURATION), keyValueStartX, keyValueStartY);
    KeyFrame keyFrame5 = new KeyFrame(Duration.millis(endTimeMs-FADEDURATION),keyValueEndX,keyValueEndY);
    KeyFrame keyFrame6 = new KeyFrame(Duration.millis(endTimeMs-FADEDURATION), new KeyValue(node.opacityProperty(), 1));
    KeyFrame keyFrame7 = new KeyFrame(Duration.millis(endTimeMs),
        new EventHandler<ActionEvent>(){
          @Override
          public void handle(ActionEvent event) {
            animationPane.getChildren().remove(node);
          }
            },new KeyValue(node.opacityProperty(), 0));
   
   
    keyFrames.add(keyFrame1);
    keyFrames.add(keyFrame2);
    keyFrames.add(keyFrame3);
View Full Code Here

        copperDataProvider.restartAllError(hotfixModelModel.selectedEngine.get().getId());
      }
    });
        restartAll.getStyleClass().add("copperActionButton");
       
        Node engineSelectionWidget = new EngineSelectionWidget(hotfixModelModel,copperDataProvider.getEngineList()).createContent();
        HBox.setMargin(engineSelectionWidget, new Insets(3));
        pane.getChildren().add(engineSelectionWidget);
  }
View Full Code Here

    public Clouds(World world) {
        super(world);
        setTranslateZ(1100);
        for (int i = -2000; i < 1900; i += 300) {
            Node node = createNode(
                    i + rand.nextInt(200),
                    getNextY());
            getChildren().add(node);
        }
    }
View Full Code Here

                curentScale += Math.signum(e.getDeltaY()) * scalingStep;
                scaling.setToX(curentScale);
                scaling.setToY(curentScale);
                scaling.play();

                Node node = scaling.getNode();
                ((Region) node)
                        .setPrefSize(
                                Math.max(node.getBoundsInParent().getMaxX(), ZoomableScrollPane.this
                                        .getViewportBounds()
                                        .getWidth()),
                                Math.max(node.getBoundsInParent().getMaxY(), ZoomableScrollPane.this
                                        .getViewportBounds()
                                        .getHeight())
                        );
            }
        }
View Full Code Here

                // controller class
                return param == null ? null : injector.getInstance(param);
            }
        });

        final Node root = (Node) loader.load(url.openStream());

        // Prepares the result that is being returned after loading the FXML hierarchy.
        final Result result = new Result();
        result.location.set(loader.getLocation());
        result.resources.set(loader.getResources());
View Full Code Here

                // controller class
                return injector.getInstance(param);
            }
        });

        final Node root = (Node) loader.load(url.openStream());

        // Prepares the result that is being returned after loading the FXML hierarchy.
        final Result result = new Result();
        result.location.set(loader.getLocation());
        result.resources.set(loader.getResources());
View Full Code Here

    @Override
    protected void deleteElementNodes(ElementNodes elementNodes) {
    }

    private FXFormNode lookupNode(Element element, String suffix) {
        Node node = getNode().lookup("#" + element.getName() + suffix);
        if (node != null) {
            Property property = fxForm.getPropertyProvider().getProperty(node);
            if (property != null) {
                return new FXFormNodeWrapper(node, property);
            } else {
View Full Code Here

                toolBar.resizeRelocate(0,0,TOOLBAR_WIDTH,h);
                currentPane.relocate(TOOLBAR_WIDTH-10,0);
                currentPane.resize(w-TOOLBAR_WIDTH+10,h);
                sparePane.relocate(TOOLBAR_WIDTH-10,0);
                sparePane.resize(w-TOOLBAR_WIDTH+10,h);
                Node currentToolButton = toolBar.getChildren().get(currentToolIndex);
                arrowH.set(currentToolButton.getBoundsInParent().getMinY()+(currentToolButton.getLayoutBounds().getHeight()/2));
            }
        };
       
        // create toolbar background path
        Path toolBarBackground = createToolBarPath(null,Color.web("#606060"));
View Full Code Here

TOP

Related Classes of javafx.scene.Node

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.