|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.BorderFactory
public class BorderFactory
표준적인 Border
객체를 제공하기 위한 팩토리 클래스입니다. 이 팩토리는, 가능한 장소이면 어디에서라도, 공유된 Border
인스턴스에의 참조를 분배합니다. 자세한 것은, 「The Java Tutorial」의「How to Use Borders」를 참조해 주세요.
메소드의 개요 | |
---|---|
static Border |
createBevelBorder (int type)
지정된 타입의 사영 경계를 생성합니다. |
static Border |
createBevelBorder (int type,
Color highlight,
Color shadow)
지정된 하이라이트 및 음영을 사용해, 지정된 타입의 사영 경계를 생성합니다. |
static Border |
createBevelBorder (int type,
Color highlightOuter,
Color highlightInner,
Color shadowOuter,
Color shadowInner)
하이라이트 영역 및 음영 영역의 안쪽 및 외측의 가장자리로 지정된 색을 사용해, 지정된 타입의 사영 경계를 생성합니다. |
static CompoundBorder |
createCompoundBorder ()
안쪽 및 외측의 가장자리가 null 의 복합 경계를 생성합니다. |
static CompoundBorder |
createCompoundBorder (Border outsideBorder,
Border insideBorder)
외측 및 안쪽의 가장자리에 사용하는 경계 객체를 지정해 복합 경계를 생성합니다. |
static Border |
createEmptyBorder ()
스페이스를 일절과들 없는 빈 상태(empty)의 경계를 생성합니다. |
static Border |
createEmptyBorder (int top,
int left,
int bottom,
int right)
상하 좌우의 옆의 폭을 지정해, 스페이스를 잡지만, draw를 실시하지 않는 빈 상태(empty)의 경계를 생성합니다. |
static Border |
createEtchedBorder ()
하이라이트 및 음영에 컴퍼넌트의 현재의 백그라운드 칼라를 사용해, 지정된 타입의 에칭 경계를 생성합니다. |
static Border |
createEtchedBorder (Color highlight,
Color shadow)
지정된 하이라이트 및 음영의 색을 사용해, 지정된 타입의 에칭 경계를 생성합니다. |
static Border |
createEtchedBorder (int type)
하이라이트 및 음영에 컴퍼넌트의 현재의 백그라운드 칼라를 사용해, 지정된 타입의 에칭 경계를 생성합니다. |
static Border |
createEtchedBorder (int type,
Color highlight,
Color shadow)
지정된 하이라이트 및 음영의 색을 사용해, 지정된 타입의 에칭 경계를 생성합니다. |
static Border |
createLineBorder (Color color)
지정된 색으로 직선 경계를 생성합니다. |
static Border |
createLineBorder (Color color,
int thickness)
지정된 색과 폭으로 직선 경계를 생성합니다. |
static Border |
createLoweredBevelBorder ()
움푹한 곳 사영의 인연을 가지는 경계를 생성합니다. |
static MatteBorder |
createMatteBorder (int top,
int left,
int bottom,
int right,
Color color)
있는 색으로 전부 칠해지는 장식인연 경계를 생성합니다. |
static MatteBorder |
createMatteBorder (int top,
int left,
int bottom,
int right,
Icon tileIcon)
지정된 아이콘의 복수의 타일로 구성되는 장식인연 경계를 생성합니다. |
static Border |
createRaisedBevelBorder ()
떠올라 사영의 인연을 가지는 경계를 생성합니다. |
static TitledBorder |
createTitledBorder (Border border)
빈 상태(empty)의 타이틀을 사용해 새로운 타이틀 경계를 작성합니다. |
static TitledBorder |
createTitledBorder (Border border,
String title)
기존의 경계에 타이틀을 추가합니다. |
static TitledBorder |
createTitledBorder (Border border,
String title,
int titleJustification,
int titlePosition)
텍스트 위치를 지정해, 디폴트의 폰트와 텍스트색 (현재의 Look & Feel 에 의해 결정)을 사용해, 기존의 경계에 타이틀을 추가합니다. |
static TitledBorder |
createTitledBorder (Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont)
텍스트 위치를 지정해, 디폴트의 폰트와 텍스트색 (현재의 Look & Feel 에 의해 결정)을 사용해, 기존의 경계에 타이틀을 추가합니다. |
static TitledBorder |
createTitledBorder (Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont,
Color titleColor)
텍스트 위치, 폰트, 및 텍스트색을 지정해, 기존의 경계에 타이틀을 추가합니다. |
static TitledBorder |
createTitledBorder (String title)
지정의 타이틀을 사용해 새로운 타이틀 경계를 생성합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
메소드의 상세 |
---|
public static Border createLineBorder(Color color)
color
- 직선에 사용하는 Color
Border
객체public static Border createLineBorder(Color color, int thickness)
createMatteBorder(int, int, int, int, Color)
를 사용합니다.
color
- 직선에 사용하는 Color
thickness
- 폭을 지정하는 정수치 (픽셀 단위)
Border
객체public static Border createRaisedBevelBorder()
Border
객체public static Border createLoweredBevelBorder()
Border
객체public static Border createBevelBorder(int type)
type
- BevelBorder.LOWERED
또는
BevelBorder.RAISED
의 어느 쪽인지를 지정하는 정수치
Border
객체public static Border createBevelBorder(int type, Color highlight, Color shadow)
type
- BevelBorder.LOWERED
또는
BevelBorder.RAISED
의 어느 쪽인지를 지정하는 정수치highlight
- 하이라이트에 사용하는 Color
객체shadow
- 음영에 사용하는 Color
객체
Border
객체public static Border createBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)
주:음영의 안쪽 및 외측의 색은, 움푹한 곳 사영 경계에 맞추어 교체됩니다.
type
- BevelBorder.LOWERED
또는
BevelBorder.RAISED
의 어느 쪽인지를 지정하는 정수치highlightOuter
- 하이라이트 영역의 외측의 가장자리에 사용하는 Color
객체highlightInner
- 하이라이트 영역의 안쪽의 가장자리에 사용하는 Color
객체shadowOuter
- 음영 영역의 외측의 가장자리에 사용하는 Color
객체shadowInner
- 음영 영역의 안쪽의 가장자리에 사용하는 Color
객체
Border
객체public static Border createEtchedBorder()
Border
객체public static Border createEtchedBorder(Color highlight, Color shadow)
highlight
- 경계의 하이라이트에 사용하는 Color
객체shadow
- 경계의 음영에 사용하는 Color
객체
Border
객체public static Border createEtchedBorder(int type)
type
- EtchedBorder.RAISED
, 또는 EtchedBorder.LOWERED
의 어느 쪽인지
Border
객체
IllegalArgumentException
- 타입이 EtchedBorder.RAISED
,
EtchedBorder.LOWERED
가 어느 쪽도 아닌 경우public static Border createEtchedBorder(int type, Color highlight, Color shadow)
type
- EtchedBorder.RAISED
, 또는 EtchedBorder.LOWERED
의 어느 쪽인지highlight
- 경계의 하이라이트에 사용하는 Color
객체shadow
- 경계의 음영에 사용하는 Color
객체
Border
객체public static TitledBorder createTitledBorder(String title)
title
- 타이틀의 텍스트를 포함하는 String
TitledBorder
객체public static TitledBorder createTitledBorder(Border border)
border
- 타이틀을 추가하는 Border
객체.
null
의 경우,Border
는
현재의 Look & Feel 로부터 결정됩니다.
TitledBorder
객체public static TitledBorder createTitledBorder(Border border, String title)
border
- 타이틀을 추가하는 Border
객체title
- 타이틀의 텍스트를 포함하는 String
TitledBorder
객체public static TitledBorder createTitledBorder(Border border, String title, int titleJustification, int titlePosition)
border
- 타이틀을 추가하는 Border
객체title
- 타이틀의 텍스트를 포함하는 String
titleJustification
- 타이틀의 위치 가지런히 하고를 지정하는 정수치.
다음 가운데 어떤 것인가가 됩니다.
TitledBorder.LEFT
TitledBorder.CENTER
TitledBorder.RIGHT
TitledBorder.LEADING
TitledBorder.TRAILING
TitledBorder.DEFAULT_JUSTIFICATION
(선두)
titlePosition
- 경계에 대한 텍스트의 수직 방향의 위치를 지정하는 정수치.
다음 가운데 어떤 것인가가 됩니다.
TitledBorder.ABOVE_TOP
TitledBorder.TOP
(맨 위의 선상)
TitledBorder.BELOW_TOP
TitledBorder.ABOVE_BOTTOM
TitledBorder.BOTTOM
(맨 밑의 선상)
TitledBorder.BELOW_BOTTOM
TitledBorder.DEFAULT_POSITION
(맨 위)
TitledBorder
객체public static TitledBorder createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
border
- 타이틀을 추가하는 Border
객체title
- 타이틀의 텍스트를 포함하는 String
titleJustification
- 타이틀의 위치 가지런히 하고를 지정하는 정수치.
다음 가운데 어떤 것인가가 됩니다.
TitledBorder.LEFT
TitledBorder.CENTER
TitledBorder.RIGHT
TitledBorder.LEADING
TitledBorder.TRAILING
TitledBorder.DEFAULT_JUSTIFICATION
(선두)
titlePosition
- 경계에 대한 텍스트의 수직 방향의 위치를 지정하는 정수치.
다음 가운데 어떤 것인가가 됩니다.
TitledBorder.ABOVE_TOP
TitledBorder.TOP
(맨 위의 선상)
TitledBorder.BELOW_TOP
TitledBorder.ABOVE_BOTTOM
TitledBorder.BOTTOM
(맨 밑의 선상)
TitledBorder.BELOW_BOTTOM
TitledBorder.DEFAULT_POSITION
(맨 위)
titleFont
- 타이틀의 폰트를 지정하는 Font 객체
public static TitledBorder createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
border
- 타이틀을 추가하는 Border
객체title
- 타이틀의 텍스트를 포함하는 String
titleJustification
- 타이틀의 위치 가지런히 하고를 지정하는 정수치.
다음 가운데 어떤 것인가가 됩니다.
TitledBorder.LEFT
TitledBorder.CENTER
TitledBorder.RIGHT
TitledBorder.LEADING
TitledBorder.TRAILING
TitledBorder.DEFAULT_JUSTIFICATION
(선두)
titlePosition
- 경계에 대한 텍스트의 수직 방향의 위치를 지정하는 정수치.
다음 가운데 어떤 것인가가 됩니다.
TitledBorder.ABOVE_TOP
TitledBorder.TOP
(맨 위의 선상)
TitledBorder.BELOW_TOP
TitledBorder.ABOVE_BOTTOM
TitledBorder.BOTTOM
(맨 밑의 선상)
TitledBorder.BELOW_BOTTOM
TitledBorder.DEFAULT_POSITION
(맨 위)
titleFont
- 타이틀의 폰트를 지정하는 Font
객체titleColor
- 타이틀의 색을 지정하는 Color
객체
TitledBorder
객체public static Border createEmptyBorder()
Border
객체public static Border createEmptyBorder(int top, int left, int bottom, int right)
top
- 상의옆의 폭을 지정하는 정수치 (픽셀 단위)left
- 왼쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)bottom
- 하의옆의 폭을 지정하는 정수치 (픽셀 단위)right
- 오른쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)
Border
객체public static CompoundBorder createCompoundBorder()
null
의 복합 경계를 생성합니다.
CompoundBorder
객체public static CompoundBorder createCompoundBorder(Border outsideBorder, Border insideBorder)
outsideBorder
- 복합 경계의 외측의 가장자리에 사용하는 Border
객체insideBorder
- 복합 경계의 안쪽의 가장자리에 사용하는 Border
객체
CompoundBorder
객체public static MatteBorder createMatteBorder(int top, int left, int bottom, int right, Color color)
top
- 상의옆의 폭을 지정하는 정수치 (픽셀 단위)left
- 왼쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)bottom
- 오른쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)right
- 하의옆의 폭을 지정하는 정수치 (픽셀 단위)color
- 경계에 사용하는 Color
MatteBorder
객체public static MatteBorder createMatteBorder(int top, int left, int bottom, int right, Icon tileIcon)
주:
아이콘이 로드 되지 않는 경우, 경계 영역은 회색에 페인트 됩니다.
top
- 상의옆의 폭을 지정하는 정수치 (픽셀 단위)left
- 왼쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)bottom
- 오른쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)right
- 하의옆의 폭을 지정하는 정수치 (픽셀 단위)tileIcon
- 경계의 타일에 사용되는 Icon
객체
MatteBorder
객체
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.