Examples of ImageView


Examples of javafx.scene.image.ImageView

        }
      }
    });
    pause.disableProperty().bind(play.selectedProperty().not());
       
        play.setGraphic(new ImageView(new Image(getClass().getResourceAsStream("/de/scoopgmbh/copper/gui/icon/play.png"))));
        pause.setGraphic(new ImageView(new Image(getClass().getResourceAsStream("/de/scoopgmbh/copper/gui/icon/pause.png"))));
  }
View Full Code Here

Examples of javafx.scene.image.ImageView

    private int getNextY(){
        return rand.nextInt(800)-200;
    }
   
    public static Node createNode(double x, double y) {
        ImageView imageView = new ImageView(image);
        imageView.setTranslateX(x);
        imageView.setTranslateY(y);
        return imageView;
    }
View Full Code Here

Examples of javafx.scene.image.ImageView

        assert filterPane !=null;
       
        workflowClass.textProperty().bindBidirectional(model.version.classname );
       
        searchMenueItem.setContent(formContext.createWorkflowClassesTreeForm(this).createContent());
        serachbutton.setGraphic(new ImageView(new Image(getClass().getResourceAsStream("/de/scoopgmbh/copper/gui/icon/search.png"))));
       
        searchMenueItem.getStyleClass().setAll("noSelectAnimationMenueItem","menu-item");
  }
View Full Code Here

Examples of javafx.scene.image.ImageView

  @Override
  public List<? extends Node> getContributedButtons(MessageProvider messageProvider) {
    List<Button> contributedButtons = new ArrayList<Button>();
   
    final Button expandButton = new Button("",new ImageView(new Image(getClass().getResourceAsStream("/de/scoopgmbh/copper/gui/icon/expandall.png"))));
    expandButton.setTooltip(new Tooltip(messageProvider.getText(MessageKey.filterAbleForm_button_expandall)));
    expandButton.setOnAction(new EventHandler<ActionEvent>() {
        @Override public void handle(ActionEvent e) {         
          expandAll(workflowView.getRoot());
        }
    });
    contributedButtons.add(expandButton);
   
    final Button collapseButton = new Button("",new ImageView(new Image(getClass().getResourceAsStream("/de/scoopgmbh/copper/gui/icon/collapseall.png"))));
    collapseButton.setTooltip(new Tooltip(messageProvider.getText(MessageKey.filterAbleForm_button_collapseall)));
    collapseButton.setOnAction(new EventHandler<ActionEvent>() {
        @Override public void handle(ActionEvent e) {         
        for(TreeItem<DisplayWorkflowClassesModel> child : workflowView.getRoot().getChildren()) {
          collapseAll(child);
View Full Code Here

Examples of javafx.scene.image.ImageView

   * @param smooth
   *            {@linkplain Image#isSmooth()}
   * @return the {@linkplain ImageView}
   */
  public static ImageView imgView(final Image image, final boolean smooth) {
    final ImageView node = new ImageView(image);
    node.setSmooth(smooth);
    node.setCache(true);
    node.setCacheHint(CacheHint.SPEED);
    return node;
  }
View Full Code Here

Examples of javafx.scene.image.ImageView

            public void onChanged(Change change) {
                constraintsBox.getChildren().clear();
                for (Object o : controller.getConstraintViolations()) {
                    ConstraintViolation constraintViolation = (ConstraintViolation) o;
                    Label errorLabel = new Label(constraintViolation.getMessage());
                    ImageView warningView = new ImageView(WARNING);
                    warningView.setFitHeight(15);
                    warningView.setPreserveRatio(true);
                    warningView.setSmooth(true);
                    errorLabel.setGraphic(warningView);
                    constraintsBox.getChildren().add(errorLabel);
                }
            }
        });
View Full Code Here

Examples of javafx.scene.image.ImageView

                    super.setText(null);
                    super.setGraphic(null);
                } else {
                    final String filename = FLAG_ICON_LOCATION + item.name().toLowerCase() + FLAG_ICON_EXTENSION;
                    final Image countryImage = new Image(MainController.class.getClassLoader().getResourceAsStream(filename));
                    final ImageView imageView = new ImageView();
                    imageView.setImage(countryImage);
                    // create tooltip with country code
                    final Tooltip tooltip = new Tooltip();
                    tooltip.setText(item.name());
                    super.setGraphic(imageView);
                    super.setTooltip(tooltip);
View Full Code Here

Examples of javax.swing.text.html.ImageView

                } catch (Exception e) {
                    throw new RuntimeException("The test failed", e);
                }

                Element elem = doc.getElement("test");
                ImageView iv = new ImageView(elem);

                if (iv.getLoadingImageIcon() == null) {
                    throw new RuntimeException("getLoadingImageIcon returns null");
                }

                if (iv.getNoImageIcon() == null) {
                    throw new RuntimeException("getNoImageIcon returns null");
                }
            }
        });
    }
View Full Code Here

Examples of org.apache.pivot.wtk.ImageView

        prompt.setContent(content);

        // Set the type image
        TerraTheme theme = (TerraTheme)Theme.getTheme();

        ImageView typeImageView = (ImageView)wtkxSerializer.get("typeImageView");
        typeImageView.setImage(theme.getMessageIcon(prompt.getMessageType()));

        // Set the message
        Label messageLabel = (Label)wtkxSerializer.get("messageLabel");
        String message = prompt.getMessage();
        messageLabel.setText(message);
View Full Code Here

Examples of org.apache.pivot.wtk.ImageView

        alert.setContent(content);

        // Set the type image
        TerraTheme theme = (TerraTheme)Theme.getTheme();

        ImageView typeImageView = (ImageView)wtkxSerializer.get("typeImageView");
        typeImageView.setImage(theme.getMessageIcon(alert.getMessageType()));

        // Set the message
        Label messageLabel = (Label)wtkxSerializer.get("messageLabel");
        String message = alert.getMessage();
        messageLabel.setText(message);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.