tsukuba_bunko.peko.scenario.text
クラス TextCoordinator

java.lang.Object
  上位を拡張 tsukuba_bunko.peko.scenario.Coordinator
      上位を拡張 tsukuba_bunko.peko.scenario.text.TextCoordinator

public class TextCoordinator
extends Coordinator

TextCanvas への操作を取り持つコーディネータモジュールです。

バージョン:
$Revision: 1.2 $
作成者:
$Author: ppoi $

フィールドの概要
protected  Line _lastLine
          最終行
protected  float _lineSpan
          行間隔
protected  boolean _pageConfigured
          Page の設定を行ったかどうか
protected  java.awt.Dimension _sizeCache
          Dimension cache
 
クラス tsukuba_bunko.peko.scenario.Coordinator から継承されたフィールド
_activeThread, _context
 
コンストラクタの概要
TextCoordinator()
          TextCoordinator のインスタンスを生成します。
 
メソッドの概要
 Page advancesNewPage()
          新しいページに切り替え、新しいページを取得します。
 void begin()
          TextCanvas への操作を開始します。
 void commit()
          TextCanvas への操作を終了し、キャンバスの状態を確定します。
 Page getCurrentPage()
          現在表示中のページを取得します。
protected  float getLineSpan()
          行間隔を取得します。
 void prepare(SceneContext context, java.lang.Thread activeThread)
          この Coordinator インスタンスを指定されたコンテクスト、シーン処理スレッドで動作するように設定します。
 void pushText(java.lang.String text)
          表示する文章を TextCanvsa に送信します。
protected  void stop()
          処理を一時停止します。
 
クラス tsukuba_bunko.peko.scenario.Coordinator から継承されたメソッド
dormantize, getActionControler, getCanvasManager, getSceneContext, isActiveThread
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

_pageConfigured

protected boolean _pageConfigured
Page の設定を行ったかどうか


_lineSpan

protected float _lineSpan
行間隔


_lastLine

protected Line _lastLine
最終行


_sizeCache

protected java.awt.Dimension _sizeCache
Dimension cache

コンストラクタの詳細

TextCoordinator

public TextCoordinator()
TextCoordinator のインスタンスを生成します。

メソッドの詳細

prepare

public void prepare(SceneContext context,
                    java.lang.Thread activeThread)
クラス Coordinator の記述:
この Coordinator インスタンスを指定されたコンテクスト、シーン処理スレッドで動作するように設定します。

オーバーライド:
クラス Coordinator 内の prepare
パラメータ:
context - シーンコンテクスト
activeThread - アクティブなシーン処理スレッド

begin

public void begin()
TextCanvas への操作を開始します。

定義:
クラス Coordinator 内の begin

commit

public void commit()
TextCanvas への操作を終了し、キャンバスの状態を確定します。

定義:
クラス Coordinator 内の commit

pushText

public void pushText(java.lang.String text)
表示する文章を TextCanvsa に送信します。

パラメータ:
text - 表示する文章

getCurrentPage

public Page getCurrentPage()
現在表示中のページを取得します。

戻り値:
現在表示中のページ

advancesNewPage

public Page advancesNewPage()
新しいページに切り替え、新しいページを取得します。

戻り値:
新しいページ

stop

protected void stop()
処理を一時停止します。


getLineSpan

protected float getLineSpan()
行間隔を取得します。

戻り値:
行間隔


All Rights Reserved. © 1999-2006 The "Peko" Project, Tsukuba Bunko.