| Package | net.guttershark.display.draw |
| Class | public class AbstractShape |
| Inheritance | AbstractShape flash.display.Shape |
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor for AbstractShape instances.
| 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 | ||
| Method | Defined 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 | ||
| _changed | property |
protected var _changed:Boolean = falseIndicates the Shape needs to be redrawn and prevents redrawing when other objects fire the RENDER event via stage.invalidate()
| fillAlpha | property |
protected var fillAlpha:Number = 1
| fillColor | property |
protected var fillColor:Number = 0xFFFFFF
| lineAlpha | property |
protected var lineAlpha:Number = 1
| lineCaps | property |
protected var lineCaps:String = "null"
| lineColor | property |
protected var lineColor:uint = 0x000000
| lineJoints | property |
protected var lineJoints:String = "miter"
| lineMiterLimit | property |
protected var lineMiterLimit:Number = 3
| linePixelHinting | property |
protected var linePixelHinting:Boolean = false
| lineScaleMode | property |
protected var lineScaleMode:String = "normal"
| lineThickness | property |
protected var lineThickness:Number = 1
| AbstractShape | () | constructor |
public function AbstractShape()Constructor for AbstractShape instances.
| clearChanged | () | method |
protected function clearChanged():voidFlag 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():BooleanIndicates whether the shape change has been rendered yet or not.
ReturnsBoolean |
| offStage | () | method |
protected function offStage(e:Event):voidShape has been removed from stage: don't bother with screen updates.
Parameterse:Event |
| onStage | () | method |
protected function onStage(e:Event):voidShape has been added to stage: listen for screen update notifications.
Parameterse:Event |
| render | () | method |
protected function render(e:Event):voidHandles screen updates when stage.invalidate() fires if the shape has changed. We bother with this for overall performance sake.
Parameterse:Event |
| requestDraw | () | method |
protected function requestDraw():voidIf the shape is on change request a stage RENDER event to force the shape to be drawn.
| setChanged | () | method |
protected function setChanged():voidFlag the shape change which forces a redraw on the next render.
| setFillStyle | () | method |
public function setFillStyle(color:uint = 0xFFFFFF, alpha:Number = 1):voidDefine the fill style of the shape.
Parameterscolor: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):voidDefine the line style of the shape.
Parametersthickness: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) |