public class SingleMultiDimensionImage extends java.lang.Object implements MultiDimensionImage
| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.image.Image> |
image |
javafx.beans.property.ReadOnlyDoubleProperty |
ratio |
| Constructor and Description |
|---|
SingleMultiDimensionImage(javafx.scene.image.Image img)
Create a new image
|
SingleMultiDimensionImage(ThreadSynchronize threadSynchronize,
javafx.scene.image.Image placeholder,
O data,
java.util.function.Function<O,javafx.scene.image.Image> imageComputer,
<any> cache)
Create a new image who is calculated in a background thread.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getRatio()
Gets the value of the property ratio.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.scene.image.Image> |
imageProperty() |
javafx.beans.property.ReadOnlyDoubleProperty |
ratioProperty() |
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 SingleMultiDimensionImage(javafx.scene.image.Image img)
img - the one and only imagepublic SingleMultiDimensionImage(ThreadSynchronize threadSynchronize,
javafx.scene.image.Image placeholder,
O data,
java.util.function.Function<O,javafx.scene.image.Image> imageComputer,
<any> cache)
threadSynchronize - synchronize to ui threadplaceholder - image used as a placeholder presented while computingdata - the domain object the image is computed forimageComputer - function to compute the imagepublic 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 height