Packagesekati.draw
Classpublic class AbstractShape
InheritanceAbstractShape Inheritance flash.display.Shape

AbstractShape provides an API base class for drawn shapes.



Protected Properties
 PropertyDefined by
  _changed : Boolean = false
Indicates the Shape needs to be redrawn and prevents redrawing when other objects fire the RENDER event via stage.invalidate()
AbstractShape
  fillAlpha : Number = 1
AbstractShape
  fillColor : Number = 0xFFFFFF
AbstractShape
  lineAlpha : Number = 1
AbstractShape
  lineCaps : String = "null"
AbstractShape
  lineColor : uint = 0x000000
AbstractShape
  lineJoints : String = "miter"
AbstractShape
  lineMiterLimit : Number = 3
AbstractShape
  linePixelHinting : Boolean = false
AbstractShape
  lineScaleMode : String = "normal"
AbstractShape
  lineThickness : Number = 1
AbstractShape
Public Methods
 MethodDefined by
  
AbstractShape Constructor
AbstractShape
  
setFillStyle(color:uint = 0xFFFFFF, alpha:Number = 1):void
Define the fill style of the shape.
AbstractShape
  
setStrokeStyle(thickness:Number = 1, color:uint = 0x000000, alpha:Number = 1, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = null, joints:String = "miter", miterLimit:Number = 10):void
Define the line style of the shape.
AbstractShape
Protected Methods
 MethodDefined by
  
clearChanged():void
Flag the shape change rendering has been completed.
AbstractShape
  
draw():void
Draw the Shape graphics as defined by AbstractShape subclasses.
AbstractShape
  
drawShape():void
Draw the specific lines of the Shape as defined by AbstractShape subclasses.
AbstractShape
  
hasChanged():Boolean
Indicates whether the shape change has been rendered yet or not.
AbstractShape
  
offStage(e:Event):void
Shape has been removed from stage: don't bother with screen updates.
AbstractShape
  
onStage(e:Event):void
Shape has been added to stage: listen for screen update notifications.
AbstractShape
  
render(e:Event):void
Handles screen updates when stage.invalidate() fires if the shape has changed.
AbstractShape
  
requestDraw():void
If the shape is on change request a stage RENDER event to force the shape to be drawn.
AbstractShape
  
setChanged():void
Flag the shape change which forces a redraw on the next render.
AbstractShape
Property detail
_changedproperty
protected var _changed:Boolean = false

Indicates the Shape needs to be redrawn and prevents redrawing when other objects fire the RENDER event via stage.invalidate()

fillAlphaproperty 
protected var fillAlpha:Number = 1
fillColorproperty 
protected var fillColor:Number = 0xFFFFFF
lineAlphaproperty 
protected var lineAlpha:Number = 1
lineCapsproperty 
protected var lineCaps:String = "null"
lineColorproperty 
protected var lineColor:uint = 0x000000
lineJointsproperty 
protected var lineJoints:String = "miter"
lineMiterLimitproperty 
protected var lineMiterLimit:Number = 3
linePixelHintingproperty 
protected var linePixelHinting:Boolean = false
lineScaleModeproperty 
protected var lineScaleMode:String = "normal"
lineThicknessproperty 
protected var lineThickness:Number = 1
Constructor detail
AbstractShape()constructor
public function AbstractShape()

AbstractShape Constructor

Method detail
clearChanged()method
protected function clearChanged():void

Flag the shape change rendering has been completed.

draw()method 
protected function draw():void

Draw the Shape graphics as defined by AbstractShape subclasses.

In order to increase performance draw() is only called when during a stage RENDER event fires.

drawShape()method 
protected function drawShape():void

Draw the specific lines of the Shape as defined by AbstractShape subclasses.

hasChanged()method 
protected function hasChanged():Boolean

Indicates whether the shape change has been rendered yet or not.

Returns
Boolean
offStage()method 
protected function offStage(e:Event):void

Shape has been removed from stage: don't bother with screen updates.

Parameters
e:Event
onStage()method 
protected function onStage(e:Event):void

Shape has been added to stage: listen for screen update notifications.

Parameters
e:Event
render()method 
protected function render(e:Event):void

Handles screen updates when stage.invalidate() fires if the shape has changed. We bother with this for overall performance sake.

Parameters
e:Event
requestDraw()method 
protected function requestDraw():void

If the shape is on change request a stage RENDER event to force the shape to be drawn.

setChanged()method 
protected function setChanged():void

Flag the shape change which forces a redraw on the next render.

setFillStyle()method 
public function setFillStyle(color:uint = 0xFFFFFF, alpha:Number = 1):void

Define the fill style of the shape.

Parameters
color:uint (default = 0xFFFFFF)
 
alpha:Number (default = 1)
setStrokeStyle()method 
public function setStrokeStyle(thickness:Number = 1, color:uint = 0x000000, alpha:Number = 1, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = null, joints:String = "miter", miterLimit:Number = 10):void

Define the line style of the shape.

Parameters
thickness:Number (default = 1)
 
color:uint (default = 0x000000)
 
alpha:Number (default = 1)
 
pixelHinting:Boolean (default = false)
 
scaleMode:String (default = "normal")
 
caps:String (default = null)
 
joints:String (default = "miter")
 
miterLimit:Number (default = 10)