|
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--com.ogane.xi.FlipedLabel
FlipedLabelクラスは文字列を回転して表示します。回転する方向は次の通りです。
DEGREE_0 | 0度 |
DEGREE_90 | 左に90度 |
DEGREE_180 | 左に180度 |
DEGREE_270 | 左に270度 |
クラス java.awt.Canvas から継承した内部クラス |
Canvas.AccessibleAWTCanvas |
クラス java.awt.Component から継承した内部クラス |
Component.AccessibleAWTComponent |
フィールドの概要 | |
static int |
CENTER
中央 |
static int |
DEGREE_0
0度 |
static int |
DEGREE_180
左に180度 |
static int |
DEGREE_270
左に270度 |
static int |
DEGREE_90
左に90度 |
static int |
LEFT
左 |
static int |
RIGHT
右 |
クラス java.awt.Component から継承したフィールド |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
インタフェース java.awt.image.ImageObserver から継承したフィールド |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
コンストラクタの概要 | |
FlipedLabel()
回転文字列を作成します。 |
|
FlipedLabel(String theText)
回転文字列を作成します。 |
|
FlipedLabel(String theText,
int theRotation)
回転文字列を作成します。 |
|
FlipedLabel(String theText,
int theRotation,
int theAlignment)
回転文字列を作成します。 |
メソッドの概要 | |
int |
getAlignment()
回転文字列の位置あわせを返します。 |
Dimension |
getMinimumSize()
回転文字列の最小サイズを返します。 |
Dimension |
getPreferredSize()
回転文字列の推奨サイズを返します。 |
int |
getRotation()
回転文字列の回転する方向を返します。 |
String |
getText()
回転文字列の文字列を返します。 |
void |
paint(Graphics g)
回転文字列を描画します。 |
void |
setAlignment(int theAlignment)
回転文字列の位置あわせを設定します。 |
void |
setBackground(Color theColor)
背景色を設定します。 |
void |
setBounds(int x,
int y,
int w,
int h)
指定された境界の矩形領域に回転文字列を再形成します。 |
void |
setFont(Font theFont)
回転文字列の書体を設定します。 |
void |
setForeground(Color theColor)
前景色を指定します。 |
void |
setRotation(int theRotation)
回転文字列の回転する方向を設定します。 |
void |
setSize(int nw,
int nh)
指定された幅と高さに回転文字列を変更します。 |
void |
setText(String theText)
回転文字列の文字列を設定します。 |
void |
update(Graphics g)
回転文字列を更新します。 |
クラス java.awt.Canvas から継承したメソッド |
addNotify, getAccessibleContext |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static final int DEGREE_0
public static final int DEGREE_90
public static final int DEGREE_180
public static final int DEGREE_270
public static final int CENTER
public static final int LEFT
public static final int RIGHT
コンストラクタの詳細 |
public FlipedLabel(String theText, int theRotation, int theAlignment)
theText
- 文字列theRotation
- 回転する方向theAlignment
- 位置あわせpublic FlipedLabel(String theText, int theRotation)
theText
- 文字列theRotation
- 回転する方向public FlipedLabel(String theText)
theText
- 文字列public FlipedLabel()
メソッドの詳細 |
public void setText(String theText)
theText
- 文字列public String getText()
public void setFont(Font theFont)
Component
内の setFont
theFont
- 書体public void setBackground(Color theColor)
Component
内の setBackground
theColor
- 背景色public void setForeground(Color theColor)
Component
内の setForeground
theColor
- 前景色public void setRotation(int theRotation)
theRotation
- 回転する方向public void setAlignment(int theAlignment)
theAlignment
- 位置あわせpublic int getRotation()
public int getAlignment()
public void setSize(int nw, int nh)
Component
内の setSize
nw
- 回転文字列の幅nh
- 回転文字列の高さ public void setBounds(int x, int y, int w, int h)
Component
内の setBounds
x
- x座標y
- y座標nw
- 回転文字列の幅nh
- 回転文字列の高さ public Dimension getPreferredSize()
Component
内の getPreferredSize
public Dimension getMinimumSize()
Component
内の getMinimumSize
public void update(Graphics g)
Component
内の update
g
- 更新に使う Graphicsコンテキストpublic void paint(Graphics g)
Canvas
内の paint
g
- 描画に使う Graphicsコンテキスト
|
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright 2000-2010, 大金システム設計事務所. All Rights Reserved.
2660-73 Mawatari, Hitachinaka, Ibaraki, 312-0012 JAPAN.
info@ogane.com