org.simBio.sim.analyzer.graph
Class RelationGraph
java.lang.Object
org.simBio.core.Component
org.simBio.core.Parameter
org.simBio.core.Composite
org.simBio.core.Analyzer
org.simBio.sim.analyzer.VisualizeAnalyzer
org.simBio.sim.analyzer.graph.AbstractGraph
org.simBio.sim.analyzer.graph.BasicGraph
org.simBio.sim.analyzer.graph.RelationGraph
- All Implemented Interfaces:
- Node
public class RelationGraph
- extends BasicGraph
2D graph of relation between two parameters.
Notice
- Allocates AbstractGraph.target[0] for Base node use, and assumes that AbstractGraph.nTargetOrigin = 1.
-
Generally, because the X axis is not the time axis, the redrawing takes time and is carried out for all the time.
(Because of Swing double-buffering, the drawing operation cannot be seen with the eye)
- Version:
- $Id: RelationGraph.java,v 1.3 2007/04/23 09:05:46 nsarai Exp $
- Author:
- Kenta Hori
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
Fields inherited from class org.simBio.sim.analyzer.graph.AbstractGraph |
axisX, axisY, interval, maxTime, nextTime, nTarget, nTargetOrigin, page, plotDisplay, plotPrinter, target, targetName, targetScale, targetShortName, thisGraph, valuesBuffer |
Method Summary |
protected void |
analyzeSub(double t,
double[] valuesBuffer,
IPlot plot)
Plot targets. |
protected void |
paintGraphSub(Graphics2D graphics2d,
IPlot plot)
Performs graph drawing.
Faithfully plots the value of each instant.
|
protected void |
setLinks()
Link to the Viewer, AxisX, AxisY and count number of the target, get
array. |
Methods inherited from class org.simBio.sim.analyzer.graph.AbstractGraph |
analyze, changeScale, doRepaint, drawLine, drawPoint, paintAxises, paintBackground, paintComponent, paintLegend, prepareRepaint, printAxises, printBackground, printComponent, printLegend, setAreaChanged |
Methods inherited from class org.simBio.core.Component |
addDydt, end, 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 |
log
protected static org.apache.commons.logging.Log log
RelationGraph
public RelationGraph()
setLinks
protected void setLinks()
- Description copied from class:
AbstractGraph
- Link to the Viewer, AxisX, AxisY and count number of the target, get
array.
- Overrides:
setLinks
in class BasicGraph
- See Also:
Component.setLinks()
analyzeSub
protected void analyzeSub(double t,
double[] valuesBuffer,
IPlot plot)
- Plot 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)
paintGraphSub
protected void paintGraphSub(Graphics2D graphics2d,
IPlot plot)
- Description copied from class:
BasicGraph
- Performs graph drawing.
Faithfully plots the value of each instant.
- Overrides:
paintGraphSub
in class BasicGraph
- Parameters:
graphics2d
- Graphics drawing object plot
- drawing operation object
Copyright © 2005 Cell/Biodinamics simulation project. All Rights Reserved.