|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.Axis org.simBio.sim.analyzer.graph.AxisX
public class AxisX
x axis
Field Summary |
---|
Fields inherited from class org.simBio.sim.analyzer.graph.Axis |
---|
extendMode, extendModeDefault, extendRateDefault, gridStep, isPlotLabel, labelColor, labelFont, labelInitialized, labelLength, labelStep, length, log, max, min, MODE_AUTOSCALE, MODE_AUTOSCROLL, MODE_FIXED, nextLabelPos, origin, patternString, titleColor, titleFont |
Fields inherited from class org.simBio.core.Parameter |
---|
value |
Constructor Summary | |
---|---|
AxisX()
|
Method Summary | |
---|---|
protected void |
drowDesc(java.awt.Graphics graphics,
IPlot plot,
java.lang.String str)
Draws the axis label in graphics. |
protected void |
drowGrid(java.awt.Graphics graphics,
IPlot plot,
double value)
Draws a grid in graphics with a value at the specified position. |
protected void |
drowLabel(java.awt.Graphics graphics,
IPlot plot,
double value,
java.lang.String str)
Draws the numerical value of the value parameter in graphics at the specified position. |
java.lang.String |
getFormatString(double min,
double max)
Get default format string. |
int |
getFreeSpaceBottom(java.awt.Graphics graphics)
Get the space for the axis label |
int |
getFreeSpaceLeft(java.awt.Graphics graphics)
Gets the space on the left of the screen for displaying the scale. Please override as necessary with a concrete class. |
protected double |
getLabelLength(java.awt.Graphics graphics,
java.lang.String str)
Display of the axis label |
protected double |
getPos(double data,
IPlot plot)
Gets the coordinate axis from Plot. |
protected void |
setLinks()
Set link to the Viewer to get scale factor later. |
Methods inherited from class org.simBio.sim.analyzer.graph.Axis |
---|
analyze, doRepaint, format, getFreeSpaceRight, getFreeSpaceTop, Log10, plotAxis, prepare, prepareRepaint |
Methods inherited from class org.simBio.sim.analyzer.VisualizeAnalyzer |
---|
getColorParameter, getDouble, getFontParameter, getNodeHierarchically, getNodeRecursive, repaint, resetBuffer |
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 |
Constructor Detail |
---|
public AxisX()
Method Detail |
---|
protected void setLinks()
Axis
setLinks
in class Axis
Component.setLinks()
public java.lang.String getFormatString(double min, double max)
Axis
getFormatString
in class Axis
min
- minimum scale valuemax
- maximum scale value
public int getFreeSpaceBottom(java.awt.Graphics graphics)
getFreeSpaceBottom
in class Axis
graphics
- Graphics of the drawing target
Axis.getFreeSpaceBottom(java.awt.Graphics)
public int getFreeSpaceLeft(java.awt.Graphics graphics)
Axis
getFreeSpaceLeft
in class Axis
graphics
- Graphics of the drawing target
protected double getLabelLength(java.awt.Graphics graphics, java.lang.String str)
getLabelLength
in class Axis
graphics
- Graphics drawing object str
- display valueorg.simBio.sim.analyzer.graph.Axis#getLabelLength(org.simBio.sim.analyzer.graph.AbstractGraph,
java.awt.Graphics, java.lang.String)
protected void drowGrid(java.awt.Graphics graphics, IPlot plot, double value)
Axis
drowGrid
in class Axis
graphics
- Graphics drawing object plot
- drawing operation object value
- calculation value protected void drowLabel(java.awt.Graphics graphics, IPlot plot, double value, java.lang.String str)
Axis
drowLabel
in class Axis
graphics
- Graphics drawing object plot
- drawing operation object value
- calculation value str
- display value protected void drowDesc(java.awt.Graphics graphics, IPlot plot, java.lang.String str)
Axis
drowDesc
in class Axis
graphics
- Graphics drawing object plot
- drawing operation object str
- display value protected double getPos(double data, IPlot plot)
Axis
getPos
in class Axis
data
- calculation value plot
- object that handles drawing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |