org.simBio.sim.analyzer.graph.plot
Interface IPlot.Item

All Known Implementing Classes:
PlotDisplay.LegendItem, PlotDisplay.TitleItem, PlotPrinter.LegendItem, PlotPrinter.TitleItem
Enclosing interface:
IPlot

public static interface IPlot.Item

タイトル/凡例描画用のオブジェクト

Author:
misaki@seis.co.jp

Method Summary
 void draw(java.awt.Graphics2D graphics2d, int x, int y)
          描画を行う 画面の場合:prepareXXX() にて事前生成したタイトル/凡例を表示する。 印刷の場合:prepareXXX() にて保存した値にて、タイトル/凡例を描画する。
 int getHeight(java.awt.Graphics2D graphics2d)
          描画に必要な高さを取得する.
 int getWidth(java.awt.Graphics2D graphics2d)
          描画に必要な横幅を取得する.
 boolean isOk()
          描画準備が出来ているかどうかを取得する.
 

Method Detail

getHeight

int getHeight(java.awt.Graphics2D graphics2d)
描画に必要な高さを取得する.

Parameters:
graphics2d - 描画対象のGraphics2D
Returns:
高さ

getWidth

int getWidth(java.awt.Graphics2D graphics2d)
描画に必要な横幅を取得する.

Parameters:
graphics2d - 描画対象のGraphics2D
Returns:
横幅

draw

void draw(java.awt.Graphics2D graphics2d,
          int x,
          int y)
描画を行う

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

isOk

boolean isOk()
描画準備が出来ているかどうかを取得する.

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


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