public class RMTransform extends RMObject
Modifier and Type | Field and Description |
---|---|
float |
_a |
float |
_b |
float |
_c |
float |
_d |
float |
_tx |
float |
_ty |
static RMTransform |
identity |
Constructor and Description |
---|
RMTransform()
Creates a new identity transform.
|
RMTransform(float a,
float b,
float c,
float d,
float tx,
float ty)
Creates a transform initialized to given matrix components.
|
RMTransform(float dx,
float dy,
float angle,
float sx,
float sy,
float skx,
float sky)
Create a transform with translation, rotation, and skew.
|
RMTransform(float dx,
float dy,
float anAngle,
float porx,
float pory,
float sx,
float sy,
float skx,
float sky)
Creates a transform with translation and given rotation/skew about a point.
|
RMTransform(RMTransform aTransform)
Creates a new transform from a given transform.
|
Modifier and Type | Method and Description |
---|---|
float |
a()
Returns the first component of the transform matrix.
|
java.awt.geom.AffineTransform |
awt()
Returns AWT version of transform for use with Java2D (caching it if needed).
|
float |
b()
Returns the second component of the transform matrix.
|
float |
c()
Returns the third component of the transform matrix.
|
float |
d()
Returns the fourth component of the transform matrix.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
RMTransform |
invert()
Inverts this transform (and returns this for convenience).
|
boolean |
isIdentity()
Returns whether this transform is identity.
|
RMTransform |
multiply(float a,
float b,
float c,
float d,
float tx,
float ty)
Multiplies this transform by the given transform components (return this for convenience).
|
RMTransform |
multiply(RMTransform aTransform)
Multiplies this transform by the given transform.
|
RMTransform |
rotate(float anAngle)
Rotates this transform by given angle in degrees (returns this for convenience).
|
RMTransform |
scale(float sx,
float sy)
Scales this transform by given scale x and scale y (returns this for convenience).
|
RMTransform |
skew(float aSkewX,
float aSkewY)
Skews this transform by given skew x and skew y angles in degrees (returns this for convenience).
|
java.lang.String |
toString()
Returns a string representation of the transform.
|
RMPoint |
transform(RMPoint aPoint)
Transforms the given point.
|
RMRect |
transform(RMRect aRect)
Transforms the given rect.
|
RMSize |
transform(RMSize aSize)
Transforms the given size.
|
RMSize |
transformVector(RMSize aSize)
Transforms the given size as a vector (preserves negative values).
|
RMTransform |
translate(float dx,
float dy)
Translates this transform by given x & y (returns this for convenience).
|
float |
tx()
Returns the x translation component of the transform matrix.
|
float |
ty()
Returns the y translation component of the transform matrix.
|
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public float _a
public float _b
public float _c
public float _d
public float _tx
public float _ty
public static final RMTransform identity
public RMTransform()
public RMTransform(RMTransform aTransform)
public RMTransform(float a, float b, float c, float d, float tx, float ty)
public RMTransform(float dx, float dy, float angle, float sx, float sy, float skx, float sky)
public RMTransform(float dx, float dy, float anAngle, float porx, float pory, float sx, float sy, float skx, float sky)
public float a()
public float b()
public float c()
public float d()
public float tx()
public float ty()
public boolean isIdentity()
public RMTransform translate(float dx, float dy)
public RMTransform rotate(float anAngle)
public RMTransform scale(float sx, float sy)
public RMTransform skew(float aSkewX, float aSkewY)
public RMTransform multiply(RMTransform aTransform)
public RMTransform multiply(float a, float b, float c, float d, float tx, float ty)
public RMTransform invert()
public RMSize transformVector(RMSize aSize)
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
public java.awt.geom.AffineTransform awt()
public java.lang.String toString()
toString
in class java.lang.Object