org.simBio.sim.analyzer.graph.plot
Class PlotPrinter

java.lang.Object
  extended by org.simBio.sim.analyzer.graph.plot.AbstractPlot
      extended by org.simBio.sim.analyzer.graph.plot.PlotPrinter
All Implemented Interfaces:
IPlot

public class PlotPrinter
extends AbstractPlot

印刷用の描画処理を行うためのクラス.

Notice

Author:
misaki

Nested Class Summary
 class PlotPrinter.LegendItem
          凡例用の印刷描画Itemクラス.
 class PlotPrinter.TitleItem
          タイトル用の印刷描画Itemクラス.
 
Nested classes/interfaces inherited from interface org.simBio.sim.analyzer.graph.plot.IPlot
IPlot.Item
 
Field Summary
 
Fields inherited from class org.simBio.sim.analyzer.graph.plot.AbstractPlot
legend, nTarget, nTargetOrigin, parent, rectangleBounds, rectanglePage, rectangleView, title
 
Constructor Summary
PlotPrinter(AbstractGraph parent)
           
 
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 graphics2d, java.awt.Rectangle rectangleBounds, AttributeString[] texts)
          凡例描画の準備を行う.
 void prepareTitle(java.awt.Graphics2D graphics2d, java.awt.Rectangle rectangleBounds, AttributeString text)
          タイトル描画の準備を行う.
 
Methods inherited from class org.simBio.sim.analyzer.graph.plot.AbstractPlot
drawLine, getColor, getLegend, getRectangleBounds, getRectanglePage, getRectangleView, getTitle, setRectanglePage, setSizePage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotPrinter

public PlotPrinter(AbstractGraph parent)
Parameters:
parent - 描画対象のGraphオブジェクト
Method Detail

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
点を描画する.
  1. 高速に描画するために、最適化処理を入れている。
  2. 本メソッドは、グラフ枠、目盛り等の描画には使用しないこと。

Parameters:
graphics2d - 描画対象のGraphics2D
x - X座標
y - Y座標
nGraph - グラフの系列番号(0..n)

prepareTitle

public void prepareTitle(java.awt.Graphics2D graphics2d,
                         java.awt.Rectangle rectangleBounds,
                         AttributeString text)
Description copied from interface: IPlot
タイトル描画の準備を行う.

Parameters:
graphics2d - 描画対象のGraphics2D
rectangleBounds - 描画対象のグラフ領域(暫定値)
text - 表示するテキスト,フォント,色のセット

prepareLegend

public void prepareLegend(java.awt.Graphics2D graphics2d,
                          java.awt.Rectangle rectangleBounds,
                          AttributeString[] texts)
Description copied from interface: IPlot
凡例描画の準備を行う.

Parameters:
graphics2d - 描画対象のGraphics2D
rectangleBounds - 描画対象のグラフ領域(暫定値)
texts - 表示するテキスト,フォント,色のセットの配列


Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.