| Package | flare.display |
| Class | public class RectSprite |
| Inheritance | RectSprite DirtySprite flash.display.Sprite |
| Subclasses | LegendItem, LegendRange |
| Property | Defined by | ||
|---|---|---|---|
![]() | angle : Number The angle value of this sprite's position in polar co-ordinates.
| DirtySprite | |
| cornerHeight : Number The height of rounded corners.
| RectSprite | ||
| cornerSize : Number [write-only] Sets corner width and height simultaneously.
| RectSprite | ||
| cornerWidth : Number The width of rounded corners.
| RectSprite | ||
| fillColor : uint The fill color of the rectangle.
| RectSprite | ||
| h : Number The height of the rectangle.
| RectSprite | ||
![]() | height : Number
If dirty, this sprite is re-rendered before returning the height.
| DirtySprite | |
| lineColor : uint The line color of the rectangle outline.
| RectSprite | ||
| linePixelHinting : Boolean Flag indicating if pixel hinting should be used for the outline.
| RectSprite | ||
| lineWidth : Number The line width of the rectangle outline.
| RectSprite | ||
![]() | origin : Point The origin point for polar coordinates.
| DirtySprite | |
![]() | radius : Number The radius value of this sprite's position in polar co-ordinates.
| DirtySprite | |
| w : Number The width of the rectangle.
| RectSprite | ||
![]() | width : Number
If dirty, this sprite is re-rendered before returning the width.
| DirtySprite | |
![]() | x : Number | DirtySprite | |
![]() | y : Number | DirtySprite | |
| Method | Defined by | ||
|---|---|---|---|
|
RectSprite(x:Number = 0, y:Number = 0, w:Number = 0, h:Number = 0, cw:Number = 0, ch:Number = 0)
Creates a new RectSprite.
| RectSprite | ||
![]() |
dirty():void
Marks this sprite as "dirty" and in need of re-rendering.
| DirtySprite | |
![]() |
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
If dirty, this sprite is re-rendered returning the bounds.
| DirtySprite | |
![]() |
getRect(targetCoordinateSpace:DisplayObject):Rectangle
If dirty, this sprite is re-rendered before returning the rect.
| DirtySprite | |
![]() |
hitTestObject(obj:DisplayObject):Boolean
If dirty, either sprite is re-rendered before hit-testing.
| DirtySprite | |
![]() |
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
If dirty, this sprite is re-rendered before hit-testing.
| DirtySprite | |
|
render():void
Draw this sprite's graphical content.
| RectSprite | ||
![]() |
renderDirty(evt:Event = null):void
[static]
Frame render callback that renders all sprites on the dirty list.
| DirtySprite | |
![]() |
toString():String
| DirtySprite | |
| cornerHeight | property |
cornerHeight:Number [read-write]The height of rounded corners. Zero indicates no rounding.
Implementation public function get cornerHeight():Number
public function set cornerHeight(value:Number):void
| cornerSize | property |
cornerSize:Number [write-only]Sets corner width and height simultaneously.
Implementation public function set cornerSize(value:Number):void
| cornerWidth | property |
cornerWidth:Number [read-write]The width of rounded corners. Zero indicates no rounding.
Implementation public function get cornerWidth():Number
public function set cornerWidth(value:Number):void
| fillColor | property |
fillColor:uint [read-write]The fill color of the rectangle.
Implementation public function get fillColor():uint
public function set fillColor(value:uint):void
| h | property |
h:Number [read-write]The height of the rectangle.
Implementation public function get h():Number
public function set h(value:Number):void
| lineColor | property |
lineColor:uint [read-write]The line color of the rectangle outline.
Implementation public function get lineColor():uint
public function set lineColor(value:uint):void
| linePixelHinting | property |
linePixelHinting:Boolean [read-write]Flag indicating if pixel hinting should be used for the outline.
Implementation public function get linePixelHinting():Boolean
public function set linePixelHinting(value:Boolean):void
| lineWidth | property |
lineWidth:Number [read-write]The line width of the rectangle outline.
Implementation public function get lineWidth():Number
public function set lineWidth(value:Number):void
| w | property |
w:Number [read-write]The width of the rectangle.
Implementation public function get w():Number
public function set w(value:Number):void
| RectSprite | () | constructor |
public function RectSprite(x:Number = 0, y:Number = 0, w:Number = 0, h:Number = 0, cw:Number = 0, ch:Number = 0)Creates a new RectSprite.
Parametersx:Number (default = 0) — the x-coordinate of the top-left corner of the rectangle
|
|
y:Number (default = 0) — the y-coordinate of the top-left corder of the rectangle
|
|
w:Number (default = 0) — the width of the rectangle
|
|
h:Number (default = 0) — the height of the rectangle
|
|
cw:Number (default = 0) — the width of rounded corners (zero for no rounding)
|
|
ch:Number (default = 0) — the height of rounded corners (zero for no rounding)
|
| render | () | method |
public override function render():voidDraw this sprite's graphical content. Subclasses should override this method with custom drawing code.