Packagecom.degrafa.paint
Classpublic class GradientStrokeBase
InheritanceGradientStrokeBase Inheritance GradientFillBase Inheritance DegrafaObject
ImplementsIGraphicsStroke
SubclassesLinearGradientStroke, RadialGradientStroke

The gradient stroke class lets you specify a gradient filled stroke. This is the base class for other gradient stroke types.

Default MXML PropertygradientStops

See also

http://degrafa.com/samples/LinearGradientStroke.html


Public Properties
 PropertyDefined by
 Inheritedangle : Number
The angle that defines a transition across the context.
GradientFillBase
 InheritedblendMode : String
GradientFillBase
  caps : String
Specifies the type of caps at the end of lines.
GradientStrokeBase
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 InheritedfocalPointRatio : Number
Sets the location of the start of a radial fill.
GradientFillBase
 InheritedgradientStops : Array
A array of gradient stops that describe this gradient.
GradientFillBase
 InheritedgradientStopsCollection : GradientStopsCollection
Access to the Degrafa gradient stop collection object for this gradient.
GradientFillBase
 InheritedgradientType : String
Sets the type of gradient to be applied.
GradientFillBase
 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
 InheritedinterpolationMethod : String
A value from the InterpolationMethod class that specifies which interpolation method to use.
GradientFillBase
  joints : String
Specifies the type of joint appearance used at angles.
GradientStrokeBase
  miterLimit : Number
Indicates the limit at which a miter is cut off.
GradientStrokeBase
 Inheritedname : String
The name that refers to this object.
DegrafaObject
  pixelHinting : Boolean
Specifies whether to hint strokes to full pixels.
GradientStrokeBase
  scaleMode : String
Specifies how to scale a stroke.
GradientStrokeBase
 InheritedspreadMethod : String
A value from the SpreadMethod class that specifies which spread method to use.
GradientFillBase
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  weight : Number
The line weight, in pixels.
GradientStrokeBase
Protected Properties
 PropertyDefined by
 Inherited_alphas : Array
GradientFillBase
 Inherited_angle : Number
GradientFillBase
 Inherited_blendMode : String
GradientFillBase
  _caps : String
GradientStrokeBase
 Inherited_colors : Array
GradientFillBase
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
 Inherited_focalPointRatio : Number
GradientFillBase
 Inherited_gradientStops : GradientStopsCollection
GradientFillBase
 Inherited_gradientType : String
GradientFillBase
 Inherited_interpolationMethod : String
GradientFillBase
  _joints : String
GradientStrokeBase
  _miterLimit : Number
GradientStrokeBase
  _pixelHinting : Boolean = false
GradientStrokeBase
 Inherited_ratios : Array
GradientFillBase
  _scaleMode : String
GradientStrokeBase
 Inherited_spreadMethod : String
GradientFillBase
  _weight : Number
GradientStrokeBase
Public Methods
 MethodDefined by
  
GradientStrokeBase
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):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
Applies the properties to the specified Graphics object.
GradientStrokeBase
 Inherited
begin(graphics:Graphics, rc:Rectangle):void
Begins the fill for the graphics context.
GradientFillBase
 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(graphics:Graphics):void
Ends the fill for the graphics context.
GradientFillBase
 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
Protected Methods
 MethodDefined by
 Inherited
processEntries(length:Number):void
Process the gradient stops
GradientFillBase
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
_capsproperty
protected var _caps:String
capsproperty 
caps:String  [read-write]

Specifies the type of caps at the end of lines.

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

Implementation
    public function get caps():String
    public function set caps(value:String):void

See also

mx.graphics.Stroke
_jointsproperty 
protected var _joints:String
jointsproperty 
joints:String  [read-write]

Specifies the type of joint appearance used at angles.

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

Implementation
    public function get joints():String
    public function set joints(value:String):void

See also

mx.graphics.Stroke
_miterLimitproperty 
protected var _miterLimit:Number
miterLimitproperty 
miterLimit:Number  [read-write]

Indicates the limit at which a miter is cut off.

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

Implementation
    public function get miterLimit():Number
    public function set miterLimit(value:Number):void

See also

mx.graphics.Stroke
_pixelHintingproperty 
protected var _pixelHinting:Boolean = false
pixelHintingproperty 
pixelHinting:Boolean  [read-write]

Specifies whether to hint strokes to full pixels.

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

Implementation
    public function get pixelHinting():Boolean
    public function set pixelHinting(value:Boolean):void

See also

mx.graphics.Stroke
_scaleModeproperty 
protected var _scaleMode:String
scaleModeproperty 
scaleMode:String  [read-write]

Specifies how to scale a stroke.

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

Implementation
    public function get scaleMode():String
    public function set scaleMode(value:String):void

See also

mx.graphics.Stroke
_weightproperty 
protected var _weight:Number
weightproperty 
weight:Number  [read-write]

The line weight, in pixels.

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

Implementation
    public function get weight():Number
    public function set weight(value:Number):void

See also

mx.graphics.Stroke
Constructor detail
GradientStrokeBase()constructor
public function GradientStrokeBase()
Method detail
apply()method
public function apply(graphics:Graphics, rc:Rectangle):void

Applies the properties to the specified Graphics object.

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

See also

mx.graphics.LinearGradientStroke