| Package | com.bit101.components |
| Class | public class RotarySelector |
| Inheritance | RotarySelector Component flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| choice : uint | RotarySelector | ||
![]() | height : Number | Component | |
| labelMode : String | RotarySelector | ||
| numChoices : uint | RotarySelector | ||
![]() | width : Number | Component | |
![]() | x : Number
Overrides the setter for x to always place the component on a whole pixel.
| Component | |
![]() | y : Number
Overrides the setter for y to always place the component on a whole pixel.
| Component | |
| Method | Defined by | ||
|---|---|---|---|
|
RotarySelector(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, label:String = "", defaultHandler:Function = null)
Constructor
| RotarySelector | ||
|
draw():void
Draws the visual ui of the component.
| RotarySelector | ||
![]() |
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
Creates the children for this component
| RotarySelector | ||
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
| Component | |
|
init():void
Initializes the component.
| RotarySelector | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
| Component | |
| Constant | Defined by | ||
|---|---|---|---|
| ALPHABETIC : String = "alphabetic" [static]
| RotarySelector | ||
![]() | DRAW : String = "draw" [static]
| Component | |
| NONE : String = "none" [static]
| RotarySelector | ||
| NUMERIC : String = "numeric" [static]
| RotarySelector | ||
| ROMAN : String = "roman" [static]
| RotarySelector | ||
| choice | property |
choice:uint [read-write]Implementation
public function get choice():uint
public function set choice(value:uint):void
| labelMode | property |
labelMode:String [read-write]Implementation
public function get labelMode():String
public function set labelMode(value:String):void
| numChoices | property |
numChoices:uint [read-write]Implementation
public function get numChoices():uint
public function set numChoices(value:uint):void
| RotarySelector | () | constructor |
public function RotarySelector(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, label:String = "", defaultHandler:Function = null)Constructor
Parametersparent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this CheckBox.
|
|
xpos:Number (default = 0) — The x position to place this component.
|
|
ypos:Number (default = 0) — The y position to place this component.
|
|
label:String (default = "") — String containing the label for this component.
|
|
defaultHandler:Function (default = null) — The event handling function to handle the default event for this component (change in this case).
|
| addChildren | () | method |
protected override function addChildren():voidCreates the children for this component
| draw | () | method |
public override function draw():voidDraws the visual ui of the component.
| init | () | method |
protected override function init():voidInitializes the component.
| ALPHABETIC | constant |
public static const ALPHABETIC:String = "alphabetic"
| NONE | constant |
public static const NONE:String = "none"
| NUMERIC | constant |
public static const NUMERIC:String = "numeric"
| ROMAN | constant |
public static const ROMAN:String = "roman"