Class TempState

java.lang.Object
com.sun.javafx.util.TempState

public final class TempState extends Object
* 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 Details

    • bounds

      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.
    • point

      public final Point2D point
      A temporary point used for picking and other purposes.
  • Method Details

    • getInstance

      public static TempState getInstance()