org.simBio.sim.analyzer.graph
Class StepChart

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
                                  extended by org.simBio.sim.analyzer.graph.StepChart
All Implemented Interfaces:
Node

public class StepChart
extends Graph

Shifts and displays the target. Overrides the line/point drawing method, and shifts the drawing position.

Version:
$Id: StepChart.java,v 1.2 2007/02/07 03:13:03 nsarai Exp $
Author:
Nobuaki Sarai

Field Summary
 double xStep
           
 double yStep
           
 
Fields inherited from class org.simBio.sim.analyzer.graph.Graph
replotBuffer
 
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
StepChart()
           
 
Method Summary
 void drawLine(IPlot plot, java.awt.Graphics2D graphics2d, double x1, double y1, double x2, double y2, int nGraph)
          Strikes a point on a graph. When a line is drawn instead of a point in Graph4State, it separates so that it is easy to inherit.
 void drawPoint(IPlot plot, java.awt.Graphics2D graphics2d, double x, double y, int nGraph)
          Draws a line on a graph. When a line is drawn instead of a point in Graph4State, it separates so that it is easy to inherit.
 
Methods inherited from class org.simBio.sim.analyzer.graph.Graph
analyzeSub, changeScale, end, paintGraph, prepare, quit, resetBuffer, resize, setAreaChanged
 
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, 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

xStep

public double xStep

yStep

public double yStep
Constructor Detail

StepChart

public StepChart()
Method Detail

drawLine

public void drawLine(IPlot plot,
                     java.awt.Graphics2D graphics2d,
                     double x1,
                     double y1,
                     double x2,
                     double y2,
                     int nGraph)
Description copied from class: AbstractGraph
Strikes a point on a graph. When a line is drawn instead of a point in Graph4State, it separates so that it is easy to inherit.

Overrides:
drawLine in class AbstractGraph
Parameters:
plot - drawing operation object
graphics2d - Graphics which are drawn
x1 - starting X coordinate
y1 - starting Y coordinate
x2 - finishing X coordinate
y2 - finishing Y coordinate
nGraph - series number of the graph (0..n)

drawPoint

public void drawPoint(IPlot plot,
                      java.awt.Graphics2D graphics2d,
                      double x,
                      double y,
                      int nGraph)
Description copied from class: AbstractGraph
Draws a line on a graph. When a line is drawn instead of a point in Graph4State, it separates so that it is easy to inherit.

Overrides:
drawPoint in class AbstractGraph
Parameters:
plot - drawing operation object
graphics2d - Graphics which are drawn
x - X coordinate
y - Y coordinate
nGraph - series number of a graph (0..n)


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