|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.plaf.basic.BasicGraphicsUtils
»ý¼ºÀÚÀÇ °³¿ä | |
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 |
»ý¼ºÀÚÀÇ »ó¼¼ |
public BasicGraphicsUtils()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public static void drawEtchedRect(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
public static Insets getEtchedInsets()
drawEtchedRect()
·Î Ç¥Çö µÇ´Â º¸´õ°¡ Â÷ÁöÇÏ´Â ¿ë·®À» µ¹·ÁÁÝ´Ï´Ù.
public static void drawGroove(Graphics g, int x, int y, int w, int h, Color shadow, Color highlight)
public static Insets getGrooveInsets()
drawGroove()
·Î Ç¥Çö µÇ´Â º¸´õ°¡ Â÷ÁöÇÏ´Â ¿ë·®À» µ¹·ÁÁÝ´Ï´Ù.
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)
public static void drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
public static void drawString(Graphics g, String text, int underlinedChar, int x, int y)
g.drawString
¿Í °°ÀÌ, À§Ä¡ (x, y)¿¡ ±×·¡ÇȽº g
¸¦ »ç¿ëÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ» Ç¥Çö ÇÕ´Ï´Ù. ÅØ½ºÆ®·Î ÃÖÃÊ·Î underlineChar
°¡ ¹ß»ýÇÑ °Í¿¡, ¹ØÁÙÀÌ ²ø¸³´Ï´Ù. Á¶ÇÕ ¾Ë°í¸®Áò¿¡¼´Â ´ë¹®ÀÚ¿Í ¼Ò¹®ÀÚ¸¦ ±¸º°ÇÏÁö ¾Ê½À´Ï´Ù.
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 ÁÂÇ¥public static void drawDashedRect(Graphics g, int x, int y, int width, int height)
public static Dimension getPreferredButtonSize(AbstractButton b, int textIconGap)
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
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.