|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
public class TitledBorder
String 에 의한 타이틀을 위치 및 위치 가지런히 하고를 지정해 추가해, 임의의 경계를 구현하는 클래스입니다.
경계, 폰트, 칼라의 프로퍼티치가, 생성자 내에서, 또는 적절한 set 메소드의 호출에 의해 지정되어 있지 않은 경우는, Defaults Table 에 있는 다음의 프로퍼티명을 사용해 현재의 Look & Feel 로 프로퍼티치를 정의합니다.
경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans™ 의 장기간의 운용 지원는,java.beans
패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder
를 참조해 주세요.
필드의 개요 | |
---|---|
static int |
ABOVE_BOTTOM
타이틀을 경계의 최종결과보다 위에 배치합니다. |
static int |
ABOVE_TOP
타이틀을 경계의 탑 라인보다 위에 배치합니다. |
static int |
BELOW_BOTTOM
타이틀을 경계의 최종결과보다 아래에 배치합니다. |
static int |
BELOW_TOP
타이틀을 경계의 탑 라인보다 아래에 배치합니다. |
protected Border |
border
|
static int |
BOTTOM
타이틀을 경계의 최종결과의 중앙에 배치합니다. |
static int |
CENTER
타이틀 텍스트를 경계선의 중앙에 배치합니다. |
static int |
DEFAULT_JUSTIFICATION
타이틀 텍스트에 디폴트의 위치 가지런히 하고를 사용합니다. |
static int |
DEFAULT_POSITION
타이틀 텍스트에 디폴트의 수직 방향 배치를 사용합니다. |
protected static int |
EDGE_SPACING
|
static int |
LEADING
왼쪽에서 우측향의 경우는 타이틀 텍스트를 경계선의 좌측으로, 오른쪽으로부터 좌방향의 경우는 경계선의 우측으로 배치합니다. |
static int |
LEFT
타이틀 텍스트를 경계선의 좌측으로 배치합니다. |
static int |
RIGHT
타이틀 텍스트를 경계선의 우측으로 배치합니다. |
protected static int |
TEXT_INSET_H
|
protected static int |
TEXT_SPACING
|
protected String |
title
|
protected Color |
titleColor
|
protected Font |
titleFont
|
protected int |
titleJustification
|
protected int |
titlePosition
|
static int |
TOP
타이틀을 경계의 탑 라인의 중앙에 배치합니다. |
static int |
TRAILING
왼쪽에서 우측향의 경우는 타이틀 텍스트를 경계선의 우측으로, 오른쪽으로부터 좌방향의 경우는 경계선의 좌측으로 배치합니다. |
생성자 의 개요 | |
---|---|
TitledBorder (Border border)
지정된 경계와 빈 상태(empty)의 타이틀로, TitledBorder 의 인스턴스를 생성합니다. |
|
TitledBorder (Border border,
String title)
지정된 경계로 TitledBorder 의 인스턴스를 생성합니다. |
|
TitledBorder (Border border,
String title,
int titleJustification,
int titlePosition)
지정된 경계, 타이틀, 타이틀의 위치 가지런히 해 및 타이틀의 배치로, TitledBorder 의 인스턴스를 생성합니다. |
|
TitledBorder (Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont)
지정된 경계, 타이틀, 타이틀의 위치 가지런히 해 타이틀의 배치, 및 타이틀의 폰트로, TitledBorder 의 인스턴스를 생성합니다. |
|
TitledBorder (Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont,
Color titleColor)
지정된 경계, 타이틀, 타이틀의 위치 가지런히 해 타이틀의 배치, 타이틀의 폰트, 및 타이틀의 칼라로, TitledBorder 의 인스턴스를 생성합니다. |
|
TitledBorder (String title)
TitledBorder 인스턴스를 작성합니다. |
메소드의 개요 | |
---|---|
int |
getBaseline (Component c,
int width,
int height)
baseline를 돌려줍니다. |
Component.BaselineResizeBehavior |
getBaselineResizeBehavior (Component c)
사이즈의 변화에 맞추어 경계의 baseline가 어떻게 변화하는지를 나타내는 열거를 돌려줍니다. |
Border |
getBorder ()
타이틀 첨부 경계의 경계를 돌려줍니다. |
Insets |
getBorderInsets (Component c)
경계의 인 세트의 값을 돌려줍니다. |
Insets |
getBorderInsets (Component c,
Insets insets)
insets 파라미터를, 이 Border 의 현재의 Insets 로 다시 초기화합니다. |
protected Font |
getFont (Component c)
|
Dimension |
getMinimumSize (Component c)
경계와 타이틀의 전체를 표시하는 경우에 경계가 필요로 하는, 스페이스의 최소치를 돌려줍니다. |
String |
getTitle ()
타이틀 첨부 경계의 타이틀을 돌려줍니다. |
Color |
getTitleColor ()
타이틀 첨부 경계의 타이틀 칼라를 돌려줍니다. |
Font |
getTitleFont ()
타이틀 첨부 경계의 타이틀 폰트를 돌려줍니다. |
int |
getTitleJustification ()
타이틀 첨부 경계의 타이틀 위치 가지런히 하고를 돌려줍니다. |
int |
getTitlePosition ()
타이틀 첨부 경계의 타이틀 위치를 돌려줍니다. |
boolean |
isBorderOpaque ()
경계가 불투명한가 어떤가를 돌려줍니다. |
void |
paintBorder (Component c,
Graphics g,
int x,
int y,
int width,
int height)
지정된 컴퍼넌트의 경계를, 지정된 위치 및 사이즈로 그립니다. |
void |
setBorder (Border border)
타이틀 첨부 경계의 경계를 설정합니다. |
void |
setTitle (String title)
타이틀 첨부 경계의 타이틀을 설정합니다. |
void |
setTitleColor (Color titleColor)
타이틀 첨부 경계의 타이틀 칼라를 설정합니다. |
void |
setTitleFont (Font titleFont)
타이틀 첨부 경계의 타이틀 폰트를 설정합니다. |
void |
setTitleJustification (int titleJustification)
타이틀 첨부 경계의 타이틀 위치 가지런히 하고를 설정합니다. |
void |
setTitlePosition (int titlePosition)
타이틀 첨부 경계의 타이틀 위치를 설정합니다. |
클래스 javax.swing.border. AbstractBorder 로부터 상속된 메소드 |
---|
getInteriorRectangle , getInteriorRectangle |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
필드의 상세 |
---|
protected String title
protected Border border
protected int titlePosition
protected int titleJustification
protected Font titleFont
protected Color titleColor
public static final int DEFAULT_POSITION
public static final int ABOVE_TOP
public static final int TOP
public static final int BELOW_TOP
public static final int ABOVE_BOTTOM
public static final int BOTTOM
public static final int BELOW_BOTTOM
public static final int DEFAULT_JUSTIFICATION
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public static final int LEADING
public static final int TRAILING
protected static final int EDGE_SPACING
protected static final int TEXT_SPACING
protected static final int TEXT_INSET_H
생성자 의 상세 |
---|
public TitledBorder(String title)
title
- 경계에 표시하는 타이틀public TitledBorder(Border border)
border
- 경계public TitledBorder(Border border, String title)
border
- 경계title
- 경계에 표시하는 타이틀public TitledBorder(Border border, String title, int titleJustification, int titlePosition)
border
- 경계title
- 경계에 표시하는 타이틀titleJustification
- 타이틀의 위치 가지런히 하고titlePosition
- 타이틀의 위치public TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
border
- 경계title
- 경계에 표시하는 타이틀titleJustification
- 타이틀의 위치 가지런히 하고titlePosition
- 타이틀의 위치titleFont
- 타이틀을 draw 하는 폰트public TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
border
- 경계title
- 경계에 표시하는 타이틀titleJustification
- 타이틀의 위치 가지런히 하고titlePosition
- 타이틀의 위치titleFont
- 타이틀의 폰트titleColor
- 타이틀의 칼라메소드의 상세 |
---|
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 boolean isBorderOpaque()
Border
내의 isBorderOpaque
AbstractBorder
내의 isBorderOpaque
public String getTitle()
public Border getBorder()
public int getTitlePosition()
public int getTitleJustification()
public Font getTitleFont()
public Color getTitleColor()
public void setTitle(String title)
public void setBorder(Border border)
border
- 경계public void setTitlePosition(int titlePosition)
titlePosition
- 경계의 위치public void setTitleJustification(int titleJustification)
titleJustification
- 경계의 위치 가지런히 하고public void setTitleFont(Font titleFont)
titleFont
- 경계 타이틀의 폰트public void setTitleColor(Color titleColor)
titleColor
- 경계 타이틀의 칼라public Dimension getMinimumSize(Component c)
c
- 이 경계가 draw 되는 컴퍼넌트public int getBaseline(Component c, int width, int height)
AbstractBorder
내의 getBaseline
c
- 요구되는 Component
baselinewidth
- baseline를 취득하는 폭height
- baseline를 취득하는 높이
NullPointerException
IllegalArgumentException
- 폭 또는 높이가 0 보다 작은 경우JComponent.getBaseline(int, int)
public Component.BaselineResizeBehavior getBaselineResizeBehavior(Component c)
AbstractBorder
내의 getBaselineResizeBehavior
c
- baseline의 사이즈 변경의 동작을 돌려주는 Component
NullPointerException
JComponent.getBaseline(int, int)
protected Font getFont(Component c)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.