All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jhotdraw8.draw.popup.Picker Maven / Gradle / Ivy

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy