public class ImageBuilder
extends java.lang.Object
implements javafx.util.Builder<javafx.scene.image.Image>
Constructor and Description |
---|
ImageBuilder() |
Modifier and Type | Method and Description |
---|---|
@NonNull ImageBuilder |
backgroundLoading(boolean backgroundLoading)
Load the image in background
|
@NonNull javafx.scene.image.Image |
build() |
static @NonNull ImageBuilder |
create() |
@NonNull ImageBuilder |
preserveRatio(boolean preserveRatio)
true to preserve the ratio |
@NonNull ImageBuilder |
requestedHeight(double requestedHeight)
The requested height
|
@NonNull ImageBuilder |
requestedWidth(double requestedWidth)
The requested width
|
@NonNull ImageBuilder |
smooth(boolean smooth)
true to smooth the image when scaling |
@NonNull ImageBuilder |
url(@Nullable java.lang.String url)
Add an url property
|
public static @NonNull ImageBuilder create()
public @NonNull ImageBuilder url(@Nullable java.lang.String url)
url
- the urlImage.Image(String, double, double, boolean, boolean, boolean)
public @NonNull ImageBuilder requestedWidth(double requestedWidth)
requestedWidth
- the widthImage.Image(String, double, double, boolean, boolean, boolean)
public @NonNull ImageBuilder requestedHeight(double requestedHeight)
requestedHeight
- the heightImage.Image(String, double, double, boolean, boolean, boolean)
public @NonNull ImageBuilder preserveRatio(boolean preserveRatio)
true
to preserve the ratiopreserveRatio
- preserve the ratiopublic @NonNull ImageBuilder smooth(boolean smooth)
true
to smooth the image when scalingsmooth
- turn on/off smoothingpublic @NonNull ImageBuilder backgroundLoading(boolean backgroundLoading)
backgroundLoading
- turn on/off background loadingpublic @NonNull javafx.scene.image.Image build()
build
in interface javafx.util.Builder<javafx.scene.image.Image>