public interface MultiDimensionImage
| Modifier and Type | Method and Description |
|---|---|
double |
getRatio() |
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.image.Image> |
imageProperty() |
javafx.beans.property.ReadOnlyDoubleProperty |
ratioProperty() |
static MultiDimensionImage |
singleDimension(javafx.scene.image.Image image)
Create a multi-dimension image who provides the same source image for any
dimension
|
static <O> MultiDimensionImage |
singleDimension(ThreadSynchronize threadSynchronize,
javafx.scene.image.Image placeholder,
O data,
java.util.function.Function<O,javafx.scene.image.Image> imageComputer)
Create a multi dimension image who is calculated lazily and uses the same
image for any dimension
|
static <O> MultiDimensionImage |
singleDimension(ThreadSynchronize threadSynchronize,
javafx.scene.image.Image placeholder,
O data,
java.util.function.Function<O,javafx.scene.image.Image> imageComputer,
<any> cache)
Create a multi dimension image who is calculated lazily and uses the same
image for any dimension
|
void |
updateDimension(double w,
double h)
Update the dimension
|
double getRatio()
javafx.beans.property.ReadOnlyDoubleProperty ratioProperty()
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.image.Image> imageProperty()
void updateDimension(double w,
double h)
w - the widthh - the heightstatic MultiDimensionImage singleDimension(javafx.scene.image.Image image)
image - the imagestatic <O> MultiDimensionImage singleDimension(ThreadSynchronize threadSynchronize, javafx.scene.image.Image placeholder, O data, java.util.function.Function<O,javafx.scene.image.Image> imageComputer)
threadSynchronize - helper to synchronize back to the UI threadplaceholder - a placeholder image to show while loadingdata - the domain object used a the input to create the imageimageComputer - function to compute the image (called outside the UI-Thread)static <O> MultiDimensionImage singleDimension(ThreadSynchronize threadSynchronize, javafx.scene.image.Image placeholder, O data, java.util.function.Function<O,javafx.scene.image.Image> imageComputer, <any> cache)
threadSynchronize - helper to synchronize back to the UI threadplaceholder - a placeholder image to show while loadingdata - the domain object used a the input to create the imageimageComputer - function to compute the image (called outside the UI-Thread)cache - added cache