Packagecom.degrafa.repeaters
Classpublic class PropertyModifier
InheritancePropertyModifier Inheritance DegrafaObject
ImplementsIRepeaterModifier

PropertyModifier is used to specify changes that should occur on the geometry or subsequent objects being repeated.



Public Properties
 PropertyDefined by
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 InheritedhasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
DegrafaObject
 Inheritedid : String
The identifier used by document to refer to this object.
DegrafaObject
 InheritedisInitialized : Boolean
DegrafaObject
  iteration : Number
[read-only] The current iteration of an active modification.
PropertyModifier
  modifier : Object
PropertyModifier
  MODIFIER_ADD : String = "add"
[static]
PropertyModifier
  MODIFIER_DIVIDE : String = "divide"
[static]
PropertyModifier
  MODIFIER_MULTIPLY : String = "multiply"
[static]
PropertyModifier
  MODIFIER_NONE : String = "none"
[static]
PropertyModifier
  modifierOperator : String
PropertyModifier
  MODIFIER_SUBTRACT : String = "subtract"
[static]
PropertyModifier
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedobjectBindings : Array
DegrafaObject
 Inheritedparent : IDegrafaObject
The current degrafa object parent.
DegrafaObject
  property : String
PropertyModifier
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  targets : Array
PropertyModifier
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
The PropertyModifier constructor.
PropertyModifier
 Inherited
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
  
apply():void
This applies our numeric modifier or array of modifiers to the property of our geometryObject.
PropertyModifier
  
beginModify(sourceObject:Object):void
This tells the modifier that it will be doing iterations and modifying the source object.
PropertyModifier
 Inherited
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
DegrafaObject
 Inherited
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
  
end():void
This ends the modification loop and we need to set back our modified property to its original state.
PropertyModifier
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
DegrafaObject
 Inherited
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
DegrafaObject
 Inherited
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
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
DegrafaObject
 Inherited
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
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
iterationproperty
iteration:Number  [read-only]

The current iteration of an active modification.

Implementation
    public function get iteration():Number
modifierproperty 
modifier:Object  [read-write]Implementation
    public function get modifier():Object
    public function set modifier(value:Object):void
MODIFIER_ADDproperty 
public static var MODIFIER_ADD:String = "add"
MODIFIER_DIVIDEproperty 
public static var MODIFIER_DIVIDE:String = "divide"
MODIFIER_MULTIPLYproperty 
public static var MODIFIER_MULTIPLY:String = "multiply"
MODIFIER_NONEproperty 
public static var MODIFIER_NONE:String = "none"
modifierOperatorproperty 
modifierOperator:String  [read-write]Implementation
    public function get modifierOperator():String
    public function set modifierOperator(value:String):void
MODIFIER_SUBTRACTproperty 
public static var MODIFIER_SUBTRACT:String = "subtract"
propertyproperty 
property:String  [read-write]Implementation
    public function get property():String
    public function set property(value:String):void
targetsproperty 
targets:Array  [read-write]Implementation
    public function get targets():Array
    public function set targets(value:Array):void
Constructor detail
PropertyModifier()constructor
public function PropertyModifier()

The PropertyModifier constructor.

Method detail
apply()method
public function apply():void

This applies our numeric modifier or array of modifiers to the property of our geometryObject.

beginModify()method 
public function beginModify(sourceObject:Object):void

This tells the modifier that it will be doing iterations and modifying the source object.

Parameters
sourceObject:Object
end()method 
public function end():void

This ends the modification loop and we need to set back our modified property to its original state.