Package | frocessing.shape |
Class | public class FShape |
Inheritance | FShape AbstractFShape CanvasStyleAdapter Object |
Implements | IFShape |
Property | Defined By | ||
---|---|---|---|
bezierDetail : uint = 20
the segment number of lines when draw bezier. | FShape | ||
caps : String
stroke caps. | AbstractFShape | ||
commands : Array [read-only]
shape path commands. | AbstractFShape | ||
fill : ICanvasFill
fill stye object. | AbstractFShape | ||
fillAlpha : Number
fill alpha. | AbstractFShape | ||
fillColor : uint
fill color. | AbstractFShape | ||
fillEnabled : Boolean
fill style enabled. | AbstractFShape | ||
height : Number [override] [read-only] | FShape | ||
joints : String
stroke joints. | AbstractFShape | ||
left : Number [override] [read-only] | FShape | ||
matrix : Matrix
transform matrix( not clone ). | AbstractFShape | ||
miterLimit : Number stroke miterLimit. | AbstractFShape | ||
name : String
shape object name(id). | AbstractFShape | ||
parent : IFShapeContainer
parent shape container. | AbstractFShape | ||
pixelHinting : Boolean stroke pixelHinting | AbstractFShape | ||
scaleMode : String
stroke scaleMode. | AbstractFShape | ||
stroke : ICanvasStroke
stroke style object. | AbstractFShape | ||
strokeAlpha : Number
stroke alpha. | AbstractFShape | ||
strokeColor : uint
stroke color. | AbstractFShape | ||
strokeEnabled : Boolean
stroke style enabled. | AbstractFShape | ||
styleEnabled : Boolean [read-only] | AbstractFShape | ||
thickness : Number stroke thickness. | AbstractFShape | ||
top : Number [override] [read-only] | FShape | ||
userData : Object | AbstractFShape | ||
vertices : Array [read-only]
shape path data. | AbstractFShape | ||
visible : Boolean
shape visible. | AbstractFShape | ||
width : Number [override] [read-only] | FShape |
Method | Defined By | ||
---|---|---|---|
FShape(commands:Array = null, vertices:Array = null, parent_group:IFShapeContainer = null) | FShape | ||
applyMatrix(mat:Matrix):void
apply matrix( prepend mat to current matrix ). | AbstractFShape | ||
bezierTo(cx0:Number, cy0:Number, cx1:Number, cy1:Number, x:Number, y:Number):void | FShape | ||
closePath():void | FShape | ||
curveTo(cx:Number, cy:Number, x:Number, y:Number):void | FShape | ||
disableStyle():void
disable stroke and fill styles. | AbstractFShape | ||
drawGraphics(gc:Graphics):void
draw the shape to graphics. | AbstractFShape | ||
enableStyle():void
enable stroke and fill styles. | AbstractFShape | ||
lineTo(x:Number, y:Number):void | FShape | ||
moveTo(x:Number, y:Number):void | FShape | ||
resetMatrix():void
reset transfrom. | AbstractFShape | ||
rotate(angle:Number):void
rotate shape. | AbstractFShape | ||
scale(x:Number, y:Number):void
scale shape. | AbstractFShape | ||
toSprite():Sprite
make new Sprite instance. | AbstractFShape | ||
translate(x:Number, y:Number):void
translate shape. | AbstractFShape | ||
updateShapeGeom():void [override]
update shape rectangle.( left, top, width, height )
| FShape |
bezierDetail | property |
public var bezierDetail:uint = 20
the segment number of lines when draw bezier.
height | property |
height:Number
[read-only] [override]
public function get height():Number
left | property |
left:Number
[read-only] [override]
public function get left():Number
top | property |
top:Number
[read-only] [override]
public function get top():Number
width | property |
width:Number
[read-only] [override]
public function get width():Number
FShape | () | Constructor |
public function FShape(commands:Array = null, vertices:Array = null, parent_group:IFShapeContainer = null)
Parameters
commands:Array (default = null )
| |
vertices:Array (default = null )
| |
parent_group:IFShapeContainer (default = null )
|
bezierTo | () | method |
public function bezierTo(cx0:Number, cy0:Number, cx1:Number, cy1:Number, x:Number, y:Number):void
Parameters
cx0:Number | |
cy0:Number | |
cx1:Number | |
cy1:Number | |
x:Number | |
y:Number |
closePath | () | method |
public function closePath():void
curveTo | () | method |
public function curveTo(cx:Number, cy:Number, x:Number, y:Number):void
Parameters
cx:Number | |
cy:Number | |
x:Number | |
y:Number |
lineTo | () | method |
public function lineTo(x:Number, y:Number):void
Parameters
x:Number | |
y:Number |
moveTo | () | method |
public function moveTo(x:Number, y:Number):void
Parameters
x:Number | |
y:Number |
updateShapeGeom | () | method |
override public function updateShapeGeom():void
update shape rectangle.( left, top, width, height )