JavaTM 2 Platform
Standard Ed. 5.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°¡ ÀÖ´Â ¹®ÀÚ´Â ¹ØÁÙÀÌ ²ø¸³´Ï´Ù. index°¡ (0 ¹Ì¸¸ÀÇ °æ¿ì¸¦ Æ÷ÇÔÇØ) text °æ°è¸¦ ³Ñ´Â °æ¿ì, ¾îµð¿¡µµ ¹ØÁÙÀº ²ø¸®Áö ¾Ê½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
g - ·»´õ¸µ ÇÏ´Â ±×·¡ÇÈ
text - ·»´õ¸µ Çϴ ij¸¯ÅÍ ¶óÀÎ
underlinedIndex - ÅؽºÆ®ÁßÀÇ ¹ØÁÙÀ» ±ß´Â ¹®ÀÚÀÇ À妽º
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
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.