| Package | lunas.components.bars |
| Class | public class LevelBar |
| Inheritance | LevelBar CoreProgress CoreComponent Background CoreSprite flash.display.Sprite |
| Implements | Progressbar |
| Property | Defined By | ||
|---|---|---|---|
![]() | align : uint
The alignement of the background. | Background | |
![]() | autoResetPosition : Boolean
This flag indicates of the position is auto reset. | CoreProgress | |
![]() | autoSize : Boolean
Indicates if the background is resizing when the stage resize event is invoked. | Background | |
![]() | border : EdgeMetrics
Indicates the thickness, in pixels, of the four edge regions around a visual component. | CoreComponent | |
![]() | bottomLeftRadius : Number
The radius of the bottom-left corner, in pixels. | Background | |
![]() | bottomRightRadius : Number
The radius of the bottom-right corner, in pixels. | Background | |
![]() | bubbles : Boolean = true
Indicates if the events use bubbling when are dispatched. | CoreComponent | |
![]() | builder : Builder
Indicates the Builder reference of this instance. | CoreComponent | |
![]() | componentInspectorSetting : Boolean
Initialize when the Flash component settings are initialized (only in Flash with a compiled component). | CoreComponent | |
![]() | direction : String
Indicates the direction value of the background when the display is in this "full" mode (default value is null). | Background | |
![]() | enabled : Boolean
Indicates the enabled state of the component. | CoreComponent | |
![]() | fill : IFillStyle
Determinates the IFillStyle reference of this display. | Background | |
![]() | gradientMatrix : Matrix
The matrix value to draw the gradient fill. | Background | |
![]() | gradientRotation : Number = 0
The rotation value to draw the gradient fill. | Background | |
![]() | gradientTranslation : Point
The translation vector to draw the gradient fill. | Background | |
![]() | group : Boolean
Indicates with a boolean if this object is grouped. | CoreComponent | |
![]() | groupName : String
Indicates the name of the group of this object. | CoreComponent | |
![]() | h : Number
Determinates the virtual height value of this component. | Background | |
![]() | isFull : Boolean
Indicates if the background use full size (use Stage.stageWidth and Stage.stageHeight to resize the background). | Background | |
![]() | layout : Layout
Determinates the layout of this container. | CoreComponent | |
| level : Number
Indicates the Level value of media. | LevelBar | ||
![]() | line : ILineStyle
Determinates the ILineStyle reference of this display. | Background | |
![]() | logger : Logger
Determinates the internal ILogger reference of this Logable object. | CoreSprite | |
![]() | maxHeight : Number
This property defined the maximum height of this display. | Background | |
![]() | maximum : Number
The maximum value of this scrollbar. | CoreProgress | |
| maximumLevel : Number
The maximum level of the media. | LevelBar | ||
![]() | maxWidth : Number
Defines the maximum width of this display. | Background | |
![]() | minHeight : Number
This property defined the mimimun height of this display (This value is >= 0). | Background | |
![]() | minimum : Number
The minimum value of this scrollbar. | CoreProgress | |
| minimumLevel : Number
The minimum level of the media. | LevelBar | ||
![]() | minWidth : Number
This property defined the mimimun width of this display (This value is >= 0). | Background | |
![]() | position : Number
Indicates the position of the progress bar. | CoreProgress | |
![]() | style : Style
Returns the style of this component. | CoreComponent | |
![]() | topLeftRadius : Number
The radius of the upper-left corner, in pixels. | Background | |
![]() | topRightRadius : Number
The radius of the upper-right corner, in pixels. | Background | |
![]() | useGradientBox : Boolean
Indicates if the IFillStyle of this display use gradient box matrix (only if the IFillStyle is a FillGradientStyle). | Background | |
![]() | w : Number
Determinates the virtual height value of this component. | Background | |
| Property | Defined By | ||
|---|---|---|---|
| _level : Number = 0
The internal level value. | LevelBar | ||
![]() | _max : Number = 100
The max value of the progress. | CoreProgress | |
| _maxLevel : Number = 100
The max level value. | LevelBar | ||
![]() | _min : Number = 0
The min value of the progress. | CoreProgress | |
| _minLevel : Number = 0
The min level value. | LevelBar | ||
![]() | _position : Number = 0
The position value of the bar. | CoreProgress | |
![]() | _scope : DisplayObjectContainer
The scope of the active display of this container component. | CoreComponent | |
| Method | Defined By | ||
|---|---|---|---|
LevelBar(w:Number = 200, h:Number = 10)
Creates a new LevelBar instance. | LevelBar | ||
![]() | doLater():void
Launch an event with a delayed interval. | Background | |
![]() | draw(... arguments):void
Draw the display. | Background | |
getBuilderRenderer():Class [override]
Returns the Builder constructor use to initialize this component. | LevelBar | ||
getCurrentLevel():Number
Indicates the current level of the specified LevelBar. | LevelBar | ||
getStyleRenderer():Class [override]
Returns the Style constructor use to initialize this component. | LevelBar | ||
![]() | groupPolicyChanged():void
Invoked when the group property or the groupName property changed. | CoreComponent | |
![]() | hide():void
Hides the component. | CoreComponent | |
![]() | initBackgroundPen(graphic:* = null):IPen
Init the pen to draw the background of this display. | Background | |
![]() | initialize():void
Initialize the component. | CoreComponent | |
![]() | isLocked():Boolean
Returns true if the object is locked. | CoreSprite | |
![]() | isVisible():Boolean
Returns true if the component is visible. | CoreComponent | |
![]() | lock():void [override]
Locks the object. | CoreComponent | |
![]() | move(x:Number, y:Number):void
Moves the component. | CoreComponent | |
![]() | notifyChanged():void
Notify a change in this component. | CoreComponent | |
![]() | notifyEnabled():void
Notify an event when the enabled property is changed. | CoreComponent | |
![]() | notifyResized():void
Notify an event when you resize the component. | Background | |
![]() | refresh(init:*):void
Refresh and initialize the display with a generic object and invoke the "update" method. | Background | |
![]() | registerView(scope:DisplayObjectContainer = null):void
Registers the view of this component. | CoreComponent | |
![]() | resetLock():void
Reset the lock security of the display. | CoreSprite | |
![]() | resize(e:Event = null):void
Resize and update the background. | Background | |
![]() | scope():DisplayObject
Returns the real scope reference of this component. | CoreComponent | |
![]() | setCornerRadius(n:Number):void
Defines all corner radius of the background (upper-left, upper-right, bottom-left and bottom-right). | Background | |
setLevel(value:Number):void
Sets the level value of the media. | LevelBar | ||
![]() | setPosition(value:Number, noEvent:Boolean = false, flag:Boolean = false):void
Sets the position of the progress bar. | CoreProgress | |
![]() | setSize(w:Number, h:Number):void
Sets the virtual width (w) and height (h) values of the component. | Background | |
![]() | setStyle(... args):void
Sets the style property on the style declaration or object. | CoreComponent | |
![]() | show():void
Shows the component. | CoreComponent | |
![]() | unlock():void [override]
Unlocks the display. | CoreComponent | |
![]() | unregisterView():void
Unregisters the view of this component. | CoreComponent | |
![]() | update():void [override]
Updates the component. | CoreComponent | |
![]() | viewChanged():void [override]
Invoked when the view of the display is changed. | CoreProgress | |
![]() | viewDestroyed(e:Event = null):void
Invoked when the component is removed. | CoreComponent | |
![]() | viewEnabled():void
Invoked when the enabled property of the component change. | Background | |
viewPositionChanged(flag:Boolean = false):void [override]
Invoked when the position of the bar is changed. | LevelBar | ||
![]() | viewResize():void
Invoked when the component is resized. | Background | |
viewStyleChanged(e:Event = null):void [override]
Invoked when the component Style changed. | LevelBar | ||
| _level | property |
protected var _level:Number = 0The internal level value.
| _maxLevel | property |
protected var _maxLevel:Number = 100The max level value.
| _minLevel | property |
protected var _minLevel:Number = 0The min level value.
| level | property |
level:NumberIndicates the Level value of media.
public function get level():Number public function set level(value:Number):void| maximumLevel | property |
maximumLevel:NumberThe maximum level of the media.
public function get maximumLevel():Number public function set maximumLevel(value:Number):void| minimumLevel | property |
minimumLevel:NumberThe minimum level of the media.
public function get minimumLevel():Number public function set minimumLevel(value:Number):void| LevelBar | () | Constructor |
public function LevelBar(w:Number = 200, h:Number = 10)Creates a new LevelBar instance.
Parametersw:Number (default = 200) — The prefered width of the button (default 200 pixels).
| |
h:Number (default = 10) — The prefered height of the button (default 10 pixels).
|
| getBuilderRenderer | () | method |
override public function getBuilderRenderer():Class
Returns the Builder constructor use to initialize this component.
Class — the Builder constructor use to initialize this component.
|
| getCurrentLevel | () | method |
public function getCurrentLevel():NumberIndicates the current level of the specified LevelBar.
ReturnsNumber |
| getStyleRenderer | () | method |
override public function getStyleRenderer():Class
Returns the Style constructor use to initialize this component.
Class — the Style constructor use to initialize this component.
|
| setLevel | () | method |
public function setLevel(value:Number):voidSets the level value of the media.
Parameters
value:Number |
| viewPositionChanged | () | method |
override public function viewPositionChanged(flag:Boolean = false):voidInvoked when the position of the bar is changed.
Parameters
flag:Boolean (default = false) |
| viewStyleChanged | () | method |
override public function viewStyleChanged(e:Event = null):voidInvoked when the component Style changed.
Parameters
e:Event (default = null) |