org.jhotdraw8.draw.figure.ImageableFigure 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!
/*
* @(#)ImageableFigure.java
* Copyright © 2023 The authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.draw.figure;
import javafx.scene.image.ImageView;
import org.jhotdraw8.draw.key.NullableUriStyleableKey;
/**
* Mixin interface for figures that have an image source.
*/
public interface ImageableFigure extends Figure {
/**
* The URI of the image.
*
* This property should also be set on an {@link ImageView} node that
* is generated by the figure.
*/
NullableUriStyleableKey IMAGE_URI = new NullableUriStyleableKey("src", null);
}