|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Objectiappli.lib.ui.CComponent
public abstract class CComponent
部品属性を定義します。
| コンストラクタの概要 | |
|---|---|
CComponent()
アプリケーションが直接このクラスのインスタンスを生成することはできません。 |
|
| メソッドの概要 | |
|---|---|
void |
clear()
描画した部品を消去します。 |
void |
setBackground(int c)
部品の背景色を設定します。 |
void |
setBackup(boolean b)
背景画像のバックアップ有無を設定します。 |
void |
setFont(Font f)
部品のフォントを設定します。 |
void |
setForeground(int c)
部品の前景色を設定します。 |
void |
setGraphics(Graphics g)
描画するキャンパスを設定します。 |
void |
setLocation(int x,
int y)
部品の位置を設定します。 |
void |
setShadow(int c)
部品に表示する文字列の影付き色を設定します。 |
void |
setSize(int w,
int h)
部品のサイズを設定します。 |
| クラス Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public CComponent()
| メソッドの詳細 |
|---|
public void setBackground(int c)
c - 背景色を指定します。public void setForeground(int c)
c - 前景色を指定します。public void setShadow(int c)
c - 影付き色を指定します。public void setFont(Font f)
public void setLocation(int x,
int y)
x - 部品の X 座標(文字数)を指定します。y - 部品の Y 座標(文字数)を指定します。
public void setSize(int w,
int h)
w - 部品の横幅(文字数)を指定します。h - 部品の縦幅(文字数)を指定します。public void setBackup(boolean b)
b - バックアップ有無を指定します。public void setGraphics(Graphics g)
g - キャンパスのグラフィクスオブジェクトを指定します。(this.getGraphics())public void clear()
|
Copyright ITmarks Inc. All rights reserved. | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||