Packagecom.degrafa.paint
Classpublic class LinearGradientStroke
InheritanceLinearGradientStroke Inheritance GradientStrokeBase Inheritance GradientFillBase Inheritance DegrafaObject

The linear gradient stroke class lets you specify a gradient filled stroke.

See also

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


Public Properties
 PropertyDefined by
 Inheritedangle : Number
The angle that defines a transition across the context.
GradientFillBase
 InheritedblendMode : String
GradientFillBase
 Inheritedcaps : String
Specifies the type of caps at the end of lines.
GradientStrokeBase
  derive : LinearGradientStroke
[write-only] An object to derive this objects properties from.
LinearGradientStroke
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 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
  height : Number
The height to be used for the grtadient rectangle.
LinearGradientStroke
 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
 Inheritedjoints : String
Specifies the type of joint appearance used at angles.
GradientStrokeBase
 InheritedmiterLimit : Number
Indicates the limit at which a miter is cut off.
GradientStrokeBase
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedpixelHinting : Boolean
Specifies whether to hint strokes to full pixels.
GradientStrokeBase
 InheritedscaleMode : 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
 Inheritedweight : Number
The line weight, in pixels.
GradientStrokeBase
  width : Number
The width to be used for the grtadient rectangle.
LinearGradientStroke
  x : Number
The x-axis coordinate of the upper left point of the grtadient rectangle.
LinearGradientStroke
  y : Number
The y-axis coordinate of the upper left point of the grtadient rectangle.
LinearGradientStroke
Protected Properties
 PropertyDefined by
 Inherited_alphas : Array
GradientFillBase
 Inherited_angle : Number
GradientFillBase
 Inherited_blendMode : String
GradientFillBase
 Inherited_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
 Inherited_joints : String
GradientStrokeBase
 Inherited_miterLimit : Number
GradientStrokeBase
 Inherited_pixelHinting : Boolean = false
GradientStrokeBase
 Inherited_ratios : Array
GradientFillBase
 Inherited_scaleMode : String
GradientStrokeBase
 Inherited_spreadMethod : String
GradientFillBase
 Inherited_weight : Number
GradientStrokeBase
Public Methods
 MethodDefined by
  
LinearGradientStroke
 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.
LinearGradientStroke
 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
deriveproperty
derive:LinearGradientStroke  [write-only]

An object to derive this objects properties from. When specified this object will derive it's unspecified properties from the passed object.

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

Implementation
    public function set derive(value:LinearGradientStroke):void
heightproperty 
height:Number  [read-write]

The height to be used for the grtadient rectangle.

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

Implementation
    public function get height():Number
    public function set height(value:Number):void
widthproperty 
width:Number  [read-write]

The width to be used for the grtadient rectangle.

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

Implementation
    public function get width():Number
    public function set width(value:Number):void
xproperty 
x:Number  [read-write]

The x-axis coordinate of the upper left point of the grtadient rectangle. If not specified a default value of 0 is used.

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

Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number  [read-write]

The y-axis coordinate of the upper left point of the grtadient rectangle. If not specified a default value of 0 is used.

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

Implementation
    public function get y():Number
    public function set y(value:Number):void
Constructor detail
LinearGradientStroke()constructor
public function LinearGradientStroke()
Method detail
apply()method
public override 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