@Override public ImageView view() { return new ImageView(load()); }
public ImageView view() { return new ImageView(image()); }
public ImageView view(Document node) { return new ImageView(load(node)); }
@Override public ImageView createNode() { final ImageView view = new ImageView(); view.setPreserveRatio(true); view.setFitHeight(48); brand.logoLarge() .map(Image::new) .ifPresent(view::setImage); return view; }
final InputStream stream = SpeedmentIcon.class.getResourceAsStream(path.get()); if (stream != null) { return new ImageView(new Image(stream)); } else { LOGGER.error(
/** * Creates a container with the given animation type and duration. * * @param duration the duration of the animation * @param animationProducer the {@link KeyFrame} instances that define the animation */ public ExtendedAnimatedFlowContainer(Duration duration, Function<AnimatedFlowContainer, List<KeyFrame>> animationProducer) { this.view = new StackPane(); this.duration = duration; this.animationProducer = animationProducer; placeholder = new ImageView(); placeholder.setPreserveRatio(true); placeholder.setSmooth(true); }
@Override public void cache(Pane node) { if (!cache.containsKey(node)) { SnapshotParameters snapShotparams = new SnapshotParameters(); snapShotparams.setFill(Color.TRANSPARENT); WritableImage temp = node.snapshot(snapShotparams, new WritableImage((int) node.getLayoutBounds().getWidth(), (int) node.getLayoutBounds().getHeight())); ImageView tempImage = new ImageView(temp); tempImage.setCache(true); tempImage.setCacheHint(CacheHint.SPEED); cache.put(node, new ArrayList<>(node.getChildren())); node.getChildren().setAll(tempImage); } }
@Override public Node graphic() { return new ImageView("images/sejda32.png"); } },
@Override public Node graphic() { return new ImageView("images/enhanced32.png"); } },
@Override public Node graphic() { return new ImageView("images/visual32.png"); } },
@Override public Node graphic() { return new ImageView("extract.png"); }
@Override public Node graphic() { return new ImageView("merge.png"); }
@Override public Node graphic() { return new ImageView("rotate.png"); }
@Override public Node graphic() { return new ImageView("split.png"); }
private void showDialog() { if (dialogContainer == null) { throw new RuntimeException("ERROR: JFXDialog container is not set!"); } if (isCacheContainer()) { tempContent = new ArrayList<>(dialogContainer.getChildren()); SnapshotParameters snapShotparams = new SnapshotParameters(); snapShotparams.setFill(Color.TRANSPARENT); WritableImage temp = dialogContainer.snapshot(snapShotparams, new WritableImage((int) dialogContainer.getWidth(), (int) dialogContainer.getHeight())); ImageView tempImage = new ImageView(temp); tempImage.setCache(true); tempImage.setCacheHint(CacheHint.SPEED); dialogContainer.getChildren().setAll(tempImage, this); } else { //prevent error if opening an already opened dialog dialogContainer.getChildren().remove(this); tempContent = null; dialogContainer.getChildren().add(this); } if (animation != null) { animation.play(); } else { setVisible(true); setOpacity(1); Event.fireEvent(JFXDialog.this, new JFXDialogEvent(JFXDialogEvent.OPENED)); } }
@Provides @Prototype public ImageView payoff() { return new ImageView(this.getClass().getResource("/images/payoff.png").toExternalForm()); }
icon = new ImageView(new Image(hasIcon.getIconPath())); } else { icon = SpeedmentIcon.forNode(item);
new WritableImage((int) monthContent.getWidth(), (int) monthContent.getHeight())); ImageView tempImage = new ImageView(temp); calendarPlaceHolder.getChildren().add(calendarPlaceHolder.getChildren().size() - 2, tempImage); TranslateTransition imageTransition = new TranslateTransition(Duration.millis(160), tempImage);
@Inject public BannerPane(BannerButtons buttons, ImageView payoff, @Named("logo32") Image logo) { getStyleClass().add("pdfsam-banner"); current.getStyleClass().add("header-title"); HBox.setHgrow(buttons, Priority.ALWAYS); HBox logoView = new HBox(); logoView.getStyleClass().add("pdfsam-logo"); logoView.getChildren().addAll(new ImageView(logo), payoff); getChildren().addAll(logoView, current, buttons); eventStudio().addAnnotatedListeners(this); }