| Package | org.unbland.ui.controllers |
| Class | public class UIStepController |
| Inheritance | UIStepController UINumericController UIController flash.events.EventDispatcher |
コントロール対象となるオブジェクトは以下の通りです.
| Property | Defined by | ||
|---|---|---|---|
| amount : Number
バックボタンもしくはフォアボタンがクリックされた時に適用する数値です.
| UIStepController | ||
![]() | autoRendering : Boolean
この UI のレンダリングを自動的に行うか否かです.
| UIController | |
| autoRepeats : Boolean
バックボタンもしくはフォアボタンを押したままにした時に自動的に数値の増減を行うか否かです.
| UIStepController | ||
| backBounds : Rectangle [read-only]
各パラメータの計算結果が反映されたバックボタンのエリア領域です.
| UIStepController | ||
| backEnabled : Boolean [read-only]
バックボタンが使用可能か否かです.
| UIStepController | ||
![]() | enabled : Boolean
この UI がユーザーのマウスやキーボード操作を受け付けるか否かです.
| UIController | |
| foreBounds : Rectangle [read-only]
各パラメータの計算結果が反映されたフォアボタンのエリア領域です.
| UIStepController | ||
| foreEnabled : Boolean [read-only]
フォアボタンが使用可能か否かです.
| UIStepController | ||
![]() | governed : Boolean
この UI が示す数値を最小値と最大値の範囲内に丸め込むか否かです.
| UINumericController | |
| initiateCount : int
autoRepeats が true の時に増減を行う際, 最初に繰り返す回数です.
| UIStepController | ||
| initiateDuration : int
autoRepeats が true の時に増減を行う際, 最初に繰り返す時間の間隔です.
| UIStepController | ||
| interval : int
autoRepeats が true の時に増減を行う時間の間隔です.
| UIStepController | ||
![]() | length : Number
最小値から最大値までの長さです.
| UINumericController | |
![]() | max : Number
この UI が示す数値の最大値です.
| UINumericController | |
![]() | min : Number
この UI が示す数値の最小値です.
| UINumericController | |
![]() | percentage : Number
最小値から最大値までの長さに対する数値の百分率です.
| UINumericController | |
![]() | pixelSnapped : Boolean
レンダリングの時に各パーツをピクセルに吸着して配置するか否かです.
| UIController | |
![]() | ratio : Number
最小値から最大値までの長さに対する数値の比率です.
| UINumericController | |
![]() | value : Number
この UI が示す数値です.
| UINumericController | |
| Method | Defined 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 | ||
![]() |
UI のプロパティ同士が同期するように設定します.
| UIController | |
|
dispose():void
このオブジェクト内で使用されている全てのオブジェクトを開放します.
| UIStepController | ||
![]() |
lock():void
update メソッドの呼び出しによる UI の更新処理をロックします.
| UIController | |
|
render():void
レンダリング (パーツの再配置など) を行います.
| UIStepController | ||
![]() |
UI のプロパティ同士の同期を解除します.
| UIController | |
![]() |
unlock():void
更新処理のロックを解除し, ロック中に更新されたプロパティがある場合は更新処理を行います.
| UIController | |
![]() |
update():void
各プロパティの情報を元に UI のエリア領域などを更新します.
| UIController | |
| Method | Defined by | ||
|---|---|---|---|
|
_updateBoundsFromView():void
バックボタンとフォアボタンの矩形情報をビューレイアウトのサイズを元に更新します.
| UIStepController | ||
| amount | property |
amount:Number [read-write]バックボタンもしくはフォアボタンがクリックされた時に適用する数値です.
The default value is 1.0.
public function get amount():Number
public function set amount(value:Number):void
| autoRepeats | property |
autoRepeats:Boolean [read-write]バックボタンもしくはフォアボタンを押したままにした時に自動的に数値の増減を行うか否かです.
initiateCount 回だけ initiateDuration ミリ秒で増減した後, interval ミリ秒間隔で数値の増減を行います.
The default value is true.
public function get autoRepeats():Boolean
public function set autoRepeats(value:Boolean):void
See also
| backBounds | property |
backBounds:Rectangle [read-only]各パラメータの計算結果が反映されたバックボタンのエリア領域です.
Implementation public function get backBounds():Rectangle
| backEnabled | property |
backEnabled:Boolean [read-only]バックボタンが使用可能か否かです.
Implementation public function get backEnabled():Boolean
| foreBounds | property |
foreBounds:Rectangle [read-only]各パラメータの計算結果が反映されたフォアボタンのエリア領域です.
Implementation public function get foreBounds():Rectangle
| foreEnabled | property |
foreEnabled:Boolean [read-only]フォアボタンが使用可能か否かです.
Implementation public function get foreEnabled():Boolean
| initiateCount | property |
initiateCount:int [read-write]autoRepeats が true の時に増減を行う際, 最初に繰り返す回数です.
initiateCount 回だけ initiateDuration ミリ秒で増減した後, interval ミリ秒間隔で数値の増減を行います.
The default value is 5.
public function get initiateCount():int
public function set initiateCount(value:int):void
See also
| initiateDuration | property |
initiateDuration:int [read-write]autoRepeats が true の時に増減を行う際, 最初に繰り返す時間の間隔です. 単位はミリ秒で指定します.
initiateCount 回だけ initiateDuration ミリ秒をかけて増減した後, interval ミリ秒間隔で数値の増減を行います.
The default value is 1000.
public function get initiateDuration():int
public function set initiateDuration(value:int):void
See also
| interval | property |
interval:int [read-write]autoRepeats が true の時に増減を行う時間の間隔です. 単位はミリ秒で指定します.
initiateCount 回だけ initiateDuration ミリ秒で増減した後, interval ミリ秒間隔で数値の増減を行います.
The default value is 30.
public function get interval():int
public function set interval(value:int):void
See also
| 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 インスタンスを作成します.
Parametersview: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 のレンダリングを自動的に行うか否かです.
|
— ビューにバックボタン (back) もしくはフォアボタン (fore) が配置されていない場合.
|
| _updateBoundsFromView | () | method |
protected function _updateBoundsFromView():voidバックボタンとフォアボタンの矩形情報をビューレイアウトのサイズを元に更新します.
| dispose | () | method |
public override function dispose():voidこのオブジェクト内で使用されている全てのオブジェクトを開放します.
| render | () | method |
public override function render():voidレンダリング (パーツの再配置など) を行います.
本来はこのメソッドを明示的に呼び出す必要はありませんが, プロパティを操作しても表示がおかしい場合は明示的に呼び出します.
プロパティを操作しても表示がおかしいのは以下のような場合です.