チェンジセット 637
- コミット日時:
- 2008/06/14 11:49:01 (5 ヶ月前)
- ファイル:
-
- as3/Thread/branches/soumen/Thread.as3proj (更新) (1 diff)
- as3/Thread/branches/soumen/src/org/libspark/thread/EnterFrameThreadExecutor.as (更新) (4 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/IMonitor.as (更新) (2 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/IThreadExecutor.as (更新) (1 diff)
- as3/Thread/branches/soumen/src/org/libspark/thread/IntervalThreadExecutor.as (更新) (1 diff)
- as3/Thread/branches/soumen/src/org/libspark/thread/Monitor.as (更新) (9 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/Thread.as (更新) (1 diff)
- as3/Thread/branches/soumen/src/org/libspark/thread/ThreadState.as (更新) (3 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/errors/CurrentThreadNotFoundError.as (更新) (1 diff)
- as3/Thread/branches/soumen/src/org/libspark/thread/errors/IllegalThreadStateError.as (更新) (1 diff)
- as3/Thread/branches/soumen/src/org/libspark/thread/errors/InterruptedError.as (更新) (2 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/errors/ThreadLibraryNotInitializedError.as (更新) (1 diff)
- as3/Thread/branches/soumen/src/org/libspark/thread/threads/display/LoaderThread.as (更新) (10 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/threads/frocessing/Frocessing2DThread.as (更新) (7 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/threads/frocessing/Frocessing3DThread.as (更新) (7 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/threads/media/SoundLoaderThread.as (更新) (8 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/threads/net/URLLoaderThread.as (更新) (10 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/threads/progression/CommandThread.as (更新) (7 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/threads/progression/ThreadCommand.as (更新) (7 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/threads/tweener/TweenerThread.as (更新) (9 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/utils/Executor.as (更新) (5 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/utils/IProgress.as (更新) (8 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/utils/IProgressNotifier.as (更新) (2 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/utils/MultiProgress.as (更新) (8 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/utils/ParallelExecutor.as (更新) (3 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/utils/Progress.as (更新) (11 diffs)
- as3/Thread/branches/soumen/src/org/libspark/thread/utils/events/ProgressEvent.as (更新) (7 diffs)
- trac/htdocs/as3/thread/all-index-A.html (更新) (2 diffs)
- trac/htdocs/as3/thread/all-index-C.html (更新) (13 diffs)
- trac/htdocs/as3/thread/all-index-D.html (更新) (2 diffs)
- trac/htdocs/as3/thread/all-index-E.html (更新) (4 diffs)
- trac/htdocs/as3/thread/all-index-F.html (更新) (11 diffs)
- trac/htdocs/as3/thread/all-index-G.html (更新) (1 diff)
- trac/htdocs/as3/thread/all-index-I.html (更新) (22 diffs)
- trac/htdocs/as3/thread/all-index-L.html (更新) (6 diffs)
- trac/htdocs/as3/thread/all-index-M.html (更新) (3 diffs)
- trac/htdocs/as3/thread/all-index-N.html (更新) (5 diffs)
- trac/htdocs/as3/thread/all-index-P.html (更新) (12 diffs)
- trac/htdocs/as3/thread/all-index-R.html (更新) (4 diffs)
- trac/htdocs/as3/thread/all-index-S.html (更新) (14 diffs)
- trac/htdocs/as3/thread/all-index-T.html (更新) (12 diffs)
- trac/htdocs/as3/thread/all-index-U.html (更新) (6 diffs)
- trac/htdocs/as3/thread/all-index-W.html (更新) (2 diffs)
- trac/htdocs/as3/thread/class-summary.html (更新) (16 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/EnterFrameThreadExecutor.html (更新) (7 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/IMonitor.html (更新) (9 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/IThreadExecutor.html (更新) (5 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/IntervalThreadExecutor.html (更新) (5 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/Monitor.html (更新) (11 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/Thread.html (更新) (6 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/ThreadState.html (更新) (5 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/errors/CurrentThreadNotFoundError.html (更新) (4 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/errors/IllegalThreadStateError.html (更新) (4 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/errors/InterruptedError.html (更新) (4 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/errors/ThreadLibraryNotInitializedError.html (更新) (4 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/errors/package-detail.html (更新) (1 diff)
- trac/htdocs/as3/thread/org/libspark/thread/package-detail.html (更新) (3 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/threads/display/LoaderThread.html (更新) (18 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/threads/display/package-detail.html (更新) (1 diff)
- trac/htdocs/as3/thread/org/libspark/thread/threads/frocessing/Frocessing2DThread.html (更新) (16 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/threads/frocessing/Frocessing3DThread.html (更新) (16 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/threads/frocessing/package-detail.html (更新) (1 diff)
- trac/htdocs/as3/thread/org/libspark/thread/threads/media/SoundLoaderThread.html (更新) (14 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/threads/net/URLLoaderThread.html (更新) (17 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/threads/net/package-detail.html (更新) (1 diff)
- trac/htdocs/as3/thread/org/libspark/thread/threads/progression/CommandThread.html (更新) (11 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/threads/progression/ThreadCommand.html (更新) (5 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/threads/progression/package-detail.html (更新) (1 diff)
- trac/htdocs/as3/thread/org/libspark/thread/threads/tweener/TweenerThread.html (更新) (16 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/threads/tweener/package-detail.html (更新) (1 diff)
- trac/htdocs/as3/thread/org/libspark/thread/utils/EventDispatcherThread.html (更新) (5 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/utils/Executor.html (更新) (16 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/utils/IProgress.html (更新) (16 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/utils/IProgressNotifier.html (更新) (3 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/utils/MultiProgress.html (更新) (25 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/utils/ParallelExecutor.html (更新) (14 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/utils/Progress.html (更新) (31 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/utils/SerialExecutor.html (更新) (14 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/utils/events/ProgressEvent.html (更新) (13 diffs)
- trac/htdocs/as3/thread/org/libspark/thread/utils/events/package-detail.html (更新) (1 diff)
- trac/htdocs/as3/thread/org/libspark/thread/utils/package-detail.html (更新) (2 diffs)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/Thread/branches/soumen/Thread.as3proj
r632 r637 69 69 <!-- Class files to compile (other referenced classes will automatically be included) --> 70 70 <compileTargets> 71 <compile path=" tests\RunTests.as" />71 <compile path="samples\progress\Sample.as" /> 72 72 </compileTargets> 73 73 <!-- Paths to exclude from the Project Explorer tree --> as3/Thread/branches/soumen/src/org/libspark/thread/EnterFrameThreadExecutor.as
r535 r637 32 32 33 33 /** 34 * EnterFrameThreadExecutor クラスは IThreadExecutor インターフェイスの実装クラスで、 35 * フレーム実行のタイミングでスレッドを実行します. 36 * 34 37 * @author yossy:beinteractive 35 38 */ 36 39 public class EnterFrameThreadExecutor implements IThreadExecutor 37 40 { 41 /** 42 * 新しい EnterFrameThreadExecutor クラスのインスタンスを作成します 43 */ 38 44 public function EnterFrameThreadExecutor() 39 45 { … … 42 48 private var _clip:MovieClip; 43 49 50 /** 51 * @inheritDoc 52 */ 44 53 public function start():void 45 54 { … … 52 61 } 53 62 63 /** 64 * @inheritDoc 65 */ 54 66 public function stop():void 55 67 { … … 62 74 } 63 75 76 /** 77 * フレーム実行ハンドラ 78 * 79 * @param e イベント 80 * @private 81 */ 64 82 private function enterFrameHandler(e:Event):void 65 83 { as3/Thread/branches/soumen/src/org/libspark/thread/IMonitor.as
r535 r637 29 29 { 30 30 /** 31 * IMonitor インターフェイスは、スレッドのモニタ機構に関するメソッドを提供します. 32 * 33 * <p>モニタ機構は、スレッドを協調動作させるために使用します。たとえば、あるリソースが利用可能になるまで、 34 * そのリソースを利用する必要があるスレッドを待機させる、といったことが出来ます。</p> 35 * 31 36 * @author yossy:beinteractive 32 37 */ … … 34 39 { 35 40 /** 36 * 別のスレッドがこのモニターの notify () メソッドまたは notifyAll() メソッドを呼び出すか、指定された時間が経過するまで、現在のスレッドを待機させます。41 * 別のスレッドがこのモニターの notify メソッドまたは notifyAll メソッドを呼び出すか、指定された時間が経過するまで、現在のスレッドを待機させます. 37 42 * 38 * 待機時間に 0 を指定すると、永遠に待ち続けます。39 * 40 * @ param timeout 待機時間(ミリ秒)43 * @param timeout 待機させる時間 (ミリ秒)。 0 を指定した場合、永遠に待ち続けます 44 * @see #notify() 45 * @see #notifyAll() 41 46 */ 42 47 function wait(timeout:uint = 0):void; 43 48 44 49 /** 45 * このモニターで待機中のスレッドを 1 つ再開します。 50 * このモニターで待機中のスレッドを 1 つ再開します. 51 * 52 * @see #wait() 46 53 */ 47 54 function notify():void; 48 55 49 56 /** 50 * このモニターで待機中のすべてのスレッドを再開します。 57 * このモニターで待機中のすべてのスレッドを再開します. 58 * 59 * @see #wait() 51 60 */ 52 61 function notifyAll():void; 53 62 54 63 /** 55 * 待機中に例外が発生した等の理由で、指定されたスレッドがこのモニタの待機セットから抜けることを伝えます。 56 * 通常、このメソッドは内部的にのみ使用され、ユーザーが呼び出す必要はありません。 64 * 待機中に例外が発生した等の理由で、指定されたスレッドがこのモニタの待機セットから抜けることを伝えます. 65 * 66 * <p>通常、このメソッドは内部的にのみ使用され、ユーザーが呼び出す必要はありません。</p> 57 67 * 58 68 * @param thread 待機セットから抜けるスレッド as3/Thread/branches/soumen/src/org/libspark/thread/IThreadExecutor.as
r535 r637 29 29 { 30 30 /** 31 * IThreadExecutor インターフェイスはスレッドの実行タイミングを制御する役割を持ちます. 32 * 33 * <p>IThreadExecutor インターフェイスの実装クラスは、 Thread#executeAllThreads メソッドを呼び出して、 34 * スレッドを実行する必要があります。この動作は、何らかの条件に基づいて、 start メソッドが呼び出されてから、 35 * stop メソッドが呼び出されるまで、断続的に行う必要があります。</p> 36 * 31 37 * @author yossy:beinteractive 38 * @see Thread#executeAllThreads() 32 39 */ 33 40 public interface IThreadExecutor 34 41 { 42 /** 43 * IThreadExecutor の実行を開始します. 44 * 45 * <p>このメソッドが呼び出された後は、何らかの条件に基づいて、 stop メソッドが呼び出されるまで、 46 * Thread#executeAllThreads メソッドを断続的に呼び出すことが求められます。</p> 47 */ 35 48 function start():void; 49 50 /** 51 * IThreadExecutor の実行を終了します. 52 */ 36 53 function stop():void; 37 54 } as3/Thread/branches/soumen/src/org/libspark/thread/IntervalThreadExecutor.as
r628 r637 32 32 33 33 /** 34 * IntervalThreadExecutor は IThreadExecutor インターフェイスの実装クラスで、34 * IntervalThreadExecutor クラスは IThreadExecutor インターフェイスの実装クラスで、 35 35 * 指定された時間の間隔でスレッドを実行します. 36 36 * as3/Thread/branches/soumen/src/org/libspark/thread/Monitor.as
r535 r637 33 33 34 34 /** 35 * Monitor クラスは IMonitor インターフェイスの実装クラスで、モニタ機構の最も一般的な実装を提供します. 36 * 35 37 * @author yossy:beinteractive 36 38 */ 37 39 public class Monitor implements IMonitor 38 40 { 41 /** 42 * 新しい Monitor クラスのインスタンスを生成します. 43 */ 39 44 public function Monitor() 40 45 { … … 44 49 private var _timeoutList:Dictionary; 45 50 51 /** 52 * ウェイトセットを返します. 53 * 54 * @return ウェイトセット 55 * @private 56 */ 46 57 private function getWaitors():Array 47 58 { … … 49 60 } 50 61 62 /** 63 * タイムアウトを設定します. 64 * 65 * @param thread 設定するスレッド 66 * @param timeout タイムアウトするまでの時間 67 * @private 68 */ 51 69 private function registerTimeout(thread:Thread, timeout:uint):void 52 70 { … … 60 78 } 61 79 80 /** 81 * タイムアウトを解除します. 82 * 83 * @param thread 解除するスレッド 84 * @private 85 */ 62 86 private function unregisterTimeout(thread:Thread):void 63 87 { … … 77 101 } 78 102 103 /** 104 * @inheritDoc 105 */ 79 106 public function wait(timeout:uint = 0):void 80 107 { … … 94 121 } 95 122 123 /** 124 * @inheritDoc 125 */ 96 126 public function notify():void 97 127 { … … 111 141 } 112 142 143 /** 144 * @inheritDoc 145 */ 113 146 public function notifyAll():void 114 147 { … … 148 181 } 149 182 183 /** 184 * タイムアウトした際に実行されるハンドラです. 185 * 186 * @param thread タイムアウトしたスレッド 187 * @private 188 */ 150 189 private function timeoutHandler(thread:Thread):void 151 190 { … … 170 209 } 171 210 211 /** 212 * @inheritDoc 213 */ 172 214 public function leave(thread:Thread):void 173 215 { as3/Thread/branches/soumen/src/org/libspark/thread/Thread.as
r633 r637 167 167 168 168 /** 169 * initialize メソッドの呼び出しによって IThreadExecutor が設定され、スレッドが実行可能な状態かどうかを返します. 170 * 171 * @return スレッドが実行可能な状態であれば true、そうでなければ false 169 * initialize メソッドの呼び出しによって IThreadExecutor が設定され、スレッドが実行可能な状態であれば true、そうでなければ false を返します. 170 * 172 171 * @see #initialize() 173 172 */ as3/Thread/branches/soumen/src/org/libspark/thread/ThreadState.as
r535 r637 29 29 { 30 30 /** 31 * スレッドの状態です。スレッドは特定の時点でひとつの状態しか取れません。 31 * ThreadState クラスは、スレッドの状態を表す定数を定義します. 32 * 33 * <p>スレッドの状態は state プロパティで知ることができます。スレッドは特定の時点でひとつの状態しか取れません。</p> 32 34 * 33 35 * @author yossy:beinteractive 36 * @see Thread#state 34 37 */ 35 38 public class ThreadState … … 41 44 42 45 /** 43 * 実行可能なスレッド の状態(実行フェーズ)です46 * 実行可能なスレッド (実行フェーズ) の状態です 44 47 */ 45 48 public static const RUNNABLE:uint = 1; … … 56 59 57 60 /** 58 * 終了処理中のスレッド の状態(終了フェーズ)です61 * 終了処理中のスレッド (終了フェーズ) の状態です 59 62 */ 60 63 public static const TERMINATING:uint = 4; as3/Thread/branches/soumen/src/org/libspark/thread/errors/CurrentThreadNotFoundError.as
r535 r637 29 29 { 30 30 /** 31 * CurrentThreadNotFoundError 例外は、カレントスレッドが必要とされる場面でカレントスレッドが見つからない (null の場合) にスローされます. 32 * 31 33 * @author yossy:beinteractive 32 34 */ 33 35 public class CurrentThreadNotFoundError extends Error 34 36 { 37 /** 38 * 新しい CurrentThreadNotFoundError クラスのインスタンスを作成します. 39 * 40 * @param message エラーメッセージ 41 * @param id エラー識別子 42 */ 35 43 public function CurrentThreadNotFoundError(message:String = '', id:int = 0) 36 44 { as3/Thread/branches/soumen/src/org/libspark/thread/errors/IllegalThreadStateError.as
r535 r637 29 29 { 30 30 /** 31 * IllegalThreadStateError 例外は、スレッドの状態が不正な場合にスローされます. 32 * 31 33 * @author yossy:beinteractive 32 34 */ 33 35 public class IllegalThreadStateError extends Error 34 36 { 37 /** 38 * 新しい IllegalThreadStateError クラスのインスタンスを作成します. 39 * 40 * @param message エラーメッセージ 41 * @param id エラー識別子 42 */ 35 43 public function IllegalThreadStateError(message:String = '', id:int = 0) 36 44 { as3/Thread/branches/soumen/src/org/libspark/thread/errors/InterruptedError.as
r535 r637 1 /*1 /* 2 2 * ActionScript Thread Library 3 3 * … … 29 29 { 30 30 /** 31 * InterruptedError 例外は、スレッドが待機中に割り込まれ、かつ割り込みハンドラが設定されていない場合にスローされます. 32 * 31 33 * @author yossy:beinteractive 32 34 */ 33 35 public class InterruptedError extends Error 34 36 { 37 /** 38 * 新しい InterruptedError クラスのインスタンスを作成します. 39 * 40 * @param message エラーメッセージ 41 * @param id エラー識別子 42 */ 35 43 public function InterruptedError(message:String = '', id:int = 0) 36 44 { as3/Thread/branches/soumen/src/org/libspark/thread/errors/ThreadLibraryNotInitializedError.as
r632 r637 29 29 { 30 30 /** 31 * ThreadLibraryNotInitializedError 例外は、 Thread Library が初期化されていない状態でスレッドを実行しようするとスローされます. 32 * 31 33 * @author yossy:beinteractive 32 34 */ 33 35 public class ThreadLibraryNotInitializedError extends Error 34 36 { 37 /** 38 * 新しい ThreadLibraryNotInitializedError クラスのインスタンスを作成します. 39 * 40 * @param message エラーメッセージ 41 * @param id エラー識別子 42 */ 35 43 public function ThreadLibraryNotInitializedError(message:String = '', id:int = 0) 36 44 { as3/Thread/branches/soumen/src/org/libspark/thread/threads/display/LoaderThread.as
r548 r637 42 42 43 43 /** 44 * Loader を用いてファイルを読み込むためのスレッドです 45 * </p> 46 * このスレッドを start すると、与えられた URLRequest と LoaderContext を用いてロード処理を開始し、 47 * ロードが完了 (Event.COMPLETE) するとスレッドが終了します。 48 * </p> 49 * join メソッドを用いると、簡単にロード待ちをすることが出来ます。 50 * </p> 51 * ロード中にエラーが発生した場合は、以下の例外がスローされます。 52 * これからの例外は、このスレッドを start したスレッド (親スレッド) で捕捉することができます。 53 * </p> 54 * flash.events.IOErrorEvent.IO_ERROR: flash.errors.IOError 44 * Loader を用いてファイルを読み込むためのスレッドです. 45 * 46 * <p>このスレッドを start すると、与えられた URLRequest と LoaderContext を用いてロード処理を開始し、 47 * ロードが完了 (Event.COMPLETE) するとスレッドが終了します。</p> 48 * 49 * <p>join メソッドを用いると、簡単にロード待ちをすることが出来ます。</p> 50 * 51 * <p>ロード中にエラーが発生した場合は、以下の例外がスローされます。 52 * これからの例外は、このスレッドを start したスレッド (親スレッド) で捕捉することができます。</p> 53 * 54 * <ul> 55 * <li>flash.events.IOErrorEvent.IO_ERROR: flash.errors.IOError</li> 56 * </ul> 55 57 * 56 58 * @author yossy:beinteractive … … 59 61 { 60 62 /** 61 * 新しい LoaderThread クラスのインスタンスを生成します 63 * 新しい LoaderThread クラスのインスタンスを生成します. 62 64 * 63 65 * @param request ロード対象となる URLRequest … … 79 81 80 82 /** 81 * ロード対象となる URLRequest を返します 82 * 83 * @return ロード対象となる URLRequest 83 * ロード対象となる URLRequest を返します. 84 84 */ 85 85 public function get request():URLRequest … … 89 89 90 90 /** 91 * ロードに用いる LoaderContext を返します 92 * 93 * @return ロードに用いる LoaderContext 91 * ロードに用いる LoaderContext を返します. 94 92 */ 95 93 public function get context():LoaderContext … … 99 97 100 98 /** 101 * ロードに使用する Loader を返します 102 * </p> 103 * ロード完了 (スレッド終了) 後に、ロードしたファイル (Loader.content) を取得したい場合などに 104 * このプロパティを使用します。 105 * 106 * @return ロードに使用する Loader 99 * ロードに使用する Loader を返します. 100 * 101 * <p>ロード完了 (スレッド終了) 後に、ロードしたファイル (Loader.content) を取得したい場合などに 102 * このプロパティを使用します。</p> 107 103 */ 108 104 public function get loader():Loader … … 120 116 121 117 /** 122 * 実行123 *124 118 * @throws SecurityError 119 * @private 125 120 */ 126 121 override protected function run():void … … 163 158 /** 164 159 * ProgressEvent.PROGRESS ハンドラ 160 * 161 * @private 165 162 */ 166 163 private function progressHandler(e:ProgressEvent):void … … 181 178 /** 182 179 * Event.COMPLETE ハンドラ 180 * 181 * @private 183 182 */ 184 183 private function completeHandler(e:Event):void … … 195 194 /** 196 195 * IOErrorEvent.IO_ERROR ハンドラ 196 * 197 * @private 197 198 */ 198 199 private function ioErrorHandler(e:IOErrorEvent):void … … 210 211 /** 211 212 * 割り込みハンドラ 213 * 214 * @private 212 215 */ 213 216 private function interruptedHandler():void as3/Thread/branches/soumen/src/org/libspark/thread/threads/frocessing/Frocessing2DThread.as
r621 r637 34 34 35 35 /** 36 * Forcessing を実行するためのスレッドです 36 * Forcessing を実行するためのスレッドです. 37 * 38 * <p>描画には F5Graphics2D クラスが使用されます。</p> 37 39 * 38 40 * @author yossy:beinteractive … … 40 42 public class Frocessing2DThread extends Thread 41 43 { 44 /** 45 * 新しい Frocessing2DThread クラスのインスタンスを作成します. 46 * 47 * @param target 描画先となる Graphics 48 */ 42 49 public function Frocessing2DThread(target:Graphics) 43 50 { … … 47 54 private var _fg:F5Graphics2D; 48 55 56 /** 57 * 描画をするための F5Graphics2D 58 */ 49 59 protected function get fg():F5Graphics2D 50 60 { … … 52 62 } 53 63 64 /** 65 * @private 66 */ 54 67 override protected function run():void 55 68 { … … 58 71 } 59 72 73 /** 74 * @private 75 */ 60 76 private function doDraw():void 61 77 { … … 67 83 } 68 84 85 /** 86 * このメソッドをオーバーライドして初期化処理を記述します. 87 */ 69 88 protected function setup():void 70 89 { … … 72 91 } 73 92 93 /** 94 * このメソッドをオーバーライドして描画処理を記述します. 95 */ 74 96 protected function draw():void 75 97 { as3/Thread/branches/soumen/src/org/libspark/thread/threads/frocessing/Frocessing3DThread.as
r601 r637 34 34 35 35 /** 36 * Forcessing を実行するためのスレッドです 36 * Forcessing を実行するためのスレッドです. 37 * 38 * <p>描画には F5Graphics3D クラスが使用されます。</p> 37 39 * 38 40 * @author yossy:beinteractive … … 40 42 public class Frocessing3DThread extends Thread 41 43 { 44 /** 45 * 新しい Frocessing3DThread クラスのインスタンスを作成します. 46 * 47 * @param target 描画先となる Graphics 48 */ 42 49 public function Frocessing3DThread(target:Graphics) 43 50 { … … 47 54 private var _fg:F5Graphics3D; 48 55 56 /** 57 * 描画をするための F5Graphics3D 58 */ 49 59 protected function get fg():F5Graphics3D 50 60 { … … 52 62 } 53 63 &nb