|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
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 를 사용한 캐릭터 라인을 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 |
생성자 의 상세 |
---|
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()
로 draw 되는 경계가 차지하는 용량을 돌려줍니다.
public static void drawGroove(Graphics g, int x, int y, int w, int h, Color shadow, Color highlight)
public static Insets getGrooveInsets()
drawGroove()
로 draw 되는 경계가 차지하는 용량을 돌려줍니다.
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
를 사용한 캐릭터 라인을 draw 합니다. 텍스트로 최초로 underlineChar
가 발생한 것에, 밑줄이 끌립니다. 조합 알고리즘에서는, 대문자와 소문자를 구별하지 않습니다.
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 좌표public static void drawDashedRect(Graphics g, int x, int y, int width, int height)
public static Dimension getPreferredButtonSize(AbstractButton b, int textIconGap)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.