public class DelegatingMultiDimensionImage extends java.lang.Object implements MultiDimensionImage
MultiDimensionImage image who (asynchronously) calculates an image
for a provided dimension| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.image.Image> |
image |
javafx.beans.property.ReadOnlyDoubleProperty |
ratio |
| Modifier and Type | Method and Description |
|---|---|
static DelegatingMultiDimensionImage |
async(ThreadSynchronize threadSync,
<any> imageProvider)
Create an image who calculates the image asynchronously
|
double |
getRatio()
Gets the value of the property ratio.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.image.Image> |
imageProperty() |
javafx.beans.property.ReadOnlyDoubleProperty |
ratioProperty() |
static DelegatingMultiDimensionImage |
sync(<any> imageProvider)
Create an image who calculates the image synchronously
|
void |
updateDimension(double w,
double h)
Update the dimension
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsingleDimension, singleDimension, singleDimensionpublic javafx.beans.property.ReadOnlyDoubleProperty ratioProperty
ratioProperty in interface MultiDimensionImagegetRatio()public javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.image.Image> imageProperty
imageProperty in interface MultiDimensionImagepublic double getRatio()
getRatio in interface MultiDimensionImagepublic javafx.beans.property.ReadOnlyDoubleProperty ratioProperty()
ratioProperty in interface MultiDimensionImagegetRatio()public javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.image.Image> imageProperty()
imageProperty in interface MultiDimensionImagepublic void updateDimension(double w,
double h)
MultiDimensionImageupdateDimension in interface MultiDimensionImagew - the widthh - the heightpublic static DelegatingMultiDimensionImage async(ThreadSynchronize threadSync, <any> imageProvider)
threadSync - strategy to synchronize back to a the threadimageProvider - function producing a CompletableFuture calculating the
image in a background taskpublic static DelegatingMultiDimensionImage sync(<any> imageProvider)
imageProvider - the provider