org.simBio.sim.analyzer.graph.simple
Class Axis
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.Axis
- All Implemented Interfaces:
- Node
- Direct Known Subclasses:
- AxisX, AxisXFix, AxisY
public abstract class Axis
- extends Analyzer
- Version:
- $Revision: 1.1 $
- Author:
- Nobuaki Sarai
Constructor Summary |
Axis()
|
Method Summary |
String |
format(double val)
format numeric value, and return String
数値をフォーマットされた文字列として返す。
フォーマットする書式についてはprepare()を参照してください。 |
protected void |
prepare()
set flag is plot label and set pattern of number format
軸ラベルを表示するか否か及びラベル数値フォーマット形式を設定する。
表示範囲が0.1-10なら小数点以下一桁まで、10-1000なら整数部位、
それ以外なら3桁ごとの指数形式でフォーマットします。
特定の数値フォーマットを設定するには、xml上でaxisの中に
<component name="pattern" initial_value="#.#" />
等とpatternを定義してください。
フォーマットの書式はDecimalFormatのJavadocを参照してください。 |
protected void |
setLinks()
set link to the Viewer to get scale factor later. |
Methods inherited from class org.simBio.core.Component |
addDydt, end, getIndent, getIndentedShortName, getName, getName, getParent, getRoot, getShortName, getUnits, isNamed, isPrefixed, logIndented, quit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
origin
public double origin
length
public double length
gridStep
public double gridStep
min
public double min
max
public double max
labelStep
public double labelStep
units
public Node units
ppu
protected double ppu
page
protected ICanvas page
B
public int B
E
public int E
isPlotLabel
public boolean isPlotLabel
Axis
public Axis()
setLinks
protected void setLinks()
- set link to the Viewer to get scale factor later.
- Overrides:
setLinks
in class Component
- See Also:
Component.setLinks()
prepare
protected void prepare()
- set flag is plot label and set pattern of number format
軸ラベルを表示するか否か及びラベル数値フォーマット形式を設定する。
表示範囲が0.1-10なら小数点以下一桁まで、10-1000なら整数部位、
それ以外なら3桁ごとの指数形式でフォーマットします。
特定の数値フォーマットを設定するには、xml上でaxisの中に
<component name="pattern" initial_value="#.#" />
等とpatternを定義してください。
フォーマットの書式はDecimalFormatのJavadocを参照してください。
- Overrides:
prepare
in class Parameter
- See Also:
Component.prepare()
,
DecimalFormat
format
public String format(double val)
- format numeric value, and return String
数値をフォーマットされた文字列として返す。
フォーマットする書式についてはprepare()を参照してください。
- Parameters:
val
-
- Returns:
- formatted number
- See Also:
prepare()
Copyright © 2005 Cell/Biodinamics simulation project. All Rights Reserved.