|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.simBio.sim.analyzer.graph.plot.AbstractPlot
public abstract class AbstractPlot
グラフ、描画対象(画面/プリンタ)毎の描画処理を行うための基底クラス.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.simBio.sim.analyzer.graph.plot.IPlot |
---|
IPlot.Item |
Field Summary | |
---|---|
protected IPlot.Item |
legend
|
protected int |
nTarget
|
protected int |
nTargetOrigin
|
protected AbstractGraph |
parent
|
protected java.awt.Rectangle |
rectangleBounds
|
protected java.awt.Rectangle |
rectanglePage
|
protected java.awt.Rectangle |
rectangleView
|
protected IPlot.Item |
title
|
Constructor Summary | |
---|---|
AbstractPlot(AbstractGraph parent)
|
Method Summary | |
---|---|
void |
drawLine(java.awt.Graphics2D graphics2d,
double x1,
double y1,
double x2,
double y2,
int nGraph)
線を描画する. |
protected java.awt.Color |
getColor(int nGraph)
系列番号毎の描画色を取得する. |
IPlot.Item |
getLegend()
凡例描画用のItemオブジェクトを取得する. |
java.awt.Rectangle |
getRectangleBounds()
グラフ・タイトル・凡例の描画領域を取得する. |
java.awt.Rectangle |
getRectanglePage()
ページ全体の領域を取得する. |
java.awt.Rectangle |
getRectangleView()
グラフ本体の描画領域を取得する. |
IPlot.Item |
getTitle()
タイトル描画用のItemオブジェクトを取得する. |
void |
init(int nTarget,
int nTargetOrigin)
初期化を行う. |
void |
setRectanglePage(java.awt.Rectangle rect)
ページ全体の領域をセットする. |
void |
setSizePage(java.awt.Dimension size)
左上座標を(0,0)として、ページ全体のサイズをセットする. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.simBio.sim.analyzer.graph.plot.IPlot |
---|
drawPoint, prepareLegend, prepareTitle |
Field Detail |
---|
protected int nTargetOrigin
protected int nTarget
protected AbstractGraph parent
protected IPlot.Item legend
protected IPlot.Item title
protected java.awt.Rectangle rectangleView
protected java.awt.Rectangle rectangleBounds
protected java.awt.Rectangle rectanglePage
Constructor Detail |
---|
public AbstractPlot(AbstractGraph parent)
parent
- 描画対象のGraphオブジェクトMethod Detail |
---|
public void init(int nTarget, int nTargetOrigin)
IPlot
init
in interface IPlot
nTarget
- 描画する系列数nTargetOrigin
- 描画する系列の最小値public void drawLine(java.awt.Graphics2D graphics2d, double x1, double y1, double x2, double y2, int nGraph)
IPlot
drawLine
in interface IPlot
graphics2d
- 描画対象のGraphics2Dx1
- 始点X座標y1
- 始点Y座標x2
- 終点X座標y2
- 終点Y座標nGraph
- グラフの系列番号(0..n)protected java.awt.Color getColor(int nGraph)
nGraph
- 系列番号
public IPlot.Item getTitle()
IPlot
getTitle
in interface IPlot
public IPlot.Item getLegend()
IPlot
getLegend
in interface IPlot
public java.awt.Rectangle getRectangleView()
IPlot
getRectangleView
in interface IPlot
public java.awt.Rectangle getRectangleBounds()
IPlot
getRectangleBounds
in interface IPlot
public void setRectanglePage(java.awt.Rectangle rect)
IPlot
setRectanglePage
in interface IPlot
public void setSizePage(java.awt.Dimension size)
IPlot
setSizePage
in interface IPlot
public java.awt.Rectangle getRectanglePage()
IPlot
getRectanglePage
in interface IPlot
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |