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

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

public class PlotPrinter.LegendItem
extends java.lang.Object

凡例用の印刷描画Itemクラス.

Author:
misaki

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

Constructor Detail

PlotPrinter.LegendItem

public PlotPrinter.LegendItem()
Method Detail

isOk

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

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

getTexts

public AttributeString[] getTexts()
(内部用)文字列配列を取得する.

Returns:
表示するテキスト,フォント,色をセットした配列

setTexts

public void setTexts(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.