JavaTM 2
Platform
Std.  Ed.  v1. 4.0

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.drawString ¿Í °°ÀÌ, À§Ä¡ (x, y)¿¡ ±×·¡ÇȽº g ¸¦ »ç¿ëÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ» Ç¥Çö ÇÕ´Ï´Ù.
static void drawStringUnderlineCharAt (Graphics  g, String  text, int underlinedIndex, int x, int y)
          Á¤È®È÷ g.drawString ¿Í °°ÀÌ, À§Ä¡ (x, y)¿¡ ±×·¡ÇȽº g ¸¦ »ç¿ëÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ» Ç¥Çö ÇÕ´Ï´Ù.
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() ·Î Ç¥Çö µÇ´Â º¸´õ°¡ Â÷ÁöÇÏ´Â ¿ë·®À» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¿¡Äª rect ÀÇ ÀÎ ¼¼Æ®

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.drawString ¿Í °°ÀÌ, À§Ä¡ (x, y)¿¡ ±×·¡ÇȽº g ¸¦ »ç¿ëÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ» Ç¥Çö ÇÕ´Ï´Ù. ÅØ½ºÆ®·Î ÃÖÃÊ·Î underlineChar °¡ ¹ß»ýÇÑ °Í¿¡, ¹ØÁÙÀÌ ²ø¸³´Ï´Ù. Á¶ÇÕ ¾Ë°í¸®Áò¿¡¼­´Â ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ±¸º°ÇÏÁö ¾Ê½À´Ï´Ù.


drawStringUnderlineCharAt

public static void drawStringUnderlineCharAt(Graphics  g,
                                             String  text,
                                             int underlinedIndex,
                                             int x,
                                             int y)
Á¤È®È÷ g.drawString ¿Í °°ÀÌ, À§Ä¡ (x, y)¿¡ ±×·¡ÇȽº g ¸¦ »ç¿ëÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ» Ç¥Çö ÇÕ´Ï´Ù. ÅØ½ºÆ®·Î À妽º underlinedIndex °¡ Àִ ij¸¯ÅÍ´Â ¹ØÁÙÀÌ ²ø¸³´Ï´Ù. index °¡ (0 ¹Ì¸¸ÀÇ °æ¿ì¸¦ Æ÷ÇÔÇØ) text °æ°è¸¦ ³Ñ´Â °æ¿ì, ¾îµð¿¡µµ ¹ØÁÙÀº ²ø¸®Áö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
g - Ç¥Çö ÇÏ´Â ±×·¡ÇȽº
text - Ç¥Çö Çϴ ij¸¯ÅÍ ¶óÀÎ
underlinedIndex - ÅØ½ºÆ®ÁßÀÇ ¹ØÁÙÀ» ±ß´Â ij¸¯ÅÍÀÇ À妽º
x - Ç¥Çö ÇÏ´Â x ÁÂÇ¥
y - Ç¥Çö ÇÏ´Â y ÁÂÇ¥
µµÀÔµÈ ¹öÁ¯:
1.4

drawDashedRect

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

getPreferredButtonSize

public static Dimension  getPreferredButtonSize(AbstractButton  b,
                                               int textIconGap)

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.