|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--javax.swing.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)
하이라이트 area 및 음영 area의 안쪽 및 외측의 가장자리로 지정된 색을 사용해, 지정된 타입의 사영 보더를 생성합니다. |
static CompoundBorder |
createCompoundBorder ()
안쪽 및 외측의 가장자리가 null 의 복합 보더를 생성합니다. |
static CompoundBorder |
createCompoundBorder (Border outsideBorder,
Border insideBorder)
외측 및 안쪽의 가장자리에 사용하는 보더 오브젝트를 지정해 복합 보더를 생성합니다. |
static Border |
createEmptyBorder ()
스페이스를 일절과들 없는 하늘의 보더를 생성합니다. |
static Border |
createEmptyBorder (int top,
int left,
int bottom,
int right)
상하 좌우의 옆의 폭을 지정해, 스페이스를 잡지만, 표현를 실시하지 않는 하늘의 보더를 생성합니다. |
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)
보더 오브젝트를 지정하는 하늘의 타이틀을 사용해 새로운 타이틀 보더를 생성합니다. |
static TitledBorder |
createTitledBorder (Border border,
String title)
타이틀의 텍스트를 지정해, 기존의 보더에 타이틀을 추가합니다. |
static TitledBorder |
createTitledBorder (Border border,
String title,
int titleJustification,
int titlePosition)
타이틀의 텍스트 및 그 위치를 지정해, 기존의 보더에 타이틀을 추가합니다. |
static TitledBorder |
createTitledBorder (Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont)
타이틀의 텍스트 및 그 위치와 폰트를 지정해, 기존의 보더에 타이틀을 추가합니다. |
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
- 하이라이트 area의 외측의 가장자리에 사용하는 Color
오브젝트highlightInner
- 하이라이트 area의 안쪽의 가장자리에 사용하는 Color
오브젝트shadowOuter
- 음영 area의 외측의 가장자리에 사용하는 Color
오브젝트shadowInner
- 음영 area의 안쪽의 가장자리에 사용하는 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
오브젝트
createTitledBorder
public static TitledBorder createTitledBorder(Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont)
- 타이틀의 텍스트 및 그 위치와 폰트를 지정해, 기존의 보더에 타이틀을 추가합니다. 현재의 Look & Feel 로 지정되고 있는 디폴트의 텍스트색이 사용됩니다.
- 파라미터:
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 오브젝트
반환값:
TitledBorder 오브젝트
createTitledBorder
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
오브젝트
createEmptyBorder
public static Border createEmptyBorder()
- 스페이스를 일절과들 없는 하늘의 보더를 생성합니다. 상하 좌우의 옆의 폭은 모두 제로가 됩니다.
- 반환값:
Border
오브젝트
createEmptyBorder
public static Border createEmptyBorder(int top,
int left,
int bottom,
int right)
- 상하 좌우의 옆의 폭을 지정해, 스페이스를 잡지만, 표현를 실시하지 않는 하늘의 보더를 생성합니다.
- 파라미터:
top
- 상의옆의 폭을 지정하는 정수치 (픽셀 단위)left
- 왼쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)bottom
- 오른쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)right
- 하의옆의 폭을 지정하는 정수치 (픽셀 단위)
- 반환값:
Border
오브젝트
createCompoundBorder
public static CompoundBorder createCompoundBorder()
- 안쪽 및 외측의 가장자리가
null
의 복합 보더를 생성합니다.
- 반환값:
CompoundBorder
오브젝트
createCompoundBorder
public static CompoundBorder createCompoundBorder(Border outsideBorder,
Border insideBorder)
- 외측 및 안쪽의 가장자리에 사용하는 보더 오브젝트를 지정해 복합 보더를 생성합니다.
- 파라미터:
outsideBorder
- 복합 보더의 외측의 가장자리에 사용하는 Border
오브젝트insideBorder
- 복합 보더의 안쪽의 가장자리에 사용하는 Border
오브젝트
- 반환값:
CompoundBorder
오브젝트
createMatteBorder
public static MatteBorder createMatteBorder(int top,
int left,
int bottom,
int right,
Color color)
- 어느 색으로 전부 칠해지는 장식인연 보더를 생성합니다. 직선 보더와의 차이는 각 보더의 치수를 개별적으로 지정할 수 있는 것입니다.
- 파라미터:
top
- 상의옆의 폭을 지정하는 정수치 (픽셀 단위)left
- 왼쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)bottom
- 오른쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)right
- 하의옆의 폭을 지정하는 정수치 (픽셀 단위)color
- 보더에 사용하는 Color
- 반환값:
MatteBorder
오브젝트
createMatteBorder
public static MatteBorder createMatteBorder(int top,
int left,
int bottom,
int right,
Icon tileIcon)
- 지정된 아이콘의 복수의 타일로 구성되는 장식인연 보더를 생성합니다. 지정된 아이콘의 복수의 카피를 옆에 늘어놓을 수 있어 보더 area에 전면에 깔 수 있습니다.
주:
아이콘이 로드 되지 않는 경우, 보더 area는 회색에 paint 됩니다.
- 파라미터:
top
- 상의옆의 폭을 지정하는 정수치 (픽셀 단위)left
- 왼쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)bottom
- 오른쪽의 옆의 폭을 지정하는 정수치 (픽셀 단위)right
- 하의옆의 폭을 지정하는 정수치 (픽셀 단위)tileIcon
- 보더의 타일에 사용되는 Icon
오브젝트
- 반환값:
MatteBorder
오브젝트
개요
패키지
클래스
사용
계층 트리
비추천 API
색인
헬프
JavaTM 2
Platform
Std. Ed. v1. 4.0
전의 클래스
다음의 클래스
프레임 있어
프레임 없음
모든 클래스
개요: 상자 | 필드 | constructor | 메소드
상세: 필드 | constructor | 메소드
버그의 보고와 기능의 리퀘스트
이외의 API 레퍼런스 및 개발자용 문서에 대해서는 Java 2 SDK SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다. Java, Java 2 D, 및 JDBC 는 미국 및 그 외의 나라에 있어서의 미국 Sun Microsystems, Inc. 의 상표 혹은 등록상표입니다.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.