|
||||||||||
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.graph.simple.Viewer
public class Viewer
graph viewer.
Field Summary | |
---|---|
double |
referenceHeight
|
double |
referenceWidth
|
Fields inherited from class org.simBio.core.Parameter |
---|
value |
Constructor Summary | |
---|---|
Viewer()
|
Method Summary | |
---|---|
protected void |
analyze(double t)
do nothing |
void |
drawBar(int x,
int y,
int width,
int height,
int c)
|
void |
drawPoint(int x,
int y,
int size,
int c)
|
double |
getScaleHeight()
scaling factor = reference height (0.01 mm) / physical height (pixel) |
double |
getScaleWidth()
scaling factor = reference width (0.01 mm) / physical width (pixel) |
double |
getWHratio()
|
void |
paintComponent(java.awt.Graphics graphic)
Viewerの画面用描画を行う. |
void |
plotAxises(Axis XA,
Axis YA)
plot axses and grids |
void |
printComponent(java.awt.Graphics graphic)
|
protected void |
quit()
dispose graphics and OnScreen. |
void |
reset()
get graphics and clear. |
void |
setContainer(java.awt.Container container)
Sets the container. |
void |
setContainer(javax.swing.JPanel panel)
|
void |
setFileName(java.lang.String string)
XMLファイル名を設定する. |
protected void |
setLinks()
When there are no container, construct OnScreen, and clear. |
void |
setPrintableRect(java.awt.Rectangle rectPrintableArea)
|
void |
setPrintRect(java.awt.Rectangle rectImageArea)
|
Methods inherited from class org.simBio.core.Composite |
---|
accept, getLink, getNode, getNodesIterator, getNodesSize |
Methods inherited from class org.simBio.core.Parameter |
---|
addValue, getValue, getValueString, prepare, 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 |
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 |
---|
public double referenceWidth
public double referenceHeight
Constructor Detail |
---|
public Viewer()
Method Detail |
---|
public void setContainer(java.awt.Container container)
setContainer
in interface IViewer
container
- The container to setpublic void reset()
reset
in interface ICanvas
protected void setLinks()
setLinks
in class Component
OnScreen
,
Component.setLinks()
protected void quit()
quit
in class Component
OnScreen
,
Component.quit()
protected void analyze(double t)
analyze
in class Analyzer
t
- timeAnalyzer.analyze(double)
public double getScaleWidth()
getScaleWidth
in interface ICanvas
public double getScaleHeight()
getScaleHeight
in interface ICanvas
public void plotAxises(Axis XA, Axis YA)
plotAxises
in interface ICanvas
XA
- x axisYA
- y axispublic void drawBar(int x, int y, int width, int height, int c)
drawBar
in interface ICanvas
public void drawPoint(int x, int y, int size, int c)
drawPoint
in interface ICanvas
public double getWHratio()
getWHratio
in interface IViewer
IViewer.getWHratio()
public void setFileName(java.lang.String string)
setFileName
in interface IViewer
string
- XMLファイル名public void paintComponent(java.awt.Graphics graphic)
paintComponent
in interface IViewer
graphic
- 描画対象のGraphicspublic void printComponent(java.awt.Graphics graphic)
printComponent
in interface IViewer
public void setPrintRect(java.awt.Rectangle rectImageArea)
setPrintRect
in interface IViewer
public void setPrintableRect(java.awt.Rectangle rectPrintableArea)
setPrintableRect
in interface IViewer
public void setContainer(javax.swing.JPanel panel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |