Packagecom.degrafa.paint
Classpublic class EmptyStroke
InheritanceEmptyStroke Inheritance DegrafaObject
ImplementsIGraphicsStroke

The EmptyStroke class provides a class for explicitly setting an empty stroke. In situations, e.g. where 'derive' is used and you require that the local Geometry class does not derive the stroke from the derive target, then you must set an EmptyStroke explicitly.



Public Properties
 PropertyDefined by
  caps : String
EmptyStroke
 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
  joints : String
EmptyStroke
  lastArgs : Array
[read-only] Provide access to the lastArgs array
EmptyStroke
  lastRectangle : Rectangle
[read-only] Provides access to the last rectangle that was relevant for this fill.
EmptyStroke
  miterLimit : Number
EmptyStroke
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedobjectBindings : Array
DegrafaObject
 Inheritedparent : IDegrafaObject
The current degrafa object parent.
DegrafaObject
  pixelHinting : Boolean
EmptyStroke
  reApplyFunction : Function
[read-only] Provides access to a cached function for restarting the last used fill either it the same context, or , if context is provided as an argument, then to an alternate context.
EmptyStroke
  scaleMode : String
EmptyStroke
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  weight : Number
EmptyStroke
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
Constructor.
EmptyStroke
 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(graphics:Graphics, rc:Rectangle):void
In this case, does nothing because there is no stroke.
EmptyStroke
 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
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
capsproperty
caps:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get caps():String
    public function set caps(value:String):void
jointsproperty 
joints:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get joints():String
    public function set joints(value:String):void
lastArgsproperty 
lastArgs:Array  [read-only]

Provide access to the lastArgs array

This property can be used as the source for data binding.

Implementation
    public function get lastArgs():Array
lastRectangleproperty 
lastRectangle:Rectangle  [read-only]

Provides access to the last rectangle that was relevant for this fill.

This property can be used as the source for data binding.

Implementation
    public function get lastRectangle():Rectangle
miterLimitproperty 
miterLimit:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get miterLimit():Number
    public function set miterLimit(value:Number):void
pixelHintingproperty 
pixelHinting:Boolean  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get pixelHinting():Boolean
    public function set pixelHinting(value:Boolean):void
reApplyFunctionproperty 
reApplyFunction:Function  [read-only]

Provides access to a cached function for restarting the last used fill either it the same context, or , if context is provided as an argument, then to an alternate context. If no

This property can be used as the source for data binding.

Implementation
    public function get reApplyFunction():Function
scaleModeproperty 
scaleMode:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get scaleMode():String
    public function set scaleMode(value:String):void
weightproperty 
weight:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get weight():Number
    public function set weight(value:Number):void
Constructor detail
EmptyStroke()constructor
public function EmptyStroke()

Constructor.

The Emptry stroke constructor takes no arguments.

Method detail
apply()method
public function apply(graphics:Graphics, rc:Rectangle):void

In this case, does nothing because there is no stroke.

Parameters
graphics:Graphics — The current context to draw to.
 
rc:Rectangle — A Rectangle object used for stroke bounds.