jp.ac.nime.computer.grpsimulator.VecPr
クラス GrpSimVectorData.Poline

java.lang.Object
  拡張jp.ac.nime.computer.grpsimulator.VecPr.GrpSimVectorData.DiagElem
      拡張jp.ac.nime.computer.grpsimulator.VecPr.GrpSimVectorData.Poline
含まれているクラス:
GrpSimVectorData

public class GrpSimVectorData.Poline
extends GrpSimVectorData.DiagElem


フィールドの概要
 
クラス jp.ac.nime.computer.grpsimulator.VecPr.GrpSimVectorData.DiagElem から継承したフィールド
col_, thick_, v_
 
コンストラクタの概要
GrpSimVectorData.Poline()
           
 
メソッドの概要
 java.lang.String getKeyword()
          キーワードを返す
 int getType()
          直線であることを返す
 int readStr(java.lang.String str)
          ファイルから読み出すときの関数
 java.lang.String toString()
          ファイルに書き出す時の文字列
 void write(java.awt.Graphics2D g)
          描画
 void write(java.awt.Graphics2D g, int nZoom, int ofx, int ofy)
          拡大縮小描画関数
 
クラス jp.ac.nime.computer.grpsimulator.VecPr.GrpSimVectorData.DiagElem から継承したメソッド
add, clr, delTail, get, getCol, setCol, size
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

GrpSimVectorData.Poline

public GrpSimVectorData.Poline()
メソッドの詳細

getType

public int getType()
直線であることを返す

定義:
クラス GrpSimVectorData.DiagElem 内の getType

getKeyword

public java.lang.String getKeyword()
キーワードを返す


write

public void write(java.awt.Graphics2D g)
描画

定義:
クラス GrpSimVectorData.DiagElem 内の write
パラメータ:
g - 描画先 Graphics2D

write

public void write(java.awt.Graphics2D g,
                  int nZoom,
                  int ofx,
                  int ofy)
拡大縮小描画関数

定義:
クラス GrpSimVectorData.DiagElem 内の write
パラメータ:
g - 描画先 Graphics2D
nZoom - 拡大率(パーセント)
ofx - nZoom後の座標をoffsetして描画する
ofy - nZoom後の座標をoffsetして描画する

toString

public java.lang.String toString()
ファイルに書き出す時の文字列

定義:
クラス GrpSimVectorData.DiagElem 内の toString
戻り値:
ファイルに書き出す時の文字列

readStr

public int readStr(java.lang.String str)
ファイルから読み出すときの関数

定義:
クラス GrpSimVectorData.DiagElem 内の readStr
パラメータ:
str - ファイルから読み出された一行
戻り値:
1:成功 0:このクラスに該当する文でない -1:文法エラー