|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.plaf.basic.BasicGraphicsUtils
public class 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
°¡ ÀÖ´Â ¹®ÀÚ´Â ¹ØÁÙÀÌ ²ø¸³´Ï´Ù. index
°¡ (0 ¹Ì¸¸ÀÇ °æ¿ì¸¦ Æ÷ÇÔÇØ) text
°æ°è¸¦ ³Ñ´Â °æ¿ì, ¾îµð¿¡µµ ¹ØÁÙÀº ²ø¸®Áö ¾Ê½À´Ï´Ù.
g
- ·»´õ¸µ ÇÏ´Â ±×·¡ÇÈtext
- ·»´õ¸µ Çϴ ij¸¯ÅÍ ¶óÀÎunderlinedIndex
- ÅØ½ºÆ®ÁßÀÇ ¹ØÁÙÀ» ±ß´Â ¹®ÀÚÀÇ À妽º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 Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.