Package javafx.scene
Class SnapshotParameters
java.lang.Object
javafx.scene.SnapshotParameters
Parameters used to specify the rendering attributes for Node snapshot.
- Since:
- JavaFX 2.2
-
Constructor Summary
ConstructorDescriptionConstructs a new SnapshotParameters object with default values for all rendering attributes. -
Method Summary
Modifier and TypeMethodDescriptiongetFill()
Gets the current fill.Gets the current transform.void
Sets the fill to the specified value.void
setTransform
(Transform transform) Sets the transform to the specified value.
-
Constructor Details
-
SnapshotParameters
public SnapshotParameters()Constructs a new SnapshotParameters object with default values for all rendering attributes.
-
-
Method Details
-
getTransform
Gets the current transform.- Returns:
- the transform
-
setTransform
Sets the transform to the specified value. This transform is applied to the node being rendered before any local transforms are applied. A value of null indicates that the identity transform should be used. The default value is null.- Parameters:
transform
- the transform to set
-
getFill
Gets the current fill.- Returns:
- the fill
-
setFill
Sets the fill to the specified value. This is used to fill the entire image being rendered prior to rendering the node. A value of null indicates that the color white should be used for the fill. The default value is null.- Parameters:
fill
- the fill to set
-