| Package | com.bit101.components |
| Class | public class Component |
| Inheritance | Component flash.display.Sprite |
| Subclasses | Accordion, Chart, CheckBox, ColorChooser, ComboBox, FPSMeter, HBox, IndicatorLight, InputText, Knob, Label, List, ListItem, Meter, NumericStepper, Panel, ProgressBar, PushButton, RadioButton, RangeSlider, RotarySelector, ScrollBar, Slider, Text, UISlider, VBox, WheelMenu, Window |
| Property | Defined By | ||
|---|---|---|---|
|
enabled : Boolean
Sets/gets whether this component is enabled or not.
|
Component | ||
|
height : Number [override]
Sets/gets the height of the component.
|
Component | ||
|
tag : int
Sets/gets in integer that can identify the component.
|
Component | ||
|
width : Number [override]
Sets/gets the width of the component.
|
Component | ||
|
x : Number [override] [write-only]
Overrides the setter for x to always place the component on a whole pixel.
|
Component | ||
|
y : Number [override] [write-only]
Overrides the setter for y to always place the component on a whole pixel.
|
Component | ||
| Property | Defined By | ||
|---|---|---|---|
| _enabled : Boolean = true | Component | ||
| _height : Number = 0 | Component | ||
| Ronda : Class | Component | ||
| _tag : int = -1 | Component | ||
| _width : Number = 0 | Component | ||
| Method | Defined By | ||
|---|---|---|---|
|
Component(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
|
Component | ||
|
draw():void
Abstract draw function.
|
Component | ||
|
initStage(stage:Stage):void
[static]
Utility method to set up usual stage align and scaling.
|
Component | ||
|
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
|
Component | ||
|
setSize(w:Number, h:Number):void
Sets the size of the component.
|
Component | ||
| Method | Defined By | ||
|---|---|---|---|
|
addChildren():void
Overriden in subclasses to create child display objects.
|
Component | ||
|
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
|
Component | ||
|
init():void
Initilizes the component.
|
Component | ||
|
invalidate():void
Marks the component to be redrawn on the next frame.
|
Component | ||
|
onInvalidate(event:Event):void
Called one frame after invalidate is called.
|
Component | ||
| Constant | Defined By | ||
|---|---|---|---|
|
DRAW : String = draw [static]
|
Component | ||
| _enabled | property |
protected var _enabled:Boolean = true
| _height | property |
protected var _height:Number = 0
| _tag | property |
protected var _tag:int = -1
| _width | property |
protected var _width:Number = 0
| enabled | property |
enabled:Boolean
Sets/gets whether this component is enabled or not.
public function get enabled():Boolean public function set enabled(value:Boolean):void| height | property |
height:Number[override]
Sets/gets the height of the component.
public function get height():Number public function set height(value:Number):void| Ronda | property |
protected var Ronda:Class
| tag | property |
tag:int
Sets/gets in integer that can identify the component.
public function get tag():int public function set tag(value:int):void| width | property |
width:Number[override]
Sets/gets the width of the component.
public function get width():Number public function set width(value:Number):void| x | property |
x:Number [write-only] [override]
Overrides the setter for x to always place the component on a whole pixel.
public function set x(value:Number):void| y | property |
y:Number [write-only] [override]
Overrides the setter for y to always place the component on a whole pixel.
public function set y(value:Number):void| Component | () | Constructor |
public function Component(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
Parameters
parent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this component.
|
|
xpos:Number (default = 0) — The x position to place this component.
|
|
ypos:Number (default = 0) — The y position to place this component.
|
| addChildren | () | method |
protected function addChildren():void
Overriden in subclasses to create child display objects.
| draw | () | method |
public function draw():void
Abstract draw function.
| getShadow | () | method |
protected function getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
Parameters
dist:Number — The distance of the shadow.
|
|
knockout:Boolean (default = false) — Whether or not to create a knocked out shadow.
|
DropShadowFilter |
| init | () | method |
protected function init():void
Initilizes the component.
| initStage | () | method |
public static function initStage(stage:Stage):void
Utility method to set up usual stage align and scaling.
Parameters
stage:Stage |
| invalidate | () | method |
protected function invalidate():void
Marks the component to be redrawn on the next frame.
| move | () | method |
public function move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
Parameters
xpos:Number — the x position to move the component
|
|
ypos:Number — the y position to move the component
|
| onInvalidate | () | method |
protected function onInvalidate(event:Event):void
Called one frame after invalidate is called.
Parameters
event:Event |
| setSize | () | method |
public function setSize(w:Number, h:Number):void
Sets the size of the component.
Parameters
w:Number — The width of the component.
|
|
h:Number — The height of the component.
|
| DRAW | Constant |
public static const DRAW:String = draw