org.simBio.sim.analyzer.graph
Class Graph

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.VisualizeAnalyzer
                      extended by org.simBio.sim.analyzer.graph.AbstractGraph
                          extended by org.simBio.sim.analyzer.graph.BasicGraph
                              extended by org.simBio.sim.analyzer.graph.Graph
All Implemented Interfaces:
Node
Direct Known Subclasses:
Graph4State, StepChart

public class Graph
extends BasicGraph

Graph (optimised) which displays 2D graph data in chronological order.

Notice

Version:
$Id: Graph.java,v 1.3 2007/04/07 08:44:07 nsarai Exp $
Author:
Nobuaki Sarai, misaki

Field Summary
protected  GraphReplotBuffer[] replotBuffer
          Redrawing buffer
 
Fields inherited from class org.simBio.sim.analyzer.graph.BasicGraph
container, graphics2d, values
 
Fields inherited from class org.simBio.sim.analyzer.graph.AbstractGraph
axisX, axisY, interval, log, maxTime, nextTime, nTarget, nTargetOrigin, page, plotDisplay, plotPrinter, target, targetName, targetScale, targetShortName, thisGraph, valuesBuffer
 
Fields inherited from class org.simBio.core.Parameter
value
 
Constructor Summary
Graph()
           
 
Method Summary
protected  void analyzeSub(double t, double[] valuesBuffer, IPlot plot)
          Plots targets.
 void changeScale()
          Makes the necessary preparations for redrawing, when the display position / display range has changed
protected  void end()
          Called when the calculations finish, and makes adjustments to the X axis, if necessary.
protected  void paintGraph(java.awt.Graphics2D graphics, IPlot plot)
          Draws a graph.
protected  void prepare()
          Set link to the targets.
protected  void quit()
          called before destruction,
instanceを破棄する前に呼び出されます。
 void resetBuffer()
          Resets the screen state.
protected  void resize(IPlot plot)
          Recalculates the Graph size, based on the size of the parent window.
 void setAreaChanged()
          Notifies that the displayed area has changed.
 
Methods inherited from class org.simBio.sim.analyzer.graph.BasicGraph
getTimeMax, getTimeMin, getTimeSeries, paintGraphSub, printGraph, setLinks
 
Methods inherited from class org.simBio.sim.analyzer.graph.AbstractGraph
analyze, doRepaint, drawLine, drawPoint, paintAxises, paintBackground, paintComponent, paintLegend, prepareRepaint, printAxises, printBackground, printComponent, printLegend
 
Methods inherited from class org.simBio.sim.analyzer.VisualizeAnalyzer
getColorParameter, getDouble, getFontParameter, getNodeHierarchically, getNodeRecursive, repaint
 
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, getIndent, getIndentedShortName, getName, getName, getParent, getRoot, getShortName, getUnits, isNamed, isPrefixed, logIndented
 
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

replotBuffer

protected GraphReplotBuffer[] replotBuffer
Redrawing buffer

Constructor Detail

Graph

public Graph()
Method Detail

resetBuffer

public void resetBuffer()
Resets the screen state.

Overrides:
resetBuffer in class BasicGraph
See Also:
VisualizeAnalyzer.resetBuffer()

quit

protected void quit()
Description copied from class: Component
called before destruction,
instanceを破棄する前に呼び出されます。

Overrides:
quit in class BasicGraph

prepare

protected void prepare()
Description copied from class: AbstractGraph
Set link to the targets.

Overrides:
prepare in class BasicGraph
See Also:
Component.prepare()

analyzeSub

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

Overrides:
analyzeSub in class BasicGraph
Parameters:
t - time
valuesBuffer - array of calculation results
plot - drawing operation object
See Also:
AbstractGraph.analyzeSub(double, double[], org.simBio.sim.analyzer.graph.plot.IPlot)

paintGraph

protected void paintGraph(java.awt.Graphics2D graphics,
                          IPlot plot)
Draws a graph.

Overrides:
paintGraph in class BasicGraph
Parameters:
graphics - drawn Graphics
plot - drawing operation object
See Also:
AbstractGraph.paintGraph(Graphics2D graphics2d, IPlot plot)

resize

protected void resize(IPlot plot)
Recalculates the Graph size, based on the size of the parent window.

Overrides:
resize in class BasicGraph
Parameters:
plot - drawing operation object
See Also:
AbstractGraph.resize(IPlot)

changeScale

public void changeScale()
Makes the necessary preparations for redrawing, when the display position / display range has changed

Overrides:
changeScale in class AbstractGraph
See Also:
AbstractGraph.changeScale()

end

protected void end()
Called when the calculations finish, and makes adjustments to the X axis, if necessary.

Overrides:
end in class Component
See Also:
Component.end()

setAreaChanged

public void setAreaChanged()
Notifies that the displayed area has changed.

Overrides:
setAreaChanged in class AbstractGraph
See Also:
AbstractGraph.setAreaChanged()


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