org.simBio.sim.analyzer.graph.simple
Class Axis

java.lang.Object
  extended by org.simBio.core.Component
      extended by org.simBio.core.Parameter
          extended by org.simBio.core.Composite
              extended by org.simBio.core.Analyzer
                  extended by 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

Field Summary
 int B
           
 int E
           
 double gridStep
           
 boolean isPlotLabel
           
 double labelStep
           
 double length
           
 double max
           
 double min
           
 double origin
           
protected  ICanvas page
           
protected  double ppu
           
 Node units
           
 
Fields inherited from class org.simBio.core.Parameter
value
 
Constructor Summary
Axis()
           
 
Method Summary
 java.lang.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.Analyzer
analyze
 
Methods inherited from class org.simBio.core.Composite
accept, getLink, getNode, getNodesIterator, getNodesSize
 
Methods inherited from class org.simBio.core.Parameter
addValue, getValue, getValueString, 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
 
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
 

Field Detail

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
Constructor Detail

Axis

public Axis()
Method Detail

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 java.lang.String format(double val)
format numeric value, and return String
数値をフォーマットされた文字列として返す。 フォーマットする書式についてはprepare()を参照してください。

Parameters:
val -
Returns:
formatted number
See Also:
prepare()


Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.