public final class NodeImage extends NodeElement
Constructor and Description |
---|
NodeImage()
Constructs a new
NodeImage that by default auto stretches to fit the given bounds. |
Modifier and Type | Method and Description |
---|---|
double |
getOpacity()
Returns the opacity of this image.
|
boolean |
isImageStretch()
Returns
true if the image is stretched within its bounding box; false otherwise. |
void |
setBindingSource(NodeValueRenderer action)
Sets the source for this image using
NodeValueRenderer . |
void |
setBindingSource(String source)
Sets the source for this image.
|
void |
setImageStretch(boolean imageStretch)
Sets whether the image must stretch within its bounding box.
|
void |
setOpacity(double opacity)
Sets the opacity for this image.
|
getAlignment, getBackgroundColor, getBindingValuesPublic, getElementType, getHeight, getMargin, getMargin, getName, getWidth, setAlignment, setBackgroundColor, setHeight, setMargin, setName, setWidth
public NodeImage()
NodeImage
that by default auto stretches to fit the given bounds.public void setBindingSource(String source)
source
- the fixed URL, or the path of media field.public void setBindingSource(NodeValueRenderer action)
NodeValueRenderer
.action
- an implementation of NodeValueRenderer
.public double getOpacity()
public void setOpacity(double opacity)
opacity
- the multiplicative opacity for this image.public boolean isImageStretch()
true
if the image is stretched within its bounding box; false
otherwise.public void setImageStretch(boolean imageStretch)
imageStretch
- a boolean value