Packagecom.degrafa.paint
Classpublic class SolidFill
InheritanceSolidFill Inheritance DegrafaObject
ImplementsIGraphicsFill

Solid fill defines a fill color to be applied to a graphics contex.

See also

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


Public Properties
 PropertyDefined by
  alpha : Number
The transparency of a fill.
SolidFill
  color : Object
The fill color.
SolidFill
  derive : SolidFill
[write-only] An object to derive this objects properties from.
SolidFill
 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
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
Protected Properties
 PropertyDefined by
  _alpha : Number
SolidFill
  _color : Object
SolidFill
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
SolidFill(color:Object = null, alpha:Number)
Constructor.
SolidFill
 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
  
begin(graphics:Graphics, rc:Rectangle):void
Begins the fill for the graphics context.
SolidFill
 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
  
end(graphics:Graphics):void
Ends the fill for the graphics context.
SolidFill
 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
_alphaproperty
protected var _alpha:Number
alphaproperty 
alpha:Number  [read-write]

The transparency of a fill.

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

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

See also

mx.graphics.Stroke
_colorproperty 
protected var _color:Object
colorproperty 
color:Object  [read-write]

The fill color. This property accepts uint, hexadecimal (including shorthand), and color keys as well as comma seperated rgb or cmyk values.

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

Implementation
    public function get color():Object
    public function set color(value:Object):void
deriveproperty 
derive:SolidFill  [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:SolidFill):void
Constructor detail
SolidFill()constructor
public function SolidFill(color:Object = null, alpha:Number)

Constructor.

The solid fill constructor accepts 2 optional arguments that define it's rendering color and alpha.

Parameters
color:Object (default = null) — A unit or String value indicating the stroke color.
 
alpha:Number — A number indicating the alpha to be used for the fill.
Method detail
begin()method
public function begin(graphics:Graphics, rc:Rectangle):void

Begins the fill for the graphics context.

Parameters
graphics:Graphics — The current context to draw to.
 
rc:Rectangle — A Rectangle object used for fill bounds.
end()method 
public function end(graphics:Graphics):void

Ends the fill for the graphics context.

Parameters
graphics:Graphics — The current context being drawn to.