1 7 8 package javax.accessibility; 9 10 import java.awt.*; 11 import java.awt.event.*; 12 13 34 public interface AccessibleComponent { 35 36 43 public Color getBackground(); 44 45 51 public void setBackground(Color c); 52 53 60 public Color getForeground(); 61 62 68 public void setForeground(Color c); 69 70 76 public Cursor getCursor(); 77 78 84 public void setCursor(Cursor cursor); 85 86 92 public Font getFont(); 93 94 100 public void setFont(Font f); 101 102 109 public FontMetrics getFontMetrics(Font f); 110 111 122 public boolean isEnabled(); 123 124 130 public void setEnabled(boolean b); 131 132 147 public boolean isVisible(); 148 149 155 public void setVisible(boolean b); 156 157 166 public boolean isShowing(); 167 168 177 public boolean contains(Point p); 178 179 187 public Point getLocationOnScreen(); 188 189 200 public Point getLocation(); 201 202 207 public void setLocation(Point p); 208 209 218 public Rectangle getBounds(); 219 220 228 public void setBounds(Rectangle r); 229 230 240 public Dimension getSize(); 241 242 248 public void setSize(Dimension d); 249 250 258 public Accessible getAccessibleAt(Point p); 259 260 271 public boolean isFocusTraversable(); 272 273 279 public void requestFocus(); 280 281 288 public void addFocusListener(FocusListener l); 289 290 297 public void removeFocusListener(FocusListener l); 298 } 299 | Popular Tags |