|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simBio.core.Component
org.simBio.core.Parameter
org.simBio.core.Composite
org.simBio.core.Analyzer
org.simBio.sim.analyzer.VisualizeAnalyzer
public abstract class VisualizeAnalyzer
base class for visualized Node(Viewer, Graph, Axis).
表示系のNode(Viewer, Graph, Axis)のベースとなるクラスです。
下記のような機能を実装します。
Field Summary |
---|
Fields inherited from class org.simBio.core.Parameter |
---|
value |
Constructor Summary | |
---|---|
VisualizeAnalyzer()
|
Method Summary | |
---|---|
protected abstract void |
analyze(double t)
Please implements this Method to manipulate Nodes. |
protected void |
doRepaint()
再描画を行う. |
protected Color |
getColorParameter(String nodeName,
Color defaultColor)
Node名を指定して、Colorを取得します. |
protected double |
getDouble(Node node)
get value from node. |
protected Font |
getFontParameter(String nodeNamePrefix,
String defaultStyle,
String defaultSize)
nodeNamePrefixを指定して、Fontを取得します. |
protected Node |
getNodeHierarchically(String name)
serch the Node of the same name(or upper level node). |
Node |
getNodeRecursive(String name)
serch the Node of the same name. |
protected void |
prepareRepaint()
再描画を準備する. |
void |
repaint()
再描画パラメータの取り込みと、再描画を行う. |
void |
resetBuffer()
画面状態をリセットする. |
Methods inherited from class org.simBio.core.Composite |
---|
accept, getLink, getNode, getNodesIterator, getNodesSize |
Methods inherited from class org.simBio.core.Parameter |
---|
addValue, getValue, getValueString, prepare, setInitializer, setValue, setValueString, setValueToField |
Methods inherited from class org.simBio.core.Component |
---|
addDydt, end, getIndent, getIndentedShortName, getName, getName, getParent, getRoot, getShortName, getUnits, isNamed, isPrefixed, logIndented, quit, setLinks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.simBio.core.Node |
---|
addDydt, addValue, getValue, setValue |
Constructor Detail |
---|
public VisualizeAnalyzer()
Method Detail |
---|
protected abstract void analyze(double t)
Analyzer
analyze
in class Analyzer
t
- timeConductor.integrate()
public void resetBuffer()
public void repaint()
protected void prepareRepaint()
protected void doRepaint()
public Node getNodeRecursive(String name)
name
- 名前を指定
protected Node getNodeHierarchically(String name)
name
- 名前を指定
protected double getDouble(Node node)
protected Color getColorParameter(String nodeName, Color defaultColor)
nodeName
- 色情報を取得するノード名defaultColor
- 色情報が見つからない場合に適用するColorオブジェクト
protected Font getFontParameter(String nodeNamePrefix, String defaultStyle, String defaultSize)
nodeNamePrefix
- フォント情報を取得するノード名(プレフィックス)defaultStyle
- スタイルが見つからない場合に適用するスタイルdefaultSize
- サイズが見つからない場合に適用するサイズ(小数点以下は無視する)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |