jp.go.aist.dmrc.platform.beans.framework3d.io
クラス PFShapeDocumentWriter

java.lang.Object
  上位を拡張 jp.go.aist.dmrc.platform.beans.io.PFWriter
      上位を拡張 jp.go.aist.dmrc.platform.beans.framework3d.io.PFShapeDocumentWriter
すべての実装されたインタフェース:
java.io.Serializable, PFComponent, PFActionEventSource, PFEventSource
直系の既知のサブクラス:
PFIGESFileWriter, PFSTEPFileWriter, PFSTLFileWriter

public abstract class PFShapeDocumentWriter
extends PFWriter
implements PFActionEventSource

形状モデルデータを書き出すコンポーネントの抽象クラス。 このコンポーネントから以下のイベントが発生する。

関連項目:
直列化された形式

コンストラクタの概要
PFShapeDocumentWriter()
           
 
メソッドの概要
 void addPFActionListener(PFActionListener lis)
          引数で与えられたイベントリスナを登録し、 アクションイベント発生時に処理を行う対象とする。
protected  void firePFActionPerformed(PFActionEvent event)
          アクションイベントをリスナーに通知する。
protected  java.io.PrintWriter getOutput()
          出力先のストリームを取得する。
 java.util.Iterator getPFActionListenerList()
          アクションイベントリスナ配列を取得する。
 boolean isWritingInAnotherThread()
          ファイル読み込み時の別スレッド実行の有無を取得する
 void removePFActionListener(PFActionListener lis)
          引数で与えられたイベントリスナを削除し、 アクションイベント発生時に処理を行う対象から外す。
 void setWritingInAnotherThread(boolean flag)
          ファイル読み込み時の別スレッド実行の有無を設定する
 void write(java.io.File file, java.lang.Object shapeObj)
          ファイルオブジェクトを指定して文字列を書き出す。
 void write(java.lang.String filename, java.lang.Object shapeObj)
          ファイル名を指定して文字列を書き出す。
protected abstract  boolean writeData(java.lang.Object shapeObj)
          形状モデルデータをファイルに書き出す。
protected abstract  boolean writeItems(java.lang.Object items)
          形状モデルデータをファイルに書き出す。
 void writeItems(java.lang.String fileName, java.lang.Object items)
          ファイル名と出力形状を指定して文字列を書き出す.
 
クラス jp.go.aist.dmrc.platform.beans.io.PFWriter から継承されたメソッド
getComponentID, getComponentKey, getComponentKeys, getComponentPublicName, getComponentString, getCurrentFile, getExceptionIgnoring, getFile, isAllowPullTransfer, isAllowPushTransfer, isAllowRemoteInvocation, localeUpdated, setAllowPullTransfer, setAllowPushTransfer, setAllowRemoteInvocation, setComponentID, setComponentKey, setComponentKeys, setComponentPublicName, setExceptionIgnoring, setFile, setFile
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.go.aist.dmrc.platform.base.PFComponent から継承されたメソッド
getComponentName
 

コンストラクタの詳細

PFShapeDocumentWriter

public PFShapeDocumentWriter()
メソッドの詳細

getPFActionListenerList

public java.util.Iterator getPFActionListenerList()
アクションイベントリスナ配列を取得する。

定義:
インタフェース PFActionEventSource 内の getPFActionListenerList
戻り値:
イベントリスナイテレータ

addPFActionListener

public void addPFActionListener(PFActionListener lis)
引数で与えられたイベントリスナを登録し、 アクションイベント発生時に処理を行う対象とする。

定義:
インタフェース PFActionEventSource 内の addPFActionListener
パラメータ:
lis - 追加対象イベントリスナ

removePFActionListener

public void removePFActionListener(PFActionListener lis)
引数で与えられたイベントリスナを削除し、 アクションイベント発生時に処理を行う対象から外す。

定義:
インタフェース PFActionEventSource 内の removePFActionListener
パラメータ:
lis - 削除対象イベントリスナ

firePFActionPerformed

protected void firePFActionPerformed(PFActionEvent event)
アクションイベントをリスナーに通知する。


write

public void write(java.lang.String filename,
                  java.lang.Object shapeObj)
           throws PFComponentException,
                  PFMethodException,
                  PFRuntimeException
ファイル名を指定して文字列を書き出す。 書き出し

パラメータ:
filename - ファイル名
shapeObj - 書き出す形状モデルデータ
例外:
PFComponentException - 書き出しの失敗
PFMethodException - イベント伝播先のメソッド起動時のエラー
PFRuntimeException - 予期しない実行時エラー

write

public void write(java.io.File file,
                  java.lang.Object shapeObj)
           throws PFComponentException,
                  PFMethodException,
                  PFRuntimeException
ファイルオブジェクトを指定して文字列を書き出す。

パラメータ:
file - ファイルオブジェクト
shapeObj - 書き出す形状モデルデータ
例外:
PFComponentException - 書き出しの失敗
PFMethodException - イベント伝播先のメソッド起動時のエラー
PFRuntimeException - 予期しない実行時エラー

writeItems

public void writeItems(java.lang.String fileName,
                       java.lang.Object items)
                throws PFComponentException,
                       PFMethodException,
                       PFRuntimeException
ファイル名と出力形状を指定して文字列を書き出す.

パラメータ:
file - ファイルオブジェクト
items - 書き出す形状モデルデータ
例外:
PFComponentException - 書き出しの失敗
PFMethodException - イベント伝播先のメソッド起動時のエラー
PFRuntimeException - 予期しない実行時エラー

writeData

protected abstract boolean writeData(java.lang.Object shapeObj)
                              throws PFComponentException
形状モデルデータをファイルに書き出す。 成功した場合にtrueを、失敗した場合にfalseを返す。

パラメータ:
shapeObj - 形状モデルデータ
戻り値:
書き出しの成否
例外:
PFComponentException - エラー

writeItems

protected abstract boolean writeItems(java.lang.Object items)
                               throws PFComponentException
形状モデルデータをファイルに書き出す。 成功した場合にtrueを、失敗した場合にfalseを返す。

パラメータ:
shapeObj - 形状モデルデータ
戻り値:
書き出しの成否
例外:
PFComponentException - エラー

getOutput

protected java.io.PrintWriter getOutput()
出力先のストリームを取得する。

戻り値:
出力先

isWritingInAnotherThread

public boolean isWritingInAnotherThread()
ファイル読み込み時の別スレッド実行の有無を取得する

戻り値:
別スレッド実行の有無

setWritingInAnotherThread

public void setWritingInAnotherThread(boolean flag)
ファイル読み込み時の別スレッド実行の有無を設定する

パラメータ:
flag - 別スレッド実行の有無