Java プラットフォーム 1.2

javax.swing.plaf.basic
クラス BasicGraphicsUtils

java.lang.Object
  |
  +--javax.swing.plaf.basic.BasicGraphicsUtils

public class BasicGraphicsUtils
extends Object


コンストラクタの概要
BasicGraphicsUtils()
           
 
メソッドの概要
static void drawBezel(Graphics g, int x, int y, int w, int h, boolean isPressed, boolean isDefault, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
           
static void drawDashedRect(Graphics g, int x, int y, int width, int height)
           
static void drawEtchedRect(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
           
static void drawGroove(Graphics g, int x, int y, int w, int h, Color shadow, Color highlight)
           
static void drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
           
static void drawString(Graphics g, String text, int underlinedChar, int x, int y)
          グラフィック g を使って、位置 (x,y) に g.drawString() と同様にして文字列を描画します。
static Insets getEtchedInsets()
          drawEtchedRect() で描画されたボーダが占める領域を返します。
static Insets getGrooveInsets()
          drawGroove() で描画されたボーダが占める領域を返します。
static Dimension getPreferredButtonSize(AbstractButton b, int textIconGap)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BasicGraphicsUtils

public BasicGraphicsUtils()
メソッドの詳細

drawEtchedRect

public static void drawEtchedRect(Graphics g,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  Color shadow,
                                  Color darkShadow,
                                  Color highlight,
                                  Color lightHighlight)

getEtchedInsets

public static Insets getEtchedInsets()
drawEtchedRect() で描画されたボーダが占める領域を返します。
戻り値:
エッチング矩形のインセット

drawGroove

public static void drawGroove(Graphics g,
                              int x,
                              int y,
                              int w,
                              int h,
                              Color shadow,
                              Color highlight)

getGrooveInsets

public static Insets getGrooveInsets()
drawGroove() で描画されたボーダが占める領域を返します。
戻り値:
溝ボーダのインセット

drawBezel

public static void drawBezel(Graphics g,
                             int x,
                             int y,
                             int w,
                             int h,
                             boolean isPressed,
                             boolean isDefault,
                             Color shadow,
                             Color darkShadow,
                             Color highlight,
                             Color lightHighlight)

drawLoweredBezel

public static void drawLoweredBezel(Graphics g,
                                    int x,
                                    int y,
                                    int w,
                                    int h,
                                    Color shadow,
                                    Color darkShadow,
                                    Color highlight,
                                    Color lightHighlight)

drawString

public static void drawString(Graphics g,
                              String text,
                              int underlinedChar,
                              int x,
                              int y)
グラフィック g を使って、位置 (x,y) に g.drawString() と同様にして文字列を描画します。テキスト中の最初の underlinedChar に下線が付きます。この文字のマッチングでは大文字と小文字を区別しません。

drawDashedRect

public static void drawDashedRect(Graphics g,
                                  int x,
                                  int y,
                                  int width,
                                  int height)

getPreferredButtonSize

public static Dimension getPreferredButtonSize(AbstractButton b,
                                               int textIconGap)

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.