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:String
stroke caps.
public function get caps():String
public function set caps(value:String):void
See also
commands | property |
commands:Array
[read-only] shape path commands.
public function get commands():Array
fill | property |
fill:ICanvasFill
fill stye object.
public function get fill():ICanvasFill
public function set fill(value:ICanvasFill):void
fillAlpha | property |
fillAlpha:Number
fill alpha. solid fill is applyed.
public function get fillAlpha():Number
public function set fillAlpha(value:Number):void
fillColor | property |
fillColor:uint
fill color. solid fill is applyed.
public function get fillColor():uint
public function set fillColor(value:uint):void
fillEnabled | property |
fillEnabled:Boolean
fill 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:String
stroke joints.
public function get joints():String
public function set joints(value:String):void
See also
left | property |
left:Number
[read-only] public function get left():Number
matrix | property |
matrix:Matrix
transform matrix( not clone ).
public function get matrix():Matrix
public function set matrix(value:Matrix):void
miterLimit | property |
miterLimit:Number
stroke miterLimit.
public function get miterLimit():Number
public function set miterLimit(value:Number):void
name | property |
name:String
shape object name(id).
public function get name():String
public function set name(value:String):void
parent | property |
parent:IFShapeContainer
parent shape container.
public function get parent():IFShapeContainer
public function set parent(value:IFShapeContainer):void
pixelHinting | property |
pixelHinting:Boolean
stroke pixelHinting
public function get pixelHinting():Boolean
public function set pixelHinting(value:Boolean):void
scaleMode | property |
scaleMode:String
stroke scaleMode.
public function get scaleMode():String
public function set scaleMode(value:String):void
See also
stroke | property |
stroke:ICanvasStroke
stroke style object.
public function get stroke():ICanvasStroke
public function set stroke(value:ICanvasStroke):void
strokeAlpha | property |
strokeAlpha:Number
stroke alpha.
public function get strokeAlpha():Number
public function set strokeAlpha(value:Number):void
strokeColor | property |
strokeColor:uint
stroke color.
public function get strokeColor():uint
public function set strokeColor(value:uint):void
strokeEnabled | property |
strokeEnabled:Boolean
stroke 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:Number
stroke 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:Boolean
shape 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):void
apply matrix( prepend mat to current matrix ).
Parameters
mat:Matrix |
disableStyle | () | method |
public function disableStyle():void
disable stroke and fill styles.
drawGraphics | () | method |
public function drawGraphics(gc:Graphics):void
draw the shape to graphics.
Parameters
gc:Graphics |
enableStyle | () | method |
public function enableStyle():void
enable stroke and fill styles.
resetMatrix | () | method |
public function resetMatrix():void
reset transfrom.
rotate | () | method |
public function rotate(angle:Number):void
rotate shape.
Parameters
angle:Number |
scale | () | method |
public function scale(x:Number, y:Number):void
scale shape.
Parameters
x:Number | |
y:Number (default = NaN )
|
toSprite | () | method |
public function toSprite():Sprite
make new Sprite instance.
ReturnsSprite |
translate | () | method |
public function translate(x:Number, y:Number):void
translate shape.
Parameters
x:Number | |
y:Number |
updateShapeGeom | () | method |
public function updateShapeGeom():void
update shape rectangle.( left, top, width, height )