to.tetramorph.starbase.chartparts
クラス GSymbolLabel

java.lang.Object
  上位を拡張 to.tetramorph.starbase.chartparts.GComponent
      上位を拡張 to.tetramorph.starbase.chartparts.GLabel
          上位を拡張 to.tetramorph.starbase.chartparts.GSymbolLabel

public class GSymbolLabel
extends GLabel

GLabelと似たようなものだが、頭に占星術記号を追加できる。


フィールドの概要
 
クラス to.tetramorph.starbase.chartparts.GComponent から継承されたフィールド
baseWidth, bgColor, BOTTOM, CENTER, g, gcl, insets, LEFT, RIGHT, TOP
 
コンストラクタの概要
GSymbolLabel()
          GSymbolLabel オブジェクトを作成する
GSymbolLabel(String symbol, String text)
           
GSymbolLabel(String symbol, String text, int align)
           
GSymbolLabel(String symbol, String text, int align, double fontScale)
           
 
メソッドの概要
protected  void draw(double x, double y)
          描画する。
 void setup()
          描画の準備をする。
 
クラス to.tetramorph.starbase.chartparts.GLabel から継承されたメソッド
contains, getColor, getFullSize, getSize, setColor, setFontScale, setText
 
クラス to.tetramorph.starbase.chartparts.GComponent から継承されたメソッド
getActionCommand, getAlign, getBGColor, getGComponentListener, getInset, getVAlign, setActionCommand, setAlign, setAligns, setBaseWidth, setBGColor, setGComponentListener, setGraphics, setInset, setInsets, setVAlign
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

GSymbolLabel

public GSymbolLabel()
GSymbolLabel オブジェクトを作成する


GSymbolLabel

public GSymbolLabel(String symbol,
                    String text)

GSymbolLabel

public GSymbolLabel(String symbol,
                    String text,
                    int align)

GSymbolLabel

public GSymbolLabel(String symbol,
                    String text,
                    int align,
                    double fontScale)
メソッドの詳細

draw

protected void draw(double x,
                    double y)
クラス GComponent の記述:
描画する。x,yはピクセル値

オーバーライド:
クラス GLabel 内の draw

setup

public void setup()
クラス GComponent の記述:
描画の準備をする。draw(x,y)を呼び出す前にこのメソッドを呼び出されるので、 前準備を行うコードを実装する。

オーバーライド:
クラス GLabel 内の setup