TransformationMatrix

A transformation matrix.

Methods:

addEventListener, catenateMatrix, changeCoordinates, getElements, invertMatrix, removeEventListener, rotateMatrix, scaleMatrix, shearMatrix, toSource, toSpecifier, translateMatrix

Objects:

Boolean, EventListeners, Events, Number, Object, String,

Property Listing

Property

Type

Access

Description

clockwiseShearAngle

Number

readonly

The shear angle of the transformation matrix.

counterclockwiseRotationAngle

Number

readonly

The rotation angle of the transformation matrix.

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

horizontalScaleFactor

Number

readonly

The horizontal scale factor of the transformation matrix.

horizontalTranslation

Number

readonly

The horizontal translation of the transformation matrix.

index

Number

readonly

The index of the TransformationMatrix within its containing object.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

matrixMapping

Array of 2 Arrays of 2 Reals.

readonly

The mapping the transformation matrix performs on the unit triangle. Can return: Array of Array of 2 Arrays of 2 Reals.

matrixValues

Array of Number

readonly

The values of the transformation matrix.

name

String

readonly

The name of the TransformationMatrix.

parent

Application

readonly

The parent of the TransformationMatrix (a Application).

properties

Object

read/write

A property that allows setting of several properties at the same time.

verticalScaleFactor

Number

readonly

The vertical scale factor of the transformation matrix.

verticalTranslation

Number

readonly

The vertical translation of the transformation matrix.

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

TransformationMatrix catenateMatrix (withMatrix:TransformationMatrix)

Multiply the transformation matrix by another.

Parameter

Type

Description

withMatrix

TransformationMatrix

The right hand matrix factor

Number changeCoordinates (point:Array of Number)

Multiply the point by the matrix.

Parameter

Type

Description

point

Array of Number

The point to transform

TransformationMatrix getElements ()

Resolves the object specifier, creating an array of object references.

TransformationMatrix invertMatrix ()

Invert the transformation matrix.

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

eventType

String

The registered event type.

handler

File

JavaScriptFunction

The registered event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

TransformationMatrix rotateMatrix (byAngle:Number, byCosine:Number, bySine:Number)

Rotate the transformation matrix.

Parameter

Type

Description

byAngle

Number

The counterclockwise rotation angle (Optional)

byCosine

Number

The cosine of the desired rotation (Optional)

bySine

Number

The sine of the desired rotation (Optional)

TransformationMatrix scaleMatrix (horizontallyBy:Number, verticallyBy:Number)

Scale the transformation matrix.

Parameter

Type

Description

horizontallyBy

Number

The horizontal scale factor (Optional)

verticallyBy

Number

The vertical scale factor (Optional)

TransformationMatrix shearMatrix (byAngle:Number, bySlope:Number)

Shear the transformation matrix.

Parameter

Type

Description

byAngle

Number

The horizontal shear angle (Optional)

bySlope

Number

The horizontal shear slope (Optional)

String toSource ()

Generates a string which, if executed, will return the TransformationMatrix.

String toSpecifier ()

Retrieves the object specifier.

TransformationMatrix translateMatrix (horizontallyBy:Number, verticallyBy:Number)

Translate the transformation matrix.

Parameter

Type

Description

horizontallyBy

Number

The horizontal translation distance (Optional)

verticallyBy

Number

The vertical translation distance (Optional)

Object of

Event.parent

EventListener.parent

MutationEvent.parent

Page.masterPageTransform

Return

TransformationMatrices.add()

FormField.transformValuesOf()

Button.transformValuesOf()

MultiStateObject.transformValuesOf()

CheckBox.transformValuesOf()

ComboBox.transformValuesOf()

ListBox.transformValuesOf()

RadioButton.transformValuesOf()

TextBox.transformValuesOf()

SignatureField.transformValuesOf()

Movie.transformValuesOf()

Sound.transformValuesOf()

Spread.transformValuesOf()

Page.transformValuesOf()

MasterSpread.transformValuesOf()

PageItem.transformValuesOf()

Oval.transformValuesOf()

Rectangle.transformValuesOf()

GraphicLine.transformValuesOf()

Polygon.transformValuesOf()

Group.transformValuesOf()

Image.transformValuesOf()

EPS.transformValuesOf()

PDF.transformValuesOf()

WMF.transformValuesOf()

PICT.transformValuesOf()

Graphic.transformValuesOf()

Guide.transformValuesOf()

SplineItem.transformValuesOf()

EPSText.transformValuesOf()

ImportedPage.transformValuesOf()

SVG.transformValuesOf()

MediaItem.transformValuesOf()

HtmlItem.transformValuesOf()

TextFrame.transformValuesOf()

EndnoteTextFrame.transformValuesOf()

TransformationMatrix.invertMatrix()

TransformationMatrix.catenateMatrix()

TransformationMatrix.getElements()

TransformationMatrices.anyItem()

TransformationMatrices.everyItem()

TransformationMatrices.itemByRange()

TransformationMatrices.nextItem()

TransformationMatrices.previousItem()

TransformationMatrices.item()

TransformationMatrices.[]()

TransformationMatrices.itemByName()

TransformationMatrices.firstItem()

TransformationMatrices.lastItem()

TransformationMatrices.middleItem()

TransformationMatrix.rotateMatrix()

TransformationMatrix.scaleMatrix()

TransformationMatrix.shearMatrix()

TransformationMatrix.translateMatrix()