APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.javafx.util

public final Class TempState

extends Object
Class Inheritance
Imports
com.sun.javafx.geom.BaseBounds, .RectBounds, com.sun.javafx.geom.transform.Affine3D, .BaseTransform, .GeneralTransform3D

* Temporary state, used to reduce the occurrence of temporary garbage * while computing things such as bounds and transforms, and while * picking. Since these operations happen extremely often and must be * very fast, we need to reduce the load on the garbage collector. * *

Field Summary

Modifier and TypeField and Description
public BaseBounds
bounds

A temporary rect used for computing bounds by the various bounds variables.

public final Affine3D
leafTx

A temporary affine transform used by the path transition to avoid creating temporary garbage.

public final BaseTransform
pickTx

A temporary affine transform used when picking to avoid creating temporary garbage.

public final Point2D
point

A temporary point used for picking and other purposes.

public final GeneralTransform3D
projViewTx

A temporary general transform used by LOD helper method, in node, to compute area in scene.

private static final ThreadLocal<TempState>
public final Affine3D
tempTx

A temporary affine transform used by the LOD helper method to get an affine transform.

public final Vec3d

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TempState
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

boundsback to summary
public BaseBounds bounds

A temporary rect used for computing bounds by the various bounds variables. This bounds starts life as a RectBounds, but may be promoted to a BoxBounds if there is a 3D transform mixed into its computation.

leafTxback to summary
public final Affine3D leafTx

A temporary affine transform used by the path transition to avoid creating temporary garbage.

pickTxback to summary
public final BaseTransform pickTx

A temporary affine transform used when picking to avoid creating temporary garbage.

pointback to summary
public final Point2D point

A temporary point used for picking and other purposes.

projViewTxback to summary
public final GeneralTransform3D projViewTx

A temporary general transform used by LOD helper method, in node, to compute area in scene.

tempStateRefback to summary
private static final ThreadLocal<TempState> tempStateRef
tempTxback to summary
public final Affine3D tempTx

A temporary affine transform used by the LOD helper method to get an affine transform.

vec3dback to summary
public final Vec3d vec3d

Constructor Detail

TempStateback to summary
private TempState()

Method Detail

getInstanceback to summary
public static TempState getInstance()