public abstract class AbstractBaseImage extends AbstractBaseParams implements ImageParams
| Type | Property and Description |
|---|---|
ObjectProperty<ImageExtension> |
extension
Extension property.
|
StringProperty |
name
Name property.
|
StringProperty |
path
Path property.
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
backgroundLoading
The background loading.
|
private ObjectProperty<ImageExtension> |
extensionProperty
The image path.
|
private StringProperty |
nameProperty
The image path.
|
private StringProperty |
path
The image path.
|
private boolean |
preserveRatio
The preserve ratio.
|
private double |
requestedHeight
The requested height.
|
private double |
requestedWidth
The requested width.
|
private boolean |
smooth
The smooth.
|
PARAMETER_SEPARATOR| Constructor and Description |
|---|
AbstractBaseImage(String path,
String name,
ImageExtension extension)
Default Constructor.
|
AbstractBaseImage(String path,
String name,
ImageExtension extension,
double requestedWidth,
double requestedHeight,
boolean preserveRatio,
boolean smooth,
boolean backgroundLoading)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
backgroundLoading()
Background loading.
|
ImageExtension |
extension()
Gets the image extension.
|
ObjectProperty<ImageExtension> |
extensionProperty()
Extension property.
|
String |
name()
Gets the image name.
|
StringProperty |
nameProperty()
Name property.
|
String |
path()
Gets the image path.
|
StringProperty |
pathProperty()
Path property.
|
boolean |
preserveRatio()
Preserve ratio.
|
double |
requestedHeight()
Requested height.
|
double |
requestedWidth()
Requested width.
|
boolean |
smooth()
Smooth.
|
activateAutoRefresh, getFieldValues, getKey, hasChanged, hasChanged, readBoolean, readDouble, readInteger, setKey, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactivateAutoRefresh, getKey, hasChanged, hasChanged, parse, setKeyprivate final StringProperty path
private final StringProperty nameProperty
private final ObjectProperty<ImageExtension> extensionProperty
private final double requestedWidth
private final double requestedHeight
private final boolean preserveRatio
private final boolean smooth
private final boolean backgroundLoading
public AbstractBaseImage(String path, String name, ImageExtension extension)
path - the path of the image to loadname - the image file name to use.extension - the image extension to usepublic AbstractBaseImage(String path, String name, ImageExtension extension, double requestedWidth, double requestedHeight, boolean preserveRatio, boolean smooth, boolean backgroundLoading)
path - the path of the image to loadname - the image file name to use.extension - the image extension to userequestedWidth - the requested WidthrequestedHeight - the requested HeightpreserveRatio - the preserve Ratiosmooth - the smoothbackgroundLoading - the background loadingpublic String path()
path in interface ImageParamspublic StringProperty pathProperty()
public String name()
name in interface ImageParamspublic StringProperty nameProperty()
public ImageExtension extension()
extension in interface ImageParamspublic ObjectProperty<ImageExtension> extensionProperty()
public double requestedWidth()
public double requestedHeight()
public boolean preserveRatio()
public boolean smooth()
public boolean backgroundLoading()
Copyright © 2011–2014 JRebirth OSS. All rights reserved.