| Package | frocessing.shape |
| Class | public class AbstractFShape |
| Inheritance | AbstractFShape CanvasStyleAdapter Object |
| Implements | IFShape |
| Subclasses | FShape, FShapeCircle, FShapeContainer, FShapeEllipse, FShapeImage, FShapeLine, FShapeRect |
| Property | Defined By | ||
|---|---|---|---|
| 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 [read-only] | AbstractFShape | ||
| joints : String
stroke joints. | AbstractFShape | ||
| left : Number [read-only] | AbstractFShape | ||
| 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 [read-only] | AbstractFShape | ||
| userData : Object | AbstractFShape | ||
| vertices : Array [read-only]
shape path data. | AbstractFShape | ||
| visible : Boolean
shape visible. | AbstractFShape | ||
| width : Number [read-only] | AbstractFShape | ||
| Method | Defined By | ||
|---|---|---|---|
AbstractFShape(parent_group:IFShapeContainer = null) | AbstractFShape | ||
applyMatrix(mat:Matrix):void
apply matrix( prepend mat to current matrix ). | AbstractFShape | ||
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 | ||
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
update shape rectangle.( left, top, width, height )
| AbstractFShape | ||
| caps | property |
caps:Stringstroke caps.
public function get caps():String public function set caps(value:String):voidSee also
| commands | property |
commands:Array [read-only] shape path commands.
public function get commands():Array| fill | property |
fill:ICanvasFillfill stye object.
public function get fill():ICanvasFill public function set fill(value:ICanvasFill):void| fillAlpha | property |
fillAlpha:Numberfill alpha. solid fill is applyed.
public function get fillAlpha():Number public function set fillAlpha(value:Number):void| fillColor | property |
fillColor:uintfill color. solid fill is applyed.
public function get fillColor():uint public function set fillColor(value:uint):void| fillEnabled | property |
fillEnabled:Booleanfill style enabled.
public function get fillEnabled():Boolean public function set fillEnabled(value:Boolean):void| height | property |
height:Number [read-only] public function get height():Number| joints | property |
joints:Stringstroke joints.
public function get joints():String public function set joints(value:String):voidSee also
| left | property |
left:Number [read-only] public function get left():Number| matrix | property |
matrix:Matrixtransform matrix( not clone ).
public function get matrix():Matrix public function set matrix(value:Matrix):void| miterLimit | property |
miterLimit:Numberstroke miterLimit.
public function get miterLimit():Number public function set miterLimit(value:Number):void| name | property |
name:Stringshape object name(id).
public function get name():String public function set name(value:String):void| parent | property |
parent:IFShapeContainerparent shape container.
public function get parent():IFShapeContainer public function set parent(value:IFShapeContainer):void| pixelHinting | property |
pixelHinting:Booleanstroke pixelHinting
public function get pixelHinting():Boolean public function set pixelHinting(value:Boolean):void| scaleMode | property |
scaleMode:Stringstroke scaleMode.
public function get scaleMode():String public function set scaleMode(value:String):voidSee also
| stroke | property |
stroke:ICanvasStrokestroke style object.
public function get stroke():ICanvasStroke public function set stroke(value:ICanvasStroke):void| strokeAlpha | property |
strokeAlpha:Numberstroke alpha.
public function get strokeAlpha():Number public function set strokeAlpha(value:Number):void| strokeColor | property |
strokeColor:uintstroke color.
public function get strokeColor():uint public function set strokeColor(value:uint):void| strokeEnabled | property |
strokeEnabled:Booleanstroke style enabled.
public function get strokeEnabled():Boolean public function set strokeEnabled(value:Boolean):void| styleEnabled | property |
styleEnabled:Boolean [read-only] public function get styleEnabled():Boolean| thickness | property |
thickness:Numberstroke thickness.
public function get thickness():Number public function set thickness(value:Number):void| top | property |
top:Number [read-only] public function get top():Number| userData | property |
public var userData:Object
| vertices | property |
vertices:Array [read-only] shape path data.
public function get vertices():Array| visible | property |
visible:Booleanshape visible.
public function get visible():Boolean public function set visible(value:Boolean):void| width | property |
width:Number [read-only] public function get width():Number| AbstractFShape | () | Constructor |
public function AbstractFShape(parent_group:IFShapeContainer = null)Parameters
parent_group:IFShapeContainer (default = null) |
| applyMatrix | () | method |
public function applyMatrix(mat:Matrix):voidapply matrix( prepend mat to current matrix ).
Parameters
mat:Matrix |
| disableStyle | () | method |
public function disableStyle():voiddisable stroke and fill styles.
| drawGraphics | () | method |
public function drawGraphics(gc:Graphics):voiddraw the shape to graphics.
Parameters
gc:Graphics |
| enableStyle | () | method |
public function enableStyle():voidenable stroke and fill styles.
| resetMatrix | () | method |
public function resetMatrix():voidreset transfrom.
| rotate | () | method |
public function rotate(angle:Number):voidrotate shape.
Parameters
angle:Number |
| scale | () | method |
public function scale(x:Number, y:Number):voidscale shape.
Parameters
x:Number | |
y:Number (default = NaN) |
| toSprite | () | method |
public function toSprite():Spritemake new Sprite instance.
ReturnsSprite |
| translate | () | method |
public function translate(x:Number, y:Number):voidtranslate shape.
Parameters
x:Number | |
y:Number |
| updateShapeGeom | () | method |
public function updateShapeGeom():voidupdate shape rectangle.( left, top, width, height )