Interface TransformCachingFigure

All Superinterfaces:
Figure, PropertyBean, StyleableBean, StyleablePropertyBean, TreeNode<Figure>
All Known Subinterfaces:
NonTransformableFigure, TransformableFigure
All Known Implementing Classes:
AbstractCompositeFigure, AbstractDrawing, AbstractElbowLineConnectionWithMarkersFigure, AbstractFigure, AbstractLabelConnectionFigure, AbstractLabelFigure, AbstractLeafFigure, AbstractLineConnectionFigure, AbstractPathConnectionWithMarkersFigure, AbstractRegionFigure, AbstractStraightLineConnectionWithMarkersFigure, AbstractViewBoxDrawing, ArcFigure, BezierPathFigure, ClippingFigure, CombinedPathFigure, EllipseFigure, GroupFigure, ImageFigure, LabelFigure, LayerFigure, LineConnectionFigure, LineConnectionWithMarkersFigure, LineFigure, PageFigure, PageLabelFigure, PolygonFigure, PolylineFigure, RectangleFigure, RegionFigure, SimpleDrawing, SimpleLabelConnectionFigure, SimpleLayeredDrawing, SliceFigure, TextAreaFigure, TextFigure

public interface TransformCachingFigure extends Figure
TransformCachingFigure.

This implementation is somewhat inefficient because we store the cached values in a map.

Author:
Werner Randelshofer
  • Field Details

  • Method Details

    • getCachedLocalToWorld

      @Nullable javafx.scene.transform.Transform getCachedLocalToWorld()
    • setCachedLocalToWorld

      void setCachedLocalToWorld(@Nullable javafx.scene.transform.Transform newValue)
    • getCachedParentToWorld

      @Nullable javafx.scene.transform.Transform getCachedParentToWorld()
    • setCachedParentToWorld

      void setCachedParentToWorld(@Nullable javafx.scene.transform.Transform newValue)
    • getCachedWorldToLocal

      @Nullable javafx.scene.transform.Transform getCachedWorldToLocal()
    • setCachedWorldToLocal

      void setCachedWorldToLocal(@Nullable javafx.scene.transform.Transform newValue)
    • getCachedWorldToParent

      @Nullable javafx.scene.transform.Transform getCachedWorldToParent()
    • setCachedWorldToParent

      void setCachedWorldToParent(@Nullable javafx.scene.transform.Transform newValue)
    • getParentToWorld

      default javafx.scene.transform.Transform getParentToWorld()
      Description copied from interface: Figure
      Returns the transformation from world coordinates into drawing coordinates.

      This method may use caching and return incorrect results if the cache is stale.

      Specified by:
      getParentToWorld in interface Figure
      Returns:
      the transformation
    • getLocalToWorld

      default javafx.scene.transform.Transform getLocalToWorld()
      Description copied from interface: Figure
      Returns the transformation from local coordinates into world coordinates.

      This method may use caching and return incorrect results if the cache is stale.

      Specified by:
      getLocalToWorld in interface Figure
      Returns:
      the transformation
    • getWorldToLocal

      default javafx.scene.transform.Transform getWorldToLocal()
      Description copied from interface: Figure
      Returns the transformation from world coordinates into local coordinates.

      This method may use caching and return incorrect results if the cache is stale.

      Specified by:
      getWorldToLocal in interface Figure
      Returns:
      the transformation
    • getWorldToParent

      default javafx.scene.transform.Transform getWorldToParent()
      Description copied from interface: Figure
      Returns the transformation from world coordinates into parent coordinates.

      This method may use caching and return incorrect results if the cache is stale.

      Specified by:
      getWorldToParent in interface Figure
      Returns:
      the transformation
    • getCachedLocalToParent

      @Nullable javafx.scene.transform.Transform getCachedLocalToParent()
    • setCachedLocalToParent

      void setCachedLocalToParent(@Nullable javafx.scene.transform.Transform newValue)
    • getCachedParentToLocal

      @Nullable javafx.scene.transform.Transform getCachedParentToLocal()
    • setCachedParentToLocal

      void setCachedParentToLocal(@Nullable javafx.scene.transform.Transform newValue)
    • invalidateTransforms

      default void invalidateTransforms()
      Description copied from interface: Figure
      Invalidates the transformation matrices of this figure.

      This figure does not keep track of changes that cause the invalidation of its transformation matrices. Use a DrawingModel to manage the transformation matrices of the figures in a drawing. Or call this method on a figure and all its descendants, after you have performed a change which invalidated the transform matrices of the figure.

      Specified by:
      invalidateTransforms in interface Figure