public interface AccessibleComponent 
      AccessibleContext.getAccessibleComponent()方法来确定对象是否支持AccessibleComponent接口。 
       如果返回值不为空,则该对象支持该接口。 
      | Modifier and Type | Method and Description | 
|---|---|
| void | addFocusListener(FocusListener l)
              添加指定的焦点侦听器以从该组件接收焦点事件。 
             | 
| boolean | contains(Point p)
              检查指定点是否在该对象的边界内,其中该点的x和y坐标被定义为相对于该对象的坐标系。 
             | 
| Accessible | getAccessibleAt(Point p)
              返回Accessible小组(如果存在)包含在本地坐标Point。 
             | 
| Color | getBackground()
              获取此对象的背景颜色。 
             | 
| Rectangle | getBounds()
              以Rectangle对象的形式获取此对象的边界。 
             | 
| Cursor | getCursor()
              获取此对象的Cursor。 
             | 
| Font | getFont()
              获取此对象的字体。 
             | 
| FontMetrics | getFontMetrics(Font f)
              获取此对象的FontMetrics。 
             | 
| Color | getForeground()
              获取此对象的前景色。 
             | 
| 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)
              设置此对象的前景色。 
             | 
| void | setLocation(Point p)
              设置对象相对于父对象的位置。 
             | 
| void | setSize(Dimension d)
              调整此对象的大小,使其具有宽度和高度。 
             | 
| void | setVisible(boolean b)
              设置对象的可见状态。 
             | 
Color getBackground()
setBackground(java.awt.Color) 
           void setBackground(Color c)
c - 新的背景颜色 
           setBackground(java.awt.Color) 
           Color getForeground()
setForeground(java.awt.Color) 
           void setForeground(Color c)
c - 
            c的新颜色 
           getForeground() 
           Cursor getCursor()
setCursor(java.awt.Cursor) 
           void setCursor(Cursor cursor)
cursor - 对象的新光标 
           getCursor() 
           Font getFont()
setFont(java.awt.Font) 
           FontMetrics getFontMetrics(Font f)
f - 字体 
           getFont() 
           boolean isEnabled()
setEnabled(boolean) , AccessibleContext.getAccessibleStateSet() , AccessibleState.ENABLED , AccessibleStateSet 
           void setEnabled(boolean b)
b - 如果为true,则启用此对象; 
            否则,禁用它 
           isEnabled() 
           boolean isVisible()
可见的对象也将在AccessibleStateSets中设置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) 
           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) 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.