org.simBio.sim.analyzer.graph
クラス BasicGraph

java.lang.Object
  上位を拡張 org.simBio.core.Component
      上位を拡張 org.simBio.core.Parameter
          上位を拡張 org.simBio.core.Composite
              上位を拡張 org.simBio.core.Analyzer
                  上位を拡張 org.simBio.sim.analyzer.VisualizeAnalyzer
                      上位を拡張 org.simBio.sim.analyzer.graph.AbstractGraph
                          上位を拡張 org.simBio.sim.analyzer.graph.BasicGraph
すべての実装されたインタフェース:
Node
直系の既知のサブクラス:
Graph, RelationGraph

public abstract class BasicGraph
extends AbstractGraph

時系列データを表示するGraph.

Notice

  1. 再描画に対応しています。
  2. 再描画処理について、画面向きの最適化を行っていません。
  3. 一般的なGraph系のベースに使えるようになっています。

バージョン:
$Id: BasicGraph.java,v 1.3 2007/04/07 08:44:07 nsarai Exp $
作成者:
misaki

フィールドの概要
protected  java.awt.Container container
          Graphが属するViewerのcontainer
protected  java.awt.Graphics2D graphics2d
           analyze() 時に描画するためのGraphics2D
protected  TimeSeriesValues values
          時系列データの保管場所
 
クラス org.simBio.sim.analyzer.graph.AbstractGraph から継承されたフィールド
axisX, axisY, interval, log, maxTime, nextTime, nTarget, nTargetOrigin, page, plotDisplay, plotPrinter, target, targetName, targetScale, targetShortName, thisGraph, valuesBuffer
 
クラス org.simBio.core.Parameter から継承されたフィールド
value
 
コンストラクタの概要
BasicGraph()
           
 
メソッドの概要
protected  void analyzeSub(double t, double[] valuesBuffer, IPlot plot)
          Plot targets.
 double getTimeMax()
          Get maximum time
 double getTimeMin()
          Get minimum time
 TimeSeriesSingle getTimeSeries(java.lang.Object node)
           指定したNodeについての時系列クラスを取得する。
protected  void paintGraph(java.awt.Graphics2D graphics2d, IPlot plot)
          Draw graph.
protected  void paintGraphSub(java.awt.Graphics2D graphics2d, IPlot plot)
           グラフ描画を行う。
protected  void prepare()
          Set link to the targets.
protected  void printGraph(java.awt.Graphics2D graphics2d, IPlot plot)
          Draw graph.
protected  void quit()
          called before destruction,
instanceを破棄する前に呼び出されます。
 void resetBuffer()
          画面状態をリセットする.
protected  void resize(IPlot plot)
           現在の親ウィンドウの大きさに応じて、Graphサイズを再計算する.
protected  void setLinks()
          Link to the Viewer, AxisX, AxisY and count number of the target, get array.
 
クラス org.simBio.sim.analyzer.graph.AbstractGraph から継承されたメソッド
analyze, changeScale, doRepaint, drawLine, drawPoint, paintAxises, paintBackground, paintComponent, paintLegend, prepareRepaint, printAxises, printBackground, printComponent, printLegend, setAreaChanged
 
クラス org.simBio.sim.analyzer.VisualizeAnalyzer から継承されたメソッド
getColorParameter, getDouble, getFontParameter, getNodeHierarchically, getNodeRecursive, repaint
 
クラス org.simBio.core.Composite から継承されたメソッド
accept, getLink, getNode, getNodesIterator, getNodesSize
 
クラス org.simBio.core.Parameter から継承されたメソッド
addValue, getValue, getValueString, setInitializer, setValue, setValueString, setValueToField
 
クラス org.simBio.core.Component から継承されたメソッド
addDydt, end, getIndent, getIndentedShortName, getName, getName, getParent, getRoot, getShortName, getUnits, isNamed, isPrefixed, logIndented
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.simBio.core.Node から継承されたメソッド
addDydt, addValue, getValue, setValue
 

フィールドの詳細

values

protected TimeSeriesValues values
時系列データの保管場所


graphics2d

protected java.awt.Graphics2D graphics2d
analyze() 時に描画するためのGraphics2D


container

protected java.awt.Container container
Graphが属するViewerのcontainer

コンストラクタの詳細

BasicGraph

public BasicGraph()
メソッドの詳細

resetBuffer

public void resetBuffer()
クラス VisualizeAnalyzer の記述:
画面状態をリセットする. 新しいmodelをロードしたり(setLinks())、 時刻を変更した後に計算処理を行ったり(org.simBio.sim.gui.GUI#getJMenuModel()) した際に、呼び出され、描画再描画用のバッファなど、各Nodeで持っている内部状態を リセットします。
下位のnodeを持つ場合については、明示的に呼び出してやるように、super() を 呼ぶようにしてください。

オーバーライド:
クラス VisualizeAnalyzer 内の resetBuffer

quit

protected void quit()
クラス Component の記述:
called before destruction,
instanceを破棄する前に呼び出されます。

オーバーライド:
クラス Component 内の quit

setLinks

protected void setLinks()
クラス AbstractGraph の記述:
Link to the Viewer, AxisX, AxisY and count number of the target, get array.

オーバーライド:
クラス AbstractGraph 内の setLinks
関連項目:
Component.setLinks()

prepare

protected void prepare()
クラス AbstractGraph の記述:
Set link to the targets.

オーバーライド:
クラス AbstractGraph 内の prepare
関連項目:
Component.prepare()

analyzeSub

protected void analyzeSub(double t,
                          double[] valuesBuffer,
                          IPlot plot)
Plot targets.

定義:
クラス AbstractGraph 内の analyzeSub
パラメータ:
t - 時刻
valuesBuffer - 計算結果の配列
plot - 描画処理オブジェクト
関連項目:
AbstractGraph.analyzeSub(double, double[], IPlot)

resize

protected void resize(IPlot plot)
クラス AbstractGraph の記述:
現在の親ウィンドウの大きさに応じて、Graphサイズを再計算する.

オーバーライド:
クラス AbstractGraph 内の resize
パラメータ:
plot - 描画処理オブジェクト

paintGraph

protected void paintGraph(java.awt.Graphics2D graphics2d,
                          IPlot plot)
クラス AbstractGraph の記述:
Draw graph.

定義:
クラス AbstractGraph 内の paintGraph
パラメータ:
graphics2d - 描画されるGraphics
plot - 描画処理オブジェクト

printGraph

protected void printGraph(java.awt.Graphics2D graphics2d,
                          IPlot plot)
クラス AbstractGraph の記述:
Draw graph. Called by JPanel#printComponent() on Event thread.

オーバーライド:
クラス AbstractGraph 内の printGraph
パラメータ:
graphics2d - 描画されるGraphics
plot - 描画処理オブジェクト

paintGraphSub

protected void paintGraphSub(java.awt.Graphics2D graphics2d,
                             IPlot plot)
グラフ描画を行う。 各時刻での値を、忠実にプロットする。

パラメータ:
graphics2d - 描画対象のGraphics
plot - 描画処理オブジェクト

getTimeMax

public double getTimeMax()
Get maximum time

戻り値:
maximum time

getTimeMin

public double getTimeMin()
Get minimum time

戻り値:
minimum time

getTimeSeries

public TimeSeriesSingle getTimeSeries(java.lang.Object node)
指定したNodeについての時系列クラスを取得する。

パラメータ:
node - 取得したいNode
戻り値:
時系列クラスのインスタンス


???(C) 2002-2007 ?????????????????????