org.jhotdraw8.draw.popup.Picker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.jhotdraw8.draw Show documentation
Show all versions of org.jhotdraw8.draw Show documentation
JHotDraw8 Drawing Framework
The newest version!
/*
* @(#)Picker.java
* Copyright © 2023 The authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.draw.popup;
import javafx.scene.Node;
import java.util.function.BiConsumer;
public interface Picker {
/**
* @param anchor anchor node will be blocked by the picker
* @param screenX desired screen coordinate
* @param screenY desired screen coordinate
* @param initialValue initial value
* @param callback callback when a value was selected (true), or
* reset to the initial value (false).
*/
void show(Node anchor, double screenX, double screenY,
T initialValue,
BiConsumer callback);
}