java.lang.Object
javafx.scene.effect.Effect
javafx.scene.effect.ImageInput
A type of source effect that simply passes the given
Image
through, unmodified, as an input to another Effect
.- Since:
- JavaFX 2.0
-
Property Summary
TypePropertyDescriptionfinal ObjectProperty<Image>
The sourceImage
.final DoubleProperty
Sets the x location of the source image, relative to the local coordinate space of the contentNode
.final DoubleProperty
Sets the y location of the source image, relative to the local coordinate space of the contentNode
. -
Constructor Summary
ConstructorDescriptionCreates a new instance of ImageInput with default parameters.ImageInput
(Image source) Creates a new instance of ImageInput with the specified source.ImageInput
(Image source, double x, double y) Creates a new instance of ImageInput with the specified source, x and y. -
Method Summary
Modifier and TypeMethodDescriptionfinal Image
Gets the value of thesource
property.final double
getX()
Gets the value of thex
property.final double
getY()
Gets the value of they
property.final void
Sets the value of thesource
property.final void
setX
(double value) Sets the value of thex
property.final void
setY
(double value) Sets the value of they
property.final ObjectProperty<Image>
The sourceImage
.final DoubleProperty
Sets the x location of the source image, relative to the local coordinate space of the contentNode
.final DoubleProperty
Sets the y location of the source image, relative to the local coordinate space of the contentNode
.
-
Property Details
-
source
The sourceImage
.- See Also:
-
x
Sets the x location of the source image, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- See Also:
-
y
Sets the y location of the source image, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- See Also:
-
-
Constructor Details
-
ImageInput
public ImageInput()Creates a new instance of ImageInput with default parameters. -
ImageInput
Creates a new instance of ImageInput with the specified source.- Parameters:
source
- the sourceImage
.- Since:
- JavaFX 2.1
-
ImageInput
Creates a new instance of ImageInput with the specified source, x and y.- Parameters:
source
- the sourceImage
.x
- the x location of the source imagey
- the y location of the source image- Since:
- JavaFX 2.1
-
-
Method Details
-
setSource
Sets the value of thesource
property.- Property description:
- The source
Image
. - Parameters:
value
- the value for thesource
property- See Also:
-
getSource
Gets the value of thesource
property.- Property description:
- The source
Image
. - Returns:
- the value of the
source
property - See Also:
-
sourceProperty
The sourceImage
.- Returns:
- the
source
property - See Also:
-
setX
public final void setX(double value) Sets the value of thex
property.- Property description:
- Sets the x location of the source image, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- Parameters:
value
- the value for thex
property- See Also:
-
getX
public final double getX()Gets the value of thex
property.- Property description:
- Sets the x location of the source image, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- Returns:
- the value of the
x
property - See Also:
-
xProperty
Sets the x location of the source image, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- Returns:
- the
x
property - See Also:
-
setY
public final void setY(double value) Sets the value of they
property.- Property description:
- Sets the y location of the source image, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- Parameters:
value
- the value for they
property- See Also:
-
getY
public final double getY()Gets the value of they
property.- Property description:
- Sets the y location of the source image, relative to the
local coordinate space of the content
Node
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- Returns:
- the value of the
y
property - See Also:
-
yProperty
Sets the y location of the source image, relative to the local coordinate space of the contentNode
.Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
- Returns:
- the
y
property - See Also:
-