|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.BevelBorder
public class BevelBorder
단순한 2 라인의 사영 경계를 구현하는 클래스입니다.
경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans™ 의 장기간의 운용 지원는,java.beans
패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder
를 참조해 주세요.
필드의 개요 | |
---|---|
protected int |
bevelType
|
protected Color |
highlightInner
|
protected Color |
highlightOuter
|
static int |
LOWERED
움푹한 곳 사영의 타입입니다. |
static int |
RAISED
떠올라 사영의 타입입니다. |
protected Color |
shadowInner
|
protected Color |
shadowOuter
|
생성자 의 개요 | |
---|---|
BevelBorder (int bevelType)
지정된 타입의 사영 경계를 작성합니다. |
|
BevelBorder (int bevelType,
Color highlight,
Color shadow)
사영 경계를, 지정된 타입, 하이라이트 및 음영의 칼라로 작성합니다. |
|
BevelBorder (int bevelType,
Color highlightOuterColor,
Color highlightInnerColor,
Color shadowOuterColor,
Color shadowInnerColor)
사영 경계를, 지정된 타입, 하이라이트 및 음영의 칼라로 작성합니다. |
메소드의 개요 | |
---|---|
int |
getBevelType ()
사영 경계의 타입을 돌려줍니다. |
Insets |
getBorderInsets (Component c)
경계의 인 세트의 값을 돌려줍니다. |
Insets |
getBorderInsets (Component c,
Insets insets)
insets 파라미터를, 이 Border 의 현재의 Insets 로 다시 초기화합니다. |
Color |
getHighlightInnerColor ()
사영 경계의 안쪽 하이라이트의 칼라를 돌려줍니다. |
Color |
getHighlightInnerColor (Component c)
지정된 컴퍼넌트에 draw 되었을 때에 사영 경계의 안쪽 하이라이트의 칼라를 돌려줍니다. |
Color |
getHighlightOuterColor ()
사영 경계의 외측 하이라이트의 칼라를 돌려줍니다. |
Color |
getHighlightOuterColor (Component c)
지정된 컴퍼넌트에 draw 되었을 때에 사영 경계의 외측 하이라이트의 칼라를 돌려줍니다. |
Color |
getShadowInnerColor ()
사영 경계의 안쪽 음영의 칼라를 돌려줍니다. |
Color |
getShadowInnerColor (Component c)
지정된 컴퍼넌트에 draw 되었을 때에 사영 경계의 안쪽 음영의 칼라를 돌려줍니다. |
Color |
getShadowOuterColor ()
사영 경계의 외측 음영의 칼라를 돌려줍니다. |
Color |
getShadowOuterColor (Component c)
지정된 컴퍼넌트에 draw 되었을 때에 사영 경계의 외측 음영의 칼라를 돌려줍니다. |
boolean |
isBorderOpaque ()
경계가 불투명한가 어떤가를 돌려줍니다. |
void |
paintBorder (Component c,
Graphics g,
int x,
int y,
int width,
int height)
지정된 컴퍼넌트의 경계를, 지정된 위치 및 사이즈로 그립니다. |
protected void |
paintLoweredBevel (Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
protected void |
paintRaisedBevel (Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
클래스 javax.swing.border. AbstractBorder 로부터 상속된 메소드 |
---|
getBaseline , getBaselineResizeBehavior , getInteriorRectangle , getInteriorRectangle |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
필드의 상세 |
---|
public static final int RAISED
public static final int LOWERED
protected int bevelType
protected Color highlightOuter
protected Color highlightInner
protected Color shadowInner
protected Color shadowOuter
생성자 의 상세 |
---|
public BevelBorder(int bevelType)
bevelType
- 경계의 사영의 타입public BevelBorder(int bevelType, Color highlight, Color shadow)
bevelType
- 경계의 사영의 타입highlight
- 사영의 하이라이트에 사용하는 칼라shadow
- 사영의 음영에 사용하는 칼라public BevelBorder(int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor)
주:음영의 안쪽 및 외측의 색은, 움푹한 곳 사영 경계에 맞추어 교체됩니다.
bevelType
- 경계의 사영의 타입highlightOuterColor
- 사영의 외측 하이라이트에 사용하는 칼라highlightInnerColor
- 사영의 안쪽 하이라이트에 사용하는 칼라shadowOuterColor
- 사영의 외측 음영에 사용하는 칼라shadowInnerColor
- 사영의 안쪽 음영에 사용하는 칼라메소드의 상세 |
---|
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Border
내의 paintBorder
AbstractBorder
내의 paintBorder
c
- 이 경계가 페인트 되는 컴퍼넌트g
- 페인트의 그래픽스x
- 페인트 된 경계의 x 좌표y
- 페인트 된 경계의 y 좌표width
- 페인트 된 경계의 폭height
- 페인트 된 경계의 높이public Insets getBorderInsets(Component c)
Border
내의 getBorderInsets
AbstractBorder
내의 getBorderInsets
c
- 이 경계의 인 세트의 값을 적용하는 컴퍼넌트
Insets
객체public Insets getBorderInsets(Component c, Insets insets)
AbstractBorder
내의 getBorderInsets
c
- 이 경계의 인 세트의 값을 적용하는 컴퍼넌트insets
- 다시 초기화하는 객체
insets
객체public Color getHighlightOuterColor(Component c)
c
- 하이라이트가 파생하는 컴퍼넌트public Color getHighlightInnerColor(Component c)
c
- 하이라이트가 파생하는 컴퍼넌트public Color getShadowInnerColor(Component c)
c
- 음영이 파생하는 컴퍼넌트public Color getShadowOuterColor(Component c)
c
- 음영이 파생하는 컴퍼넌트public Color getHighlightOuterColor()
public Color getHighlightInnerColor()
public Color getShadowInnerColor()
public Color getShadowOuterColor()
public int getBevelType()
public boolean isBorderOpaque()
Border
내의 isBorderOpaque
AbstractBorder
내의 isBorderOpaque
protected void paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height)
protected void paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.