Kagetaka

net.hizlab.kagetaka.awt
クラス Border

java.lang.Object
  拡張net.hizlab.kagetaka.awt.Border

public class Border
extends Object

AWT グラフィックスユーティリティクラスです。

バージョン:
$Revision: 1.2 $

入れ子クラスの概要
 class Border.Line
          四方向の各ラインを表します。
 
フィールドの概要
static int ALL
          すべて
 Border.Line bottom
          下
static int BOTTOM
          下
 Border.Line left
          左
static int LEFT
          左
 Border.Line right
          右
static int RIGHT
          右
 Border.Line top
          上
static int TOP
          上
 
コンストラクタの概要
Border()
          空のボーダーを作成します。
 
メソッドの概要
 void draw(Graphics g, int x1, int y1, int x2, int y2, Color color)
          ボーダーを描画します。
 Insets getWidths()
          ボーダーの実際の幅を返します。
 void setBaseSize(FontData fd)
          ベースサイズを設定します。
 void setColor(int target, Color value)
          ボーダーの色を設定します。
 void setStyle(int target, Value value)
          ボーダーのスタイルを設定します。
 void setWidth(int target, Value value)
          ボーダーの幅を設定します。
 String toString()
          文字列表現を返します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

ALL

public static final int ALL
すべて

関連項目:
定数フィールド値

bottom

public Border.Line bottom


BOTTOM

public static final int BOTTOM

関連項目:
定数フィールド値

left

public Border.Line left


LEFT

public static final int LEFT

関連項目:
定数フィールド値

right

public Border.Line right


RIGHT

public static final int RIGHT

関連項目:
定数フィールド値

top

public Border.Line top


TOP

public static final int TOP

関連項目:
定数フィールド値
コンストラクタの詳細

Border

public Border()
空のボーダーを作成します。

メソッドの詳細

draw

public void draw(Graphics g,
                 int x1,
                 int y1,
                 int x2,
                 int y2,
                 Color color)
ボーダーを描画します。

パラメータ:
g - グラフィックス
x1 - 左上の X 座標
y1 - 左上の Y 座標
x2 - 右下の X 座標
y2 - 右下の Y 座標
color - デフォルトの色

getWidths

public Insets getWidths()
ボーダーの実際の幅を返します。

戻り値:
ボーダー幅

setBaseSize

public void setBaseSize(FontData fd)
ベースサイズを設定します。

パラメータ:
fd - フォントデータ

setColor

public void setColor(int target,
                     Color value)
ボーダーの色を設定します。

パラメータ:
target - ターゲット
value - 値

setStyle

public void setStyle(int target,
                     Value value)
ボーダーのスタイルを設定します。

パラメータ:
target - ターゲット
value - 値

setWidth

public void setWidth(int target,
                     Value value)
ボーダーの幅を設定します。

パラメータ:
target - ターゲット
value - 値

toString

public String toString()
文字列表現を返します。

戻り値:
文字列表現

Kagetaka

Copyright (c) 2002-2003 The Kagetaka Project 'December 6, 2003'