java.lang.Object
javafx.scene.SnapshotParameters
public class SnapshotParameters extends Object
Parameters used to specify the rendering attributes for Node snapshot.
- Since:
- JavaFX 2.2
- 
Constructor SummaryConstructors Constructor Description SnapshotParameters()Constructs a new SnapshotParameters object with default values for all rendering attributes.
- 
Method SummaryModifier and Type Method Description CameragetCamera()Gets the current camera.PaintgetFill()Gets the current fill.TransformgetTransform()Gets the current transform.Rectangle2DgetViewport()Gets the current viewportbooleanisDepthBuffer()Gets the current depthBuffer flag.voidsetCamera(Camera camera)Sets the camera to the specified value.voidsetDepthBuffer(boolean depthBuffer)Sets the depthBuffer flag to the specified value.voidsetFill(Paint fill)Sets the fill to the specified value.voidsetTransform(Transform transform)Sets the transform to the specified value.voidsetViewport(Rectangle2D viewport)Sets the viewport used for rendering.
- 
Constructor Details- 
SnapshotParameterspublic SnapshotParameters()Constructs a new SnapshotParameters object with default values for all rendering attributes.
 
- 
- 
Method Details- 
isDepthBufferpublic boolean isDepthBuffer()Gets the current depthBuffer flag.- Returns:
- the depthBuffer flag
 
- 
setDepthBufferpublic void setDepthBuffer(boolean depthBuffer)Sets the depthBuffer flag to the specified value. The default value is false. Note that this is a conditional feature. SeeConditionalFeature.SCENE3D- Parameters:
- depthBuffer- the depthBuffer to set
 
- 
getCameraGets the current camera.- Returns:
- the camera
 
- 
setCameraSets the camera to the specified value. The default value is null, which means a ParallelCamera will be used.- Parameters:
- camera- the camera to set
 
- 
getTransformGets the current transform.- Returns:
- the transform
 
- 
setTransformSets 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
 
- 
getFillGets the current fill.- Returns:
- the fill
 
- 
setFillSets 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
 
- 
getViewportGets the current viewport- Returns:
- the viewport
 
- 
setViewportSets the viewport used for rendering. The viewport is specified in the parent coordinate system of the node being rendered. It is not transformed by the transform of this SnapshotParameters. If this viewport is non-null it is used instead of the bounds of the node being rendered and specifies the source rectangle that will be rendered into the image. In this case, the upper-left pixel of the viewport will map to the upper-left pixel (0,0) in the rendered image. If the viewport is null, then the entire area of the node defined by its boundsInParent, after first applying the transform of this SnapshotParameters, will be rendered. The default value is null.- Parameters:
- viewport- the viewport to set
 
 
-