| Package | com.degrafa.transform |
| Class | public class TransformBase |
| Inheritance | TransformBase DegrafaObject |
| Implements | ITransform |
| Subclasses | MatrixTransform, RotateTransform, ScaleTransform, SkewTransform, Transform, TransformGroup, TranslateTransform |
| Property | Defined by | ||
|---|---|---|---|
| angle : Number [read-only]
| TransformBase | ||
| centerX : Number
The center point of the transform along the x-axis.
| TransformBase | ||
| centerY : Number
The center point of the transform along the y-axis.
| TransformBase | ||
| data : String | TransformBase | ||
![]() | document : Object
The MXML document that created this object.
| DegrafaObject | |
![]() | enableEvents : Boolean
Enable events for this object.
| DegrafaObject | |
![]() | hasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
| DegrafaObject | |
![]() | id : String
The identifier used by document to refer to this object.
| DegrafaObject | |
| invalidated : Boolean
Specifies whether this object's matrix is to be re calculated
on the next request.
| TransformBase | ||
| isIdentity : Boolean [read-only]
Boolean value indicating whether this transform will have no effect on the coordinate space of a target
| TransformBase | ||
![]() | isInitialized : Boolean | DegrafaObject | |
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
![]() | objectBindings : Array | DegrafaObject | |
![]() | parent : IDegrafaObject
The current degrafa object parent.
| DegrafaObject | |
| registrationPoint : String
A value defining one of 9 possible registration points.
| TransformBase | ||
| scaleX : Number [read-only]
| TransformBase | ||
| scaleY : Number [read-only]
| TransformBase | ||
| skewX : Number [read-only]
| TransformBase | ||
| skewY : Number [read-only]
| TransformBase | ||
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
| transformMatrix : Matrix
The internal matrix calculated from the exposed transform properties.
| TransformBase | ||
| x : Number [read-only]
| TransformBase | ||
| y : Number [read-only]
| TransformBase | ||
| Property | Defined by | ||
|---|---|---|---|
| _angle : Number = 0 | TransformBase | ||
| _centerX : Number = NaN | TransformBase | ||
| _centerY : Number = NaN | TransformBase | ||
![]() | eventDispatcher : EventDispatcher
EventDispatcher instance for this object.
| DegrafaObject | |
| _registrationPoint : String | TransformBase | ||
| _scaleX : Number = 1 | TransformBase | ||
| _scaleY : Number = 1 | TransformBase | ||
| _skewX : Number = 0 | TransformBase | ||
| _skewY : Number = 0 | TransformBase | ||
| _transformMatrix : Matrix | TransformBase | ||
| _tx : Number = 0 | TransformBase | ||
| _ty : Number = 0 | TransformBase | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
| DegrafaObject | |
![]() |
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
| DegrafaObject | |
![]() |
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
| DegrafaObject | |
|
getRegPoint(value:IGeometryComposition):Point
Retrieves the registration offset for the Geometry target.
| TransformBase | ||
|
getRegPointForRectangle(rectangle:Rectangle):Point
Detetermines the transformation registration point based on this transform's settings for an arbitrary Rectangle.
| TransformBase | ||
|
getRenderedBounds(target:IGeometryComposition):Rectangle
[static]
Helper method to get the bounds after a transform has been applied
| TransformBase | ||
|
getTransformedBoundsFor(value:IGeometryComposition):Rectangle
Utility function used internally for accessing the bounds of a transformed object
| TransformBase | ||
|
getTransformFor(value:IGeometryComposition):Matrix
Retrieves the adjusted matrix for the registration offset based on the Geometry target bounds,
if this transform is based on a registrationPoint, otherwise based on the centerX and centerY settings
| TransformBase | ||
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| DegrafaObject | |
|
hasExplicitSetting():Boolean
A check to determine if the center of transfomation has been explicitly set.
| TransformBase | ||
![]() |
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
| DegrafaObject | |
![]() |
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
| DegrafaObject | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| DegrafaObject | |
|
transformBounds(rect:Rectangle, trans:Matrix):Rectangle
[static]
Helper method to apply a matrix to a bounds Rectangle and return a transformed bounds Rectangle
| TransformBase | ||
![]() |
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
| DegrafaObject | |
| Method | Defined by | ||
|---|---|---|---|
|
getRegistrationPoint(value:IGeometryComposition, rectangle:Rectangle = null):Point
Calculates the translation offset based on the set registration point.
| TransformBase | ||
| _angle | property |
protected var _angle:Number = 0
| angle | property |
angle:Number [read-only]Implementation
public function get angle():Number
| _centerX | property |
protected var _centerX:Number = NaN
| centerX | property |
centerX:Number [read-write]The center point of the transform along the x-axis. This property is ignored if the registrationPoint property has been set.
Implementation public function get centerX():Number
public function set centerX(value:Number):void
| _centerY | property |
protected var _centerY:Number = NaN
| centerY | property |
centerY:Number [read-write]The center point of the transform along the y-axis. This property is ignored if the registrationPoint property has been set.
Implementation public function get centerY():Number
public function set centerY(value:Number):void
| data | property |
data:String [read-write]Implementation
public function get data():String
public function set data(value:String):void
| invalidated | property |
public var invalidated:BooleanSpecifies whether this object's matrix is to be re calculated on the next request.
| isIdentity | property |
isIdentity:Boolean [read-only]Boolean value indicating whether this transform will have no effect on the coordinate space of a target
Implementation public function get isIdentity():Boolean
| _registrationPoint | property |
protected var _registrationPoint:String
| registrationPoint | property |
registrationPoint:String [read-write]A value defining one of 9 possible registration points. Takes priority over centerX,centerY.
Implementation public function get registrationPoint():String
public function set registrationPoint(value:String):void
| _scaleX | property |
protected var _scaleX:Number = 1
| scaleX | property |
scaleX:Number [read-only]Implementation
public function get scaleX():Number
| _scaleY | property |
protected var _scaleY:Number = 1
| scaleY | property |
scaleY:Number [read-only]Implementation
public function get scaleY():Number
| _skewX | property |
protected var _skewX:Number = 0
| skewX | property |
skewX:Number [read-only]Implementation
public function get skewX():Number
| _skewY | property |
protected var _skewY:Number = 0
| skewY | property |
skewY:Number [read-only]Implementation
public function get skewY():Number
| _transformMatrix | property |
protected var _transformMatrix:Matrix
| transformMatrix | property |
transformMatrix:Matrix [read-write]The internal matrix calculated from the exposed transform properties.
Implementation public function get transformMatrix():Matrix
public function set transformMatrix(value:Matrix):void
| _tx | property |
protected var _tx:Number = 0
| _ty | property |
protected var _ty:Number = 0
| x | property |
x:Number [read-only]Implementation
public function get x():Number
| y | property |
y:Number [read-only]Implementation
public function get y():Number
| getRegistrationPoint | () | method |
protected function getRegistrationPoint(value:IGeometryComposition, rectangle:Rectangle = null):PointCalculates the translation offset based on the set registration point.
Parametersvalue:IGeometryComposition |
|
rectangle:Rectangle (default = null) |
Point |
| getRegPoint | () | method |
public function getRegPoint(value:IGeometryComposition):PointRetrieves the registration offset for the Geometry target. If the registrationPoint property is set, this will return the registrationPoint calculated from the geometry target bounds, otherwise it will return the centerX and centerY settings for this Transform.
Parametersvalue:IGeometryComposition |
Point |
| getRegPointForRectangle | () | method |
public function getRegPointForRectangle(rectangle:Rectangle):PointDetetermines the transformation registration point based on this transform's settings for an arbitrary Rectangle. Exposed primarily for use in Fills. This method returns a point where 0,0 as centerX,centerY (default for a Transform) is the center of the rectangle, because Fill transforms default to the center of the Fill target's bounds for their registration Point.
Parametersrectangle:Rectangle |
Point — a Point representing the registration point settings for this transform, expressed in the context of the rectangle argument
|
| getRenderedBounds | () | method |
public static function getRenderedBounds(target:IGeometryComposition):RectangleHelper method to get the bounds after a transform has been applied
Parameterstarget:IGeometryComposition |
Rectangle — a rendered bounds rectangle
|
| getTransformedBoundsFor | () | method |
public function getTransformedBoundsFor(value:IGeometryComposition):RectangleUtility function used internally for accessing the bounds of a transformed object
Parametersvalue:IGeometryComposition — - the Geometry object for which the transformed bounds are required
|
Rectangle — a Rectangle representing the transformed bounds of the Geometry
|
| getTransformFor | () | method |
public function getTransformFor(value:IGeometryComposition):MatrixRetrieves the adjusted matrix for the registration offset based on the Geometry target bounds, if this transform is based on a registrationPoint, otherwise based on the centerX and centerY settings
Parametersvalue:IGeometryComposition — - the Geometry context for the transform
|
Matrix — a flash Matrix representing the transform for the Geometry argument
|
| hasExplicitSetting | () | method |
public function hasExplicitSetting():BooleanA check to determine if the center of transfomation has been explicitly set. Required for TransformGroup
ReturnsBoolean — boolean true if this Transform object has an explicit setting for it's registration point
|
| transformBounds | () | method |
public static function transformBounds(rect:Rectangle, trans:Matrix):RectangleHelper method to apply a matrix to a bounds Rectangle and return a transformed bounds Rectangle
Parametersrect:Rectangle — the bounds rectangle to be transformed
|
|
trans:Matrix — the transformation Matrix to be applied
|
Rectangle — the transformed bounds rectangle
|