Class Transform

java.lang.Object
javafx.scene.transform.Transform
Direct Known Subclasses:
Rotate, Scale, Translate

public abstract class Transform extends Object
Author:
Bruno Salmon
  • Constructor Details

    • Transform

      public Transform()
  • Method Details

    • transform

      public abstract Point2D transform(double x, double y)
      Transforms the specified point by this transform. This method can be used only for 2D transforms.
      Parameters:
      x - the X coordinate of the point
      y - the Y coordinate of the point
      Returns:
      the transformed point
    • transform

      public Point2D transform(Point2D point)
      Transforms the specified point by this transform. This method can be used only for 2D transforms.
      Parameters:
      point - the point to be transformed
      Returns:
      the transformed point
      Throws:
      NullPointerException - if the specified point is null
    • createInverse

      public abstract Transform createInverse()
      Returns the inverse transform of this transform.
      Returns:
      the inverse transform
    • inverseTransform

      public Point2D inverseTransform(Point2D point)
    • toAffine

      public Affine toAffine()
    • createAffine

      protected abstract Affine createAffine()
    • transformChanged

      protected void transformChanged()
    • inverseTransform

      public Point2D inverseTransform(double x, double y)