|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
public interface AccessibleComponent
AccessibleComponent 인터페이스는, 화면에 draw 되는 모든 객체에 의해 지원될 필요가 있습니다. 이 인터페이스는, 객체의 그래피컬한 표현을 판정 및 설정하기 위한 표준적인 기구를 사용자 보조 기능에 제공합니다. 어플리케이션은, 객체의 AccessibleContext 를 취득하고 나서,AccessibleContext.getAccessibleComponent() 메소드를 호출하면(자), 객체가 AccessibleComponent 인터페이스를 지원할지 어떨지를 판정할 수 있습니다. 반환값이 null 가 아니면, 그 객체는 이 인터페이스를 지원하고 있습니다.
Accessible ,
Accessible.getAccessibleContext() ,
AccessibleContext ,
AccessibleContext.getAccessibleComponent() | 메소드의 개요 | |
|---|---|
void |
addFocusListener (FocusListener l)
이 컴퍼넌트로부터의 포커스 이벤트를 받는, 지정된 포커스 청취자를 추가합니다. |
boolean |
contains (Point p)
지정된 포인트가 객체의 경계의 안쪽에 있을지 어떨지를 판정합니다. |
Accessible |
getAccessibleAt (Point p)
로컬 좌표 포인트에 보관 유지된 Accessible 의 아이가 있는 경우는 그것을 돌려줍니다. |
Color |
getBackground ()
이 객체의 백그라운드 칼라를 가져옵니다. |
Rectangle |
getBounds ()
객체의 경계를, Rectangle 객체의 형식에서 돌려줍니다. |
Cursor |
getCursor ()
이 객체의 커서를 돌려줍니다. |
Font |
getFont ()
이 객체의 폰트를 돌려줍니다. |
FontMetrics |
getFontMetrics (Font f)
객체의 폰트메트릭스를 돌려줍니다. |
Color |
getForeground ()
이 객체의 foreground 칼라를 가져옵니다. |
Point |
getLocation ()
화면의 좌표 공간에서 객체의 좌상구석을 지정하는 포인트의 형식에서, 부모를 기준으로 한 객체의 위치를 가져옵니다. |
Point |
getLocationOnScreen ()
화면상의 객체의 위치를 돌려줍니다. |
Dimension |
getSize ()
객체의 사이즈를, Dimension 객체의 형식에서 돌려줍니다. |
boolean |
isEnabled ()
객체가 유효한가 어떤가를 판정합니다. |
boolean |
isFocusTraversable ()
객체가 포커스를 받아들여질지 어떨지를 돌려줍니다. |
boolean |
isShowing ()
객체가 표시되고 있는지 어떤지를 판정합니다. |
boolean |
isVisible ()
객체가 가시인가 어떤가를 판정합니다. |
void |
removeFocusListener (FocusListener l)
지정된 포커스 청취자를 삭제해, 컴퍼넌트로부터의 포커스 이벤트를 받지 않게 합니다. |
void |
requestFocus ()
객체의 포커스를 요구합니다. |
void |
setBackground (Color c)
이 객체의 백그라운드 칼라를 설정합니다. |
void |
setBounds (Rectangle r)
객체의 경계를, Rectangle 객체의 형식에서 설정합니다. |
void |
setCursor (Cursor cursor)
이 객체의 커서를 설정합니다. |
void |
setEnabled (boolean b)
객체를 사용 가능한 상태로 설정합니다. |
void |
setFont (Font f)
이 객체의 폰트를 설정합니다. |
void |
setForeground (Color c)
이 객체의 foreground 칼라를 설정합니다. |
void |
setLocation (Point p)
부모를 기준으로 해 객체의 위치를 설정합니다. |
void |
setSize (Dimension d)
객체가 지정된 폭과 높이를 가지도록(듯이), 객체의 사이즈를 변경합니다. |
void |
setVisible (boolean b)
객체의 가시 상태를 설정합니다. |
| 메소드의 상세 |
|---|
Color getBackground()
setBackground(java.awt.Color) void setBackground(Color c)
c - 백그라운드의 신규 ColorsetBackground(java.awt.Color) Color getForeground()
setForeground(java.awt.Color) void setForeground(Color c)
c - foreground의 신규 ColorgetForeground() Cursor getCursor()
setCursor(java.awt.Cursor) void setCursor(Cursor cursor)
cursor - 객체의 신규 CursorgetCursor() Font getFont()
setFont(java.awt.Font) void setFont(Font f)
f - 객체의 신규 FontgetFont() FontMetrics getFontMetrics(Font f)
f - Font
getFont() boolean isEnabled()
setEnabled(boolean) ,
AccessibleContext.getAccessibleStateSet() ,
AccessibleState.ENABLED ,
AccessibleStateSet void setEnabled(boolean b)
b - true 의 경우는 객체를 사용 가능하게 해, 그렇지 않은 경우는 사용 불가로 하는isEnabled() boolean isVisible()
가시의 객체에서는, AccessibleStateSet 로 AccessibleState.VISIBLE 상태도 설정됩니다.
setVisible(boolean) ,
AccessibleContext.getAccessibleStateSet() ,
AccessibleState.VISIBLE ,
AccessibleStateSet void setVisible(boolean b)
b - true 의 경우는 객체를 표시해, 그렇지 않은 경우는 객체를 숨기는isVisible() boolean isShowing()
boolean contains(Point p)
p - 객체의 좌표 체계를 기준으로 한, 포인트의 상대 위치
getBounds() Point getLocationOnScreen()
getBounds() ,
getLocation() Point getLocation()
getBounds() ,
getLocationOnScreen() void setLocation(Point p)
p - 좌상구석의 새로운 위치getLocation() Rectangle getBounds()
contains(java.awt.Point) void setBounds(Rectangle r)
r - 컴퍼넌트의 경계를 나타내는 구형getBounds() Dimension getSize()
setSize(java.awt.Dimension) void setSize(Dimension d)
d - 객체의 신규 사이즈를 지정하는 치수getSize() Accessible getAccessibleAt(Point p)
p - 이 객체의 좌표계를 기준으로 한, 포인트의 상대 위치
boolean isFocusTraversable()
AccessibleContext.getAccessibleStateSet() ,
AccessibleState.FOCUSABLE ,
AccessibleState.FOCUSED ,
AccessibleStateSet void requestFocus()
isFocusTraversable() void addFocusListener(FocusListener l)
l - 포커스 청취자removeFocusListener(java.awt.event.FocusListener) void removeFocusListener(FocusListener l)
l - 포커스 청취자addFocusListener(java.awt.event.FocusListener)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.