01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /**
19: * @author Dennis Ushakov
20: * @version $Revision$
21: */package javax.accessibility;
22:
23: import java.awt.Cursor;
24: import java.awt.Color;
25: import java.awt.Dimension;
26: import java.awt.Font;
27: import java.awt.FontMetrics;
28: import java.awt.Point;
29: import java.awt.Rectangle;
30: import java.awt.event.FocusListener;
31:
32: public interface AccessibleComponent {
33: Color getBackground();
34:
35: void setBackground(final Color c);
36:
37: Color getForeground();
38:
39: void setForeground(Color c);
40:
41: Cursor getCursor();
42:
43: void setCursor(Cursor cursor);
44:
45: Font getFont();
46:
47: void setFont(Font f);
48:
49: FontMetrics getFontMetrics(Font f);
50:
51: boolean isEnabled();
52:
53: void setEnabled(boolean b);
54:
55: boolean isVisible();
56:
57: void setVisible(boolean b);
58:
59: boolean isShowing();
60:
61: boolean contains(Point p);
62:
63: Point getLocationOnScreen();
64:
65: Point getLocation();
66:
67: void setLocation(Point p);
68:
69: Rectangle getBounds();
70:
71: void setBounds(Rectangle r);
72:
73: Dimension getSize();
74:
75: void setSize(Dimension d);
76:
77: Accessible getAccessibleAt(Point p);
78:
79: boolean isFocusTraversable();
80:
81: void requestFocus();
82:
83: void addFocusListener(FocusListener l);
84:
85: void removeFocusListener(FocusListener l);
86: }
|