Skip to content

Instantly share code, notes, and snippets.

@DanskerDave
DanskerDave / PlutoExplorerExtended.java
Created June 27, 2022 06:03
PlutoExplorerExtended : a take on the well known PlutoExplorer ("Zoomable and Pannable JavaFX ImageView Example")
package dk.danskerdave.javafx.image;
import java.util.stream.IntStream;
import javafx.application.Application;
import javafx.beans.property.*;
import javafx.geometry.*;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.control.Alert.AlertType;
@DanskerDave
DanskerDave / PlutoExplorer.java
Last active July 2, 2022 08:23 — forked from james-d/PlutoExplorer.java
Zoomable and Pannable JavaFX ImageView Example
import javafx.application.Application;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.geometry.Insets;
import javafx.geometry.Point2D;
import javafx.geometry.Pos;
import javafx.geometry.Rectangle2D;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Hyperlink;