|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectto.tetramorph.starbase.chartparts.GComponent
to.tetramorph.starbase.chartparts.GLabel
public class GLabel
ZodiacPanelに文字を描画するための部品。GLayout(GBoxLayout)にaddして 使用する。文字列中に改行をいれて複数行にすることはできない。
フィールドの概要 |
---|
クラス to.tetramorph.starbase.chartparts.GComponent から継承されたフィールド |
---|
baseWidth, bgColor, BOTTOM, CENTER, g, gcl, insets, LEFT, RIGHT, TOP |
コンストラクタの概要 | |
---|---|
GLabel()
空のオブジェクトを作成する。 |
|
GLabel(int align)
水平alignと文字列""を指定してオブジェクトを作成する。 |
|
GLabel(int align,
double fontScale)
水平alignとフォントスケールを指定して文字列は""のオブジェクトを作成する。 |
|
GLabel(String text)
文字列を指定してオブジェクトを指定する。 |
|
GLabel(String text,
int align)
文字列と水平alignを指定してオブジェクトを作成する。 |
|
GLabel(String text,
int align,
double fontScale)
文字列と水平alignとフォントスケールを指定してオブジェクトを作成する。 |
メソッドの概要 | |
---|---|
GComponent |
contains(int x,
int y)
指定座標がこのGLableの枠内に含まれる場合はこのオブジェクト自身を返す。 |
protected void |
draw(double x,
double y)
描画する。 |
Color |
getColor()
文字色を返す。 |
Rectangle2D.Float |
getFullSize()
部品サイズにインセットを加算したサイズを返す。 |
Rectangle2D.Float |
getSize()
部品のサイズを返す。 |
void |
setColor(Color color)
文字色をセットする。 |
void |
setFontScale(double fontScalePer)
フォントサイズをbaseWidthを1000として千分率で指定する。 |
void |
setText(String text)
文字列をセットする。 |
void |
setup()
描画の準備をする。 |
クラス 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 |
コンストラクタの詳細 |
---|
public GLabel()
public GLabel(String text)
public GLabel(String text, int align)
public GLabel(int align)
public GLabel(String text, int align, double fontScale)
public GLabel(int align, double fontScale)
メソッドの詳細 |
---|
public final void setText(String text)
public void setColor(Color color)
public Color getColor()
public final void setFontScale(double fontScalePer)
protected void draw(double x, double y)
GComponent
の記述:
GComponent
内の draw
public Rectangle2D.Float getSize()
GComponent
の記述:
GComponent
内の getSize
public Rectangle2D.Float getFullSize()
GComponent
の記述:
GComponent
内の getFullSize
public void setup()
GComponent
の記述:
GComponent
内の setup
public GComponent contains(int x, int y)
GComponent
内の contains
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |