org.mklab.tool.graph.gnuplot.decoration
クラス TextLabel

java.lang.Object
  上位を拡張 org.mklab.tool.graph.gnuplot.decoration.TextLabel
すべての実装されたインタフェース:
GnuplotComponent

public class TextLabel
extends Object
implements GnuplotComponent

テキストラベルを表すクラスです。

バージョン:
$Revision: 1.9 $, 2005/07/28
作成者:
koga

コンストラクタの概要
TextLabel()
          コンストラクター
TextLabel(String text, double x, double y)
          コンストラクター
TextLabel(String text, double x, double y, String attribute)
          コンストラクター
 
メソッドの概要
 String getCommand()
          設定するためのコマンド文字列を得る。
 void setLabel(String text, double x, double y)
          ラベルを設定します。
 void setLabel(String text, double x, double y, String attribute)
          ラベルを設定します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TextLabel

public TextLabel()
コンストラクター


TextLabel

public TextLabel(String text,
                 double x,
                 double y)
コンストラクター

パラメータ:
text - テキスト
x - 表示位置のX座標
y - 表示位置のY座標

TextLabel

public TextLabel(String text,
                 double x,
                 double y,
                 String attribute)
コンストラクター

パラメータ:
text - テキスト
x - 表示位置のX座標
y - 表示位置のY座標
attribute - テキスト描画に関する属性
メソッドの詳細

getCommand

public String getCommand()
設定するためのコマンド文字列を得る。

定義:
インタフェース GnuplotComponent 内の getCommand
戻り値:
設定するためのコマンド文字列

setLabel

public void setLabel(String text,
                     double x,
                     double y)
ラベルを設定します。

パラメータ:
text - テキスト
x - 表示位置のX座標
y - 表示位置のY座標

setLabel

public void setLabel(String text,
                     double x,
                     double y,
                     String attribute)
ラベルを設定します。

パラメータ:
text - テキスト
x - 表示位置のX座標
y - 表示位置のY座標
attribute - テキスト描画に関する属性