2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_swing_SwingUtilities__
5 #define __javax_swing_SwingUtilities__
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
34 namespace accessibility
37 class AccessibleStateSet
;
49 class SwingUtilities$OwnerFrame
;
54 class javax::swing::SwingUtilities
: public ::java::lang::Object
59 static ::java::awt::Rectangle
* calculateInnerArea(::javax::swing::JComponent
*, ::java::awt::Rectangle
*);
60 static ::java::awt::Component
* findFocusOwner(::java::awt::Component
*);
61 static ::javax::accessibility::Accessible
* getAccessibleAt(::java::awt::Component
*, ::java::awt::Point
*);
62 static ::javax::accessibility::Accessible
* getAccessibleChild(::java::awt::Component
*, jint
);
63 static jint
getAccessibleChildrenCount(::java::awt::Component
*);
64 static jint
getAccessibleIndexInParent(::java::awt::Component
*);
65 static ::javax::accessibility::AccessibleStateSet
* getAccessibleStateSet(::java::awt::Component
*);
66 static ::java::awt::Rectangle
* getLocalBounds(::java::awt::Component
*);
67 static ::javax::swing::JRootPane
* getRootPane(::java::awt::Component
*);
68 static ::java::awt::Container
* getAncestorNamed(::java::lang::String
*, ::java::awt::Component
*);
69 static ::java::awt::Container
* getAncestorOfClass(::java::lang::Class
*, ::java::awt::Component
*);
70 static ::java::awt::Window
* getWindowAncestor(::java::awt::Component
*);
71 static ::java::awt::Window
* windowForComponent(::java::awt::Component
*);
72 static ::java::awt::Component
* getRoot(::java::awt::Component
*);
73 static jboolean
isDescendingFrom(::java::awt::Component
*, ::java::awt::Component
*);
74 static ::java::awt::Component
* getDeepestComponentAt(::java::awt::Component
*, jint
, jint
);
75 static void convertPointToScreen(::java::awt::Point
*, ::java::awt::Component
*);
76 static void convertPointFromScreen(::java::awt::Point
*, ::java::awt::Component
*);
77 static ::java::awt::Point
* convertPoint(::java::awt::Component
*, jint
, jint
, ::java::awt::Component
*);
78 static ::java::awt::Point
* convertPoint(::java::awt::Component
*, ::java::awt::Point
*, ::java::awt::Component
*);
79 static ::java::awt::Rectangle
* convertRectangle(::java::awt::Component
*, ::java::awt::Rectangle
*, ::java::awt::Component
*);
80 static ::java::awt::event::MouseEvent
* convertMouseEvent(::java::awt::Component
*, ::java::awt::event::MouseEvent
*, ::java::awt::Component
*);
81 static void updateComponentTreeUI(::java::awt::Component
*);
83 static void updateComponentTreeUIImpl(::java::awt::Component
*);
85 static ::java::lang::String
* layoutCompoundLabel(::javax::swing::JComponent
*, ::java::awt::FontMetrics
*, ::java::lang::String
*, ::javax::swing::Icon
*, jint
, jint
, jint
, jint
, ::java::awt::Rectangle
*, ::java::awt::Rectangle
*, ::java::awt::Rectangle
*, jint
);
86 static ::java::lang::String
* layoutCompoundLabel(::java::awt::FontMetrics
*, ::java::lang::String
*, ::javax::swing::Icon
*, jint
, jint
, jint
, jint
, ::java::awt::Rectangle
*, ::java::awt::Rectangle
*, ::java::awt::Rectangle
*, jint
);
88 static ::java::lang::String
* layoutCompoundLabelImpl(::javax::swing::JComponent
*, ::java::awt::FontMetrics
*, ::java::lang::String
*, ::javax::swing::Icon
*, jint
, jint
, jint
, jint
, ::java::awt::Rectangle
*, ::java::awt::Rectangle
*, ::java::awt::Rectangle
*, jint
);
89 static ::java::lang::String
* clipString(::javax::swing::JComponent
*, ::java::awt::FontMetrics
*, ::java::lang::String
*, jint
);
91 static void invokeLater(::java::lang::Runnable
*);
92 static void invokeAndWait(::java::lang::Runnable
*);
93 static jboolean
isEventDispatchThread();
94 static void paintComponent(::java::awt::Graphics
*, ::java::awt::Component
*, ::java::awt::Container
*, jint
, jint
, jint
, jint
);
95 static void paintComponent(::java::awt::Graphics
*, ::java::awt::Component
*, ::java::awt::Container
*, ::java::awt::Rectangle
*);
96 public: // actually package-private
97 static ::java::awt::Window
* getOwnerFrame(::java::awt::Window
*);
99 static jboolean
isLeftMouseButton(::java::awt::event::MouseEvent
*);
100 static jboolean
isMiddleMouseButton(::java::awt::event::MouseEvent
*);
101 static jboolean
isRightMouseButton(::java::awt::event::MouseEvent
*);
102 static jboolean
notifyAction(::javax::swing::Action
*, ::javax::swing::KeyStroke
*, ::java::awt::event::KeyEvent
*, ::java::lang::Object
*, jint
);
103 static void replaceUIActionMap(::javax::swing::JComponent
*, ::javax::swing::ActionMap
*);
104 static void replaceUIInputMap(::javax::swing::JComponent
*, jint
, ::javax::swing::InputMap
*);
105 static JArray
< ::java::awt::Rectangle
* > * computeDifference(::java::awt::Rectangle
*, ::java::awt::Rectangle
*);
106 static ::java::awt::Rectangle
* computeIntersection(jint
, jint
, jint
, jint
, ::java::awt::Rectangle
*);
107 static jint
computeStringWidth(::java::awt::FontMetrics
*, ::java::lang::String
*);
108 static ::java::awt::Rectangle
* computeUnion(jint
, jint
, jint
, jint
, ::java::awt::Rectangle
*);
109 static jboolean
isRectangleContainingRectangle(::java::awt::Rectangle
*, ::java::awt::Rectangle
*);
110 static ::javax::swing::InputMap
* getUIInputMap(::javax::swing::JComponent
*, jint
);
111 static ::javax::swing::ActionMap
* getUIActionMap(::javax::swing::JComponent
*);
112 static jboolean
processKeyBindings(::java::awt::event::KeyEvent
*);
113 public: // actually package-private
114 static ::java::lang::String
* convertHorizontalAlignmentCodeToString(jint
);
115 static ::java::lang::String
* convertVerticalAlignmentCodeToString(jint
);
116 static ::java::lang::String
* convertWindowConstantToString(jint
);
117 static void convertRectangleToAncestor(::java::awt::Component
*, ::java::awt::Rectangle
*, ::java::awt::Component
*);
119 static ::javax::swing::SwingUtilities$OwnerFrame
* ownerFrame
;
121 static ::java::lang::Class
class$
;
124 #endif // __javax_swing_SwingUtilities__