| Package | com.degrafa.paint |
| Class | public class LinearGradientStroke |
| Inheritance | LinearGradientStroke GradientStrokeBase GradientFillBase DegrafaObject |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | angle : Number
The angle that defines a transition across the context.
| GradientFillBase | |
![]() | blendMode : String | GradientFillBase | |
![]() | caps : 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 | ||
![]() | document : Object
The MXML document that created this object.
| DegrafaObject | |
![]() | enableEvents : Boolean
Enable events for this object.
| DegrafaObject | |
![]() | gradientStops : Array
A array of gradient stops that describe this gradient.
| GradientFillBase | |
![]() | gradientStopsCollection : GradientStopsCollection
Access to the Degrafa gradient stop collection object for this gradient.
| GradientFillBase | |
![]() | gradientType : String
Sets the type of gradient to be applied.
| GradientFillBase | |
![]() | hasEventManager : 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 | ||
![]() | id : String
The identifier used by document to refer to this object.
| DegrafaObject | |
![]() | interpolationMethod : 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 | |
![]() | name : 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 | |
![]() | spreadMethod : String
A value from the SpreadMethod class that specifies which spread method to use.
| GradientFillBase | |
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
![]() | weight : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
| LinearGradientStroke | |||
![]() |
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 | ||
![]() |
begin(graphics:Graphics, rc:Rectangle):void
Begins the fill for the graphics context.
| GradientFillBase | |
![]() |
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
| DegrafaObject | |
![]() |
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(graphics:Graphics):void
Ends the fill for the graphics context.
| GradientFillBase | |
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| DegrafaObject | |
![]() |
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
| DegrafaObject | |
![]() |
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 | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| DegrafaObject | |
![]() |
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 | |
| derive | property |
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
| height | property |
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
| width | property |
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
| x | property |
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
| y | property |
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
| LinearGradientStroke | () | constructor |
public function LinearGradientStroke()
| apply | () | method |
public override function apply(graphics:Graphics, rc:Rectangle):voidApplies the properties to the specified Graphics object.
Parametersgraphics:Graphics — The current context to draw to.
|
|
rc:Rectangle — A Rectangle object used for stroke bounds.
|
See also