|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.Viewer
public class Viewer
Graph viewer.
| Field Summary | |
|---|---|
protected static Log |
log
|
double |
referenceHeight
|
double |
referenceWidth
|
| Fields inherited from class org.simBio.core.Parameter |
|---|
value |
| Constructor Summary | |
|---|---|
Viewer()
|
|
| Method Summary | |
|---|---|
protected void |
analyze(double t)
Carries out a redrawing operation only when necessary. |
void |
changeScale()
Carries out the necessary preparation for redrawing, when the display position/display area changes. Currently it entrusts the operation to repaint(). |
protected void |
end()
called at the end of integration, 計算終了時に呼ばれます。 |
java.awt.Container |
getContainer()
Gets the container. |
java.lang.String |
getFileName()
Gets an XML file name. |
double |
getWHratio()
|
boolean |
isResizing()
Checks whether or not the screen is being redrawn. |
void |
paintComponent(java.awt.Graphics graphic)
Draws a screen of the Viewer. |
protected void |
prepare()
親が自分と同じ名前のpublic doubleを持っていれば、自分の値を設定する。 |
void |
prepareRepaint()
再描画を準備する. |
void |
printComponent(java.awt.Graphics graphic)
Carries out drawing for Viewer printing. |
protected void |
quit()
Dispose of graphics and OnScreen. |
void |
repaint()
再描画パラメータの取り込みと、再描画を行う. |
void |
setContainer(java.awt.Container container)
Sets the container. |
void |
setFileName(java.lang.String string)
Sets an XML file name. |
protected void |
setLinks()
When there are no container, construct OnScreen, and clear. |
void |
setPrintableRect(java.awt.Rectangle rectangle)
Sets the printing area intrinsic to the printer. Before printing, please set the printable area information intrinsic to the printer, which can be obtained from javax.print.attribute.standard.MediaPrintableArea. |
void |
setPrintRect(java.awt.Rectangle rectangle)
Sets the printing area which was set with a dialog. Before printing, please set the printable area (Imageable) information, which can be obtained from java.awt.print.PageFormat. |
void |
setRepaintFlag()
Orders the redrawing of the screen. {@.en The actual redrawing is done the next time the analyze() method of Viewer is called. |
| Methods inherited from class org.simBio.sim.analyzer.VisualizeAnalyzer |
|---|
doRepaint, getColorParameter, getDouble, getFontParameter, getNodeHierarchically, getNodeRecursive, 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, 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 |
|---|
protected static Log log
public double referenceWidth
public double referenceHeight
| Constructor Detail |
|---|
public Viewer()
| Method Detail |
|---|
public void setContainer(java.awt.Container container)
setContainer in interface IViewercontainer - The container to setpublic java.awt.Container getContainer()
protected void setLinks()
setLinks in class ComponentOnScreen,
Component.setLinks()protected void prepare()
Parameter
prepare in class ParameterComponent.prepare()public void repaint()
VisualizeAnalyzer
repaint in class VisualizeAnalyzerpublic void prepareRepaint()
VisualizeAnalyzer
prepareRepaint in class VisualizeAnalyzerpublic void paintComponent(java.awt.Graphics graphic)
paintComponent in interface IViewergraphic - Graphics drawing object public void printComponent(java.awt.Graphics graphic)
printComponent in interface IViewergraphic - Graphics drawing object protected void end()
Component
end in class Componentprotected void quit()
quit in class ComponentOnScreen,
Component.quit()protected void analyze(double t)
analyze in class VisualizeAnalyzert - timeAnalyzer.analyze(double)public void setRepaintFlag()
public java.lang.String getFileName()
public void setFileName(java.lang.String string)
setFileName in interface IViewerstring - XML file name public void changeScale()
public boolean isResizing()
public void setPrintRect(java.awt.Rectangle rectangle)
setPrintRect in interface IViewerrectangle - printing areaPageFormatpublic void setPrintableRect(java.awt.Rectangle rectangle)
setPrintableRect in interface IViewerrectangle - printable areaMediaPrintableAreapublic double getWHratio()
getWHratio in interface IViewerIViewer.getWHratio()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||