org.simBio.sim.analyzer.graph.plot
Class PlotDisplay
java.lang.Object
org.simBio.sim.analyzer.graph.plot.AbstractPlot
org.simBio.sim.analyzer.graph.plot.PlotDisplay
- All Implemented Interfaces:
- IPlot
public class PlotDisplay
- extends AbstractPlot
画面用の描画処理を行うためのクラス.
Notice
- (速度面)速度を稼ぐため、整数演算を行っています。
- (速度面)タイトル、凡例は、BufferedImageに事前生成を行い、再描画の際はコピーを行っています。
- (速度面)同じ座標に、同じ色の点を2度描画しないため、前回描画位置を保持しています。
- Author:
- misaki
Nested classes/interfaces inherited from interface org.simBio.sim.analyzer.graph.plot.IPlot |
IPlot.Item |
Method Summary |
void |
drawPoint(java.awt.Graphics2D graphics2d,
double x,
double y,
int nGraph)
点を描画する. |
void |
init(int nTarget,
int nTargetOrigin)
初期化を行う. |
void |
prepareLegend(java.awt.Graphics2D baseGraphics,
java.awt.Rectangle rectangleBounds,
AttributeString[] texts)
凡例描画の準備を行う. |
void |
prepareTitle(java.awt.Graphics2D baseGraphics,
java.awt.Rectangle rectangleBounds,
AttributeString text)
タイトル描画の準備を行う. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlotDisplay
public PlotDisplay(AbstractGraph parent)
- Parameters:
parent
- 描画対象のGraphオブジェクト
init
public void init(int nTarget,
int nTargetOrigin)
- Description copied from interface:
IPlot
- 初期化を行う.
- Specified by:
init
in interface IPlot
- Overrides:
init
in class AbstractPlot
- Parameters:
nTarget
- 描画する系列数nTargetOrigin
- 描画する系列の最小値
drawPoint
public void drawPoint(java.awt.Graphics2D graphics2d,
double x,
double y,
int nGraph)
- Description copied from interface:
IPlot
- 点を描画する.
- 高速に描画するために、最適化処理を入れている。
- 本メソッドは、グラフ枠、目盛り等の描画には使用しないこと。
- Parameters:
graphics2d
- 描画対象のGraphics2Dx
- X座標y
- Y座標nGraph
- グラフの系列番号(0..n)
prepareTitle
public void prepareTitle(java.awt.Graphics2D baseGraphics,
java.awt.Rectangle rectangleBounds,
AttributeString text)
- Description copied from interface:
IPlot
- タイトル描画の準備を行う.
- 画面の場合:高速再描画が必要なため、本メソッドを呼び出した時点で描画イメージを作成しておく。
- 印刷の場合:プリンタ解像度に合わせた描画が必要なため、印刷内容を保持するのみとする。
- Parameters:
baseGraphics
- 描画対象のGraphics2DrectangleBounds
- 描画対象のグラフ領域(暫定値)text
- 表示するテキスト,フォント,色のセット
prepareLegend
public void prepareLegend(java.awt.Graphics2D baseGraphics,
java.awt.Rectangle rectangleBounds,
AttributeString[] texts)
- Description copied from interface:
IPlot
- 凡例描画の準備を行う.
- 画面の場合:高速再描画が必要なため、本メソッドを呼び出した時点で描画イメージを作成しておく。
- 印刷の場合:プリンタ解像度に合わせた描画が必要なため、印刷内容を保持するのみとする。
- Parameters:
baseGraphics
- 描画対象のGraphics2DrectangleBounds
- 描画対象のグラフ領域(暫定値)texts
- 表示するテキスト,フォント,色のセットの配列
Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.