Packageorg.unbland.ui.controllers
Classpublic class UIStepController
InheritanceUIStepController Inheritance UINumericController Inheritance UIController Inheritance flash.events.EventDispatcher

このクラスはバックボタンもしくはフォアボタンで数値をコントロールする機能を有します.

コントロール対象となるオブジェクトは以下の通りです.



Public Properties
 PropertyDefined by
  amount : Number
バックボタンもしくはフォアボタンがクリックされた時に適用する数値です.
UIStepController
 InheritedautoRendering : Boolean
この UI のレンダリングを自動的に行うか否かです.
UIController
  autoRepeats : Boolean
バックボタンもしくはフォアボタンを押したままにした時に自動的に数値の増減を行うか否かです.
UIStepController
  backBounds : Rectangle
[read-only] 各パラメータの計算結果が反映されたバックボタンのエリア領域です.
UIStepController
  backEnabled : Boolean
[read-only] バックボタンが使用可能か否かです.
UIStepController
 Inheritedenabled : Boolean
この UI がユーザーのマウスやキーボード操作を受け付けるか否かです.
UIController
  foreBounds : Rectangle
[read-only] 各パラメータの計算結果が反映されたフォアボタンのエリア領域です.
UIStepController
  foreEnabled : Boolean
[read-only] フォアボタンが使用可能か否かです.
UIStepController
 Inheritedgoverned : Boolean
この UI が示す数値を最小値と最大値の範囲内に丸め込むか否かです.
UINumericController
  initiateCount : int
autoRepeats が true の時に増減を行う際, 最初に繰り返す回数です.
UIStepController
  initiateDuration : int
autoRepeats が true の時に増減を行う際, 最初に繰り返す時間の間隔です.
UIStepController
  interval : int
autoRepeats が true の時に増減を行う時間の間隔です.
UIStepController
 Inheritedlength : Number
最小値から最大値までの長さです.
UINumericController
 Inheritedmax : Number
この UI が示す数値の最大値です.
UINumericController
 Inheritedmin : Number
この UI が示す数値の最小値です.
UINumericController
 Inheritedpercentage : Number
最小値から最大値までの長さに対する数値の百分率です.
UINumericController
 InheritedpixelSnapped : Boolean
レンダリングの時に各パーツをピクセルに吸着して配置するか否かです.
UIController
 Inheritedratio : Number
最小値から最大値までの長さに対する数値の比率です.
UINumericController
 Inheritedvalue : Number
この UI が示す数値です.
UINumericController
Public Methods
 MethodDefined by
  
UIStepController(view:DisplayObjectContainer, value:Number = 0.0, min:Number = 0.0, max:Number = 0.0, amount:Number = 1.0, pixelSnapped:Boolean = true, autoRendering:Boolean = true)
新しい UIStepController インスタンスを作成します.
UIStepController
 Inherited
bind(ui1:IUIBase, propName1:String, ui2:IUIBase, propName2:String, isTwoWay:Boolean = false):void
UI のプロパティ同士が同期するように設定します.
UIController
  
dispose():void
このオブジェクト内で使用されている全てのオブジェクトを開放します.
UIStepController
 Inherited
lock():void
update メソッドの呼び出しによる UI の更新処理をロックします.
UIController
  
render():void
レンダリング (パーツの再配置など) を行います.
UIStepController
 Inherited
unbind(ui1:IUIBase, propName1:String, ui2:IUIBase, propName2:String):void
UI のプロパティ同士の同期を解除します.
UIController
 Inherited
unlock():void
更新処理のロックを解除し, ロック中に更新されたプロパティがある場合は更新処理を行います.
UIController
 Inherited
update():void
各プロパティの情報を元に UI のエリア領域などを更新します.
UIController
Protected Methods
 MethodDefined by
  
バックボタンとフォアボタンの矩形情報をビューレイアウトのサイズを元に更新します.
UIStepController
Property detail
amountproperty
amount:Number  [read-write]

バックボタンもしくはフォアボタンがクリックされた時に適用する数値です.

The default value is 1.0.

Implementation
    public function get amount():Number
    public function set amount(value:Number):void
autoRepeatsproperty 
autoRepeats:Boolean  [read-write]

バックボタンもしくはフォアボタンを押したままにした時に自動的に数値の増減を行うか否かです.

initiateCount 回だけ initiateDuration ミリ秒で増減した後, interval ミリ秒間隔で数値の増減を行います.

The default value is true.

Implementation
    public function get autoRepeats():Boolean
    public function set autoRepeats(value:Boolean):void

See also

backBoundsproperty 
backBounds:Rectangle  [read-only]

各パラメータの計算結果が反映されたバックボタンのエリア領域です.

Implementation
    public function get backBounds():Rectangle
backEnabledproperty 
backEnabled:Boolean  [read-only]

バックボタンが使用可能か否かです.

Implementation
    public function get backEnabled():Boolean
foreBoundsproperty 
foreBounds:Rectangle  [read-only]

各パラメータの計算結果が反映されたフォアボタンのエリア領域です.

Implementation
    public function get foreBounds():Rectangle
foreEnabledproperty 
foreEnabled:Boolean  [read-only]

フォアボタンが使用可能か否かです.

Implementation
    public function get foreEnabled():Boolean
initiateCountproperty 
initiateCount:int  [read-write]

autoRepeats が true の時に増減を行う際, 最初に繰り返す回数です.

initiateCount 回だけ initiateDuration ミリ秒で増減した後, interval ミリ秒間隔で数値の増減を行います.

The default value is 5.

Implementation
    public function get initiateCount():int
    public function set initiateCount(value:int):void

See also

initiateDurationproperty 
initiateDuration:int  [read-write]

autoRepeats が true の時に増減を行う際, 最初に繰り返す時間の間隔です. 単位はミリ秒で指定します.

initiateCount 回だけ initiateDuration ミリ秒をかけて増減した後, interval ミリ秒間隔で数値の増減を行います.

The default value is 1000.

Implementation
    public function get initiateDuration():int
    public function set initiateDuration(value:int):void

See also

intervalproperty 
interval:int  [read-write]

autoRepeats が true の時に増減を行う時間の間隔です. 単位はミリ秒で指定します.

initiateCount 回だけ initiateDuration ミリ秒で増減した後, interval ミリ秒間隔で数値の増減を行います.

The default value is 30.

Implementation
    public function get interval():int
    public function set interval(value:int):void

See also

Constructor detail
UIStepController()constructor
public function UIStepController(view:DisplayObjectContainer, value:Number = 0.0, min:Number = 0.0, max:Number = 0.0, amount:Number = 1.0, pixelSnapped:Boolean = true, autoRendering:Boolean = true)

新しい UIStepController インスタンスを作成します.

Parameters
view:DisplayObjectContainer — この UI に使用するビューです.
 
value:Number (default = 0.0) — この UI が示す数値です.
 
min:Number (default = 0.0) — この UI が示す数値の最小値です.
 
max:Number (default = 0.0) — この UI が示す数値の最大値です.
 
amount:Number (default = 1.0) — バックボタンもしくはフォアボタンがクリックされた時に適用する数値です.
 
pixelSnapped:Boolean (default = true) — レンダリングの時に各パーツをピクセルに吸着して配置するか否かです.
 
autoRendering:Boolean (default = true) — この UI のレンダリングを自動的に行うか否かです.

Throws
— ビューにバックボタン (back) もしくはフォアボタン (fore) が配置されていない場合.
Method detail
_updateBoundsFromView()method
protected function _updateBoundsFromView():void

バックボタンとフォアボタンの矩形情報をビューレイアウトのサイズを元に更新します.

dispose()method 
public override function dispose():void

このオブジェクト内で使用されている全てのオブジェクトを開放します.

render()method 
public override function render():void

レンダリング (パーツの再配置など) を行います.

本来はこのメソッドを明示的に呼び出す必要はありませんが, プロパティを操作しても表示がおかしい場合は明示的に呼び出します.

プロパティを操作しても表示がおかしいのは以下のような場合です.