Class ImmutableAffineTransform

java.lang.Object
java.awt.geom.AffineTransform
org.apache.sis.internal.referencing.j2d.ImmutableAffineTransform
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
AffineTransform2D

public class ImmutableAffineTransform extends AffineTransform
Overrides all mutable AffineTransform methods in order to check for permission before changing the transform state. If checkPermission() is defined to always throw an exception (which is the default), then AffineTransform is immutable.
Since:
0.5
Version:
1.2
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial number for inter-operability with different versions.
      See Also:
  • Constructor Details

    • ImmutableAffineTransform

      protected ImmutableAffineTransform()
      Constructs an identity affine transform. This is for subclasses usage only, for subclasses that override the checkPermission() method.
    • ImmutableAffineTransform

      public ImmutableAffineTransform(AffineTransform tr)
      Constructs a new transform that is a copy of the specified AffineTransform object.
      Parameters:
      tr - the affine transform to copy.
    • ImmutableAffineTransform

      public ImmutableAffineTransform(double[] elements)
      Constructs a new transform from an array of values representing either the 4 non-translation entries or the 6 specifiable entries of the 3×3 matrix.
      Parameters:
      elements - the matrix elements in an array of length 4 or 6.
    • ImmutableAffineTransform

      public ImmutableAffineTransform(double m00, double m10, double m01, double m11, double m02, double m12)
      Constructs a new transform from 6 values representing the 6 specifiable entries of the 3×3 transformation matrix. Those values are given unchanged to the super class constructor.
      Parameters:
      m00 - the X coordinate scaling.
      m10 - the Y coordinate shearing.
      m01 - the X coordinate shearing.
      m11 - the Y coordinate scaling.
      m02 - the X coordinate translation.
      m12 - the Y coordinate translation.
  • Method Details