| Package | com.degrafa.paint |
| Class | public class RadialGradientStroke |
| Inheritance | RadialGradientStroke 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 | |
![]() | coordinateType : String | GradientFillBase | |
| cx : Number
The x-axis coordinate of the center of the gradient rectangle.
| RadialGradientStroke | ||
| cy : Number
The y-axis coordinate of the center of the gradient rectangle.
| RadialGradientStroke | ||
![]() | degrafaScaling : Boolean
Determines whether Degrafa transforms will perform additional stroke weight transforms in accordance with the scaleMode setting on this stroke (or not) to scale a stroke.
| GradientStrokeBase | |
| derive : RadialGradientStroke
[write-only]
An object to derive this objects properties from.
| RadialGradientStroke | ||
![]() | document : Object
The MXML document that created this object.
| DegrafaObject | |
![]() | enableEvents : Boolean
Enable events for this object.
| DegrafaObject | |
![]() | focalPointRatio : Number
Sets the location of the start of a radial fill.
| GradientFillBase | |
![]() | 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 | |
![]() | 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 | |
![]() | isInitialized : Boolean | DegrafaObject | |
![]() | joints : String
Specifies the type of joint appearance used at angles.
| GradientStrokeBase | |
![]() | lastArgs : Array
Provide access to the lastArgs array
| GradientStrokeBase | |
![]() | lastRectangle : Rectangle
Provides access to the last rectangle that was relevant for this fill.
| GradientStrokeBase | |
![]() | miterLimit : Number
Indicates the limit at which a miter is cut off.
| GradientStrokeBase | |
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
![]() | objectBindings : Array | DegrafaObject | |
![]() | parent : IDegrafaObject
The current degrafa object parent.
| DegrafaObject | |
![]() | pixelHinting : Boolean
Specifies whether to hint strokes to full pixels.
| GradientStrokeBase | |
| radius : Number
The radius of the gradient stroke, for a circular radial gradient, otherwise it represents the x radius of an elliptical radial gradient.
| RadialGradientStroke | ||
| radiusX : Number
The x radius of the gradient stroke, before any rotation is applied, for an elliptical radial gradient.
| RadialGradientStroke | ||
| radiusY : Number
The y radius of the gradient stroke, before any rotation is applied, for an elliptical radial gradient.
| RadialGradientStroke | ||
![]() | reApplyFunction : Function
Provides access to a cached function for reapplying the last used stroke either in the same context, or , if context is provided as an argument,
to an alternate context.
| GradientStrokeBase | |
![]() | requester : IGeometryComposition | GradientFillBase | |
![]() | restartFunction : Function
Provides quick access to a cached function for restarting the last used fill either in the last used context, or, if a context is provided as an argument,
then to an alternate context.
| GradientFillBase | |
![]() | 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 | |
![]() | transform : ITransform
Defines the transform object that will be used for
altering this gradientfill object.
| GradientFillBase | |
![]() | weight : Number
The line weight, in pixels.
| GradientStrokeBase | |
| Method | Defined by | ||
|---|---|---|---|
| RadialGradientStroke | |||
![]() |
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
Applies the properties to the specified Graphics object.
| RadialGradientStroke | ||
![]() |
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 | |
| cx | property |
cx:Number [read-write]The x-axis coordinate of the center of the gradient 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 cx():Number
public function set cx(value:Number):void
| cy | property |
cy:Number [read-write]The y-axis coordinate of the center of the gradient 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 cy():Number
public function set cy(value:Number):void
| derive | property |
derive:RadialGradientStroke [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:RadialGradientStroke):void
| radius | property |
radius:Number [read-write]The radius of the gradient stroke, for a circular radial gradient, otherwise it represents the x radius of an elliptical radial gradient. 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 radius():Number
public function set radius(value:Number):void
| radiusX | property |
radiusX:Number [read-write]The x radius of the gradient stroke, before any rotation is applied, for an elliptical radial gradient. 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 radiusX():Number
public function set radiusX(value:Number):void
| radiusY | property |
radiusY:Number [read-write]The y radius of the gradient stroke, before any rotation is applied, for an elliptical radial gradient. 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 radiusY():Number
public function set radiusY(value:Number):void
| RadialGradientStroke | () | constructor |
public function RadialGradientStroke()
| 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