Packagecom.degrafa.decorators
Classpublic class RenderDecoratorBase
InheritanceRenderDecoratorBase Inheritance DecoratorBase Inheritance DegrafaObject
ImplementsIRenderDecorator
SubclassesSloppyLineDecorator, SVGDashLine

RenderDecoratorBase is intended to be extended for complex decorations. Decorations that use a render time type manipulation extend from this base class. Extensions of this class are expected to render the actual data to the graphics context passed and as such provides the nessesary proxy methods which can be overridden.



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
  isValid : Boolean
[read-only] A test, which is used to skip a particular decorator if it determines its current state is not valid or would not have an effect based on its current settings.
RenderDecoratorBase
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedobjectBindings : Array
DegrafaObject
 Inheritedparent : IDegrafaObject
The current degrafa object parent.
DegrafaObject
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
RenderDecoratorBase
 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
  
curveTo(cx:Number, cy:Number, x:Number, y:Number, graphics:Graphics):void
curveTo proxy method.
RenderDecoratorBase
 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
 Inherited
end(stack:CommandStack):void
Called at the end of the render phase for the current object.
DecoratorBase
 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
Called during render setup and provides the opportunity to add item delegates or perform other initialization tasks.
DecoratorBase
 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
  
lineTo(x:Number, y:Number, graphics:Graphics):void
lineTo proxy method.
RenderDecoratorBase
  
moveTo(x:Number, y:Number, graphics:Graphics):void
moveTo proxy method.
RenderDecoratorBase
 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
isValidproperty
isValid:Boolean  [read-only]

A test, which is used to skip a particular decorator if it determines its current state is not valid or would not have an effect based on its current settings. A decorator is not executed if this returns false at the time it would normally be executed.

Implementation
    public function get isValid():Boolean
Constructor detail
RenderDecoratorBase()constructor
public function RenderDecoratorBase()
Method detail
curveTo()method
public function curveTo(cx:Number, cy:Number, x:Number, y:Number, graphics:Graphics):void

curveTo proxy method. The graphics property is the current context being rendered to. This method is expected to be overridden by subclasses.

Parameters
cx:Number
 
cy:Number
 
x:Number
 
y:Number
 
graphics:Graphics
lineTo()method 
public function lineTo(x:Number, y:Number, graphics:Graphics):void

lineTo proxy method. The graphics property is the current context being rendered to. This method is expected to be overridden by subclasses.

Parameters
x:Number
 
y:Number
 
graphics:Graphics
moveTo()method 
public function moveTo(x:Number, y:Number, graphics:Graphics):void

moveTo proxy method. The graphics property is the current context being rendered to. This method is expected to be overridden by subclasses.

Parameters
x:Number
 
y:Number
 
graphics:Graphics