org.simBio.sim.analyzer.graph.simple
クラス Viewer

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

public class Viewer
extends Analyzer
implements ICanvas, IViewer

graph viewer.

バージョン:
$Log: Viewer.java,v $ Revision 1.1 2005/11/01 06:32:39 mikaelwing First version of simBio hosted on sourceforge, version 0.3 Revision 1.1 2005/09/12 04:57:07 sarai rearrenge folder structure as a Maven style Revision 1.3 2005/08/23 03:06:52 sarai implements IViewer to work with new GUI.
作成者:
Nobuaki Sarai

フィールドの概要
 double referenceHeight
           
 double referenceWidth
           
 
クラス org.simBio.core.Parameter から継承されたフィールド
value
 
コンストラクタの概要
Viewer()
           
 
メソッドの概要
protected  void analyze(double t)
          do nothing
 void drawBar(int x, int y, int width, int height, int c)
           
 void drawPoint(int x, int y, int size, int c)
           
 double getScaleHeight()
          scaling factor = reference height (0.01 mm) / physical height (pixel)
 double getScaleWidth()
          scaling factor = reference width (0.01 mm) / physical width (pixel)
 double getWHratio()
           
 void paintComponent(java.awt.Graphics graphic)
          Viewerの画面用描画を行う.
 void plotAxises(Axis XA, Axis YA)
          plot axses and grids
 void printComponent(java.awt.Graphics graphic)
           
protected  void quit()
          dispose graphics and OnScreen.
 void reset()
          get graphics and clear.
 void setContainer(java.awt.Container container)
          Sets the container.
 void setContainer(javax.swing.JPanel panel)
           
 void setFileName(java.lang.String string)
          XMLファイル名を設定する.
protected  void setLinks()
          When there are no container, construct OnScreen, and clear.
 void setPrintableRect(java.awt.Rectangle rectPrintableArea)
           
 void setPrintRect(java.awt.Rectangle rectImageArea)
           
 
クラス org.simBio.core.Composite から継承されたメソッド
accept, getLink, getNode, getNodesIterator, getNodesSize
 
クラス org.simBio.core.Parameter から継承されたメソッド
addValue, getValue, getValueString, prepare, 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
 

フィールドの詳細

referenceWidth

public double referenceWidth

referenceHeight

public double referenceHeight
コンストラクタの詳細

Viewer

public Viewer()
メソッドの詳細

setContainer

public void setContainer(java.awt.Container container)
Sets the container.

定義:
インタフェース IViewer 内の setContainer
パラメータ:
container - The container to set

reset

public void reset()
get graphics and clear.

定義:
インタフェース ICanvas 内の reset

setLinks

protected void setLinks()
When there are no container, construct OnScreen, and clear.

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

quit

protected void quit()
dispose graphics and OnScreen.

オーバーライド:
クラス Component 内の quit
関連項目:
OnScreen, Component.quit()

analyze

protected void analyze(double t)
do nothing

定義:
クラス Analyzer 内の analyze
パラメータ:
t - time
関連項目:
Analyzer.analyze(double)

getScaleWidth

public double getScaleWidth()
scaling factor = reference width (0.01 mm) / physical width (pixel)

定義:
インタフェース ICanvas 内の getScaleWidth
戻り値:
reference width / physical width

getScaleHeight

public double getScaleHeight()
scaling factor = reference height (0.01 mm) / physical height (pixel)

定義:
インタフェース ICanvas 内の getScaleHeight
戻り値:
reference height / physical height

plotAxises

public void plotAxises(Axis XA,
                       Axis YA)
plot axses and grids

定義:
インタフェース ICanvas 内の plotAxises
パラメータ:
XA - x axis
YA - y axis

drawBar

public void drawBar(int x,
                    int y,
                    int width,
                    int height,
                    int c)
定義:
インタフェース ICanvas 内の drawBar

drawPoint

public void drawPoint(int x,
                      int y,
                      int size,
                      int c)
定義:
インタフェース ICanvas 内の drawPoint

getWHratio

public double getWHratio()
定義:
インタフェース IViewer 内の getWHratio
戻り値:
referenceWidth / target.referenceHeight
関連項目:
IViewer.getWHratio()

setFileName

public void setFileName(java.lang.String string)
XMLファイル名を設定する.

定義:
インタフェース IViewer 内の setFileName
パラメータ:
string - XMLファイル名

paintComponent

public void paintComponent(java.awt.Graphics graphic)
Viewerの画面用描画を行う.

定義:
インタフェース IViewer 内の paintComponent
パラメータ:
graphic - 描画対象のGraphics

printComponent

public void printComponent(java.awt.Graphics graphic)
定義:
インタフェース IViewer 内の printComponent

setPrintRect

public void setPrintRect(java.awt.Rectangle rectImageArea)
定義:
インタフェース IViewer 内の setPrintRect

setPrintableRect

public void setPrintableRect(java.awt.Rectangle rectPrintableArea)
定義:
インタフェース IViewer 内の setPrintableRect

setContainer

public void setContainer(javax.swing.JPanel panel)


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