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

java.lang.Object
  extended by org.simBio.sim.analyzer.graph.plot.PlotPrinter.TitleItem
All Implemented Interfaces:
IPlot.Item
Enclosing class:
PlotPrinter

public class PlotPrinter.TitleItem
extends java.lang.Object

タイトル用の印刷描画Itemクラス.

Author:
misaki

Constructor Summary
PlotPrinter.TitleItem()
           
 
Method Summary
 void draw(java.awt.Graphics2D graphics, int x, int y)
          描画を行う 画面の場合:prepareXXX() にて事前生成したタイトル/凡例を表示する。 印刷の場合:prepareXXX() にて保存した値にて、タイトル/凡例を描画する。
protected  java.awt.Dimension getDimension(java.awt.Graphics2D graphics2d)
          描画のサイズを取得する.
 AttributeString getText()
          (内部用)文字列を取得する.
 boolean isOk()
          描画準備が出来ているかどうかを取得する.
 void setText(AttributeString string)
          (内部用)文字列を設定する.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotPrinter.TitleItem

public PlotPrinter.TitleItem()
Method Detail

isOk

public boolean isOk()
Description copied from interface: IPlot.Item
描画準備が出来ているかどうかを取得する.

Returns:
true:準備できている.

getText

public AttributeString getText()
(内部用)文字列を取得する.

Returns:
表示するテキスト,フォント,色のセット

setText

public void setText(AttributeString string)
(内部用)文字列を設定する.

Parameters:
string - 表示するテキスト,フォント,色のセット

getDimension

protected java.awt.Dimension getDimension(java.awt.Graphics2D graphics2d)
描画のサイズを取得する.

Parameters:
graphics2d - 描画対象のGraphics2D
Returns:
描画のサイズ

draw

public void draw(java.awt.Graphics2D graphics,
                 int x,
                 int y)
Description copied from interface: IPlot.Item
描画を行う

Parameters:
graphics - 描画対象のGraphics2D
x - 左上X座標
y - 左上Y座標


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