JavaTM Platform
Standard Ed. 6

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 를 사용한 캐릭터 라인을 draw 합니다.
static void drawStringUnderlineCharAt (Graphics  g, String  text, int underlinedIndex, int x, int y)
          정확히 g.drawString 와 같이, 위치 (x, y)에 그래픽스 g 를 사용한 캐릭터 라인을 draw 합니다.
static Insets getEtchedInsets ()
          drawEtchedRect() 로 draw 되는 경계가 차지하는 용량을 돌려줍니다.
static Insets getGrooveInsets ()
          drawGroove() 로 draw 되는 경계가 차지하는 용량을 돌려줍니다.
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() 로 draw 되는 경계가 차지하는 용량을 돌려줍니다.

반환값:
에칭 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() 로 draw 되는 경계가 차지하는 용량을 돌려줍니다.

반환값:
도랑 경계의 인 세트

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 를 사용한 캐릭터 라인을 draw 합니다. 텍스트로 최초로 underlineChar 가 발생한 것에, 밑줄이 끌립니다. 조합 알고리즘에서는, 대문자와 소문자를 구별하지 않습니다.


drawStringUnderlineCharAt

public static void drawStringUnderlineCharAt(Graphics  g,
                                             String  text,
                                             int underlinedIndex,
                                             int x,
                                             int y)
정확히 g.drawString 와 같이, 위치 (x, y)에 그래픽스 g 를 사용한 캐릭터 라인을 draw 합니다. 텍스트로 인덱스 underlinedIndex 가 있는 문자는, 밑줄이 끌립니다. index 가 (0 미만의 경우를 포함해) text 경계를 넘는 경우, 어디에도 밑줄은 끌리지 않습니다.

파라미터:
g - draw 하는 그래픽스
text - draw 하는 캐릭터 라인
underlinedIndex - 텍스트중의 밑줄을 긋는 문자의 인덱스
x - draw 하는 x 좌표
y - draw 하는 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 Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.