Packagecom.degrafa.paint
Classpublic class SolidStroke
InheritanceSolidStroke Inheritance DegrafaObject
ImplementsIGraphicsStroke

The Stroke class defines the properties for a line. You can define a Stroke object in MXML, but you must attach that Stroke to another object for it to appear in your application.

See also

mx.graphics.Stroke
http://samples.degrafa.com/SolidStroke/SolidStroke.html


Public Properties
 PropertyDefined by
  alpha : Number
The transparency of a fill.
SolidStroke
  caps : String
Specifies the type of caps at the end of lines.
SolidStroke
  color : Object
The fill color.
SolidStroke
  derive : SolidStroke
[write-only] An object to derive this objects properties from.
SolidStroke
 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
  joints : String
Specifies the type of joint appearance used at angles.
SolidStroke
  miterLimit : Number
Indicates the limit at which a miter is cut off.
SolidStroke
 Inheritedname : String
The name that refers to this object.
DegrafaObject
  pixelHinting : Boolean
Specifies whether to hint strokes to full pixels.
SolidStroke
  scaleMode : String
Specifies how to scale a stroke.
SolidStroke
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  weight : Number
The line weight, in pixels.
SolidStroke
Protected Properties
 PropertyDefined by
  _alpha : Number
SolidStroke
  _color : Object
SolidStroke
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
SolidStroke(color:Object = null, alpha:Number, weight:Number)
Constructor.
SolidStroke
 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.
SolidStroke
 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
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
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
_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:SolidStroke  [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:SolidStroke):void
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 
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 
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 
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 
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
SolidStroke()constructor
public function SolidStroke(color:Object = null, alpha:Number, weight:Number)

Constructor.

The solid stroke constructor accepts 3 optional arguments that define it's rendering color, alpha and weight.

Parameters
color:Object (default = null) — A unit value indicating the stroke color.
 
alpha:Number — A number indicating the alpha to be used for the stoke.
 
weight:Number — A number indicating the weight of the line for the stroke.
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.Stroke