JComponent.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_JComponent__
  3. #define __javax_swing_JComponent__
  4. #pragma interface
  5. #include <java/awt/Container.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Color;
  14. class Component;
  15. class Container;
  16. class Dimension;
  17. class Font;
  18. class Graphics;
  19. class Image;
  20. class Insets;
  21. class Point;
  22. class Rectangle;
  23. namespace event
  24. {
  25. class ActionListener;
  26. class KeyEvent;
  27. class MouseEvent;
  28. }
  29. }
  30. namespace beans
  31. {
  32. class VetoableChangeListener;
  33. class VetoableChangeSupport;
  34. }
  35. }
  36. namespace javax
  37. {
  38. namespace accessibility
  39. {
  40. class AccessibleContext;
  41. }
  42. namespace swing
  43. {
  44. class ActionMap;
  45. class ComponentInputMap;
  46. class InputMap;
  47. class InputVerifier;
  48. class JComponent;
  49. class JPopupMenu;
  50. class JRootPane;
  51. class JToolTip;
  52. class KeyStroke;
  53. class TransferHandler;
  54. namespace border
  55. {
  56. class Border;
  57. }
  58. namespace event
  59. {
  60. class AncestorListener;
  61. class EventListenerList;
  62. }
  63. namespace plaf
  64. {
  65. class ComponentUI;
  66. }
  67. }
  68. }
  69. }
  70. class javax::swing::JComponent : public ::java::awt::Container
  71. {
  72. public:
  73. JComponent();
  74. private:
  75. ::java::util::Hashtable * getClientProperties();
  76. public:
  77. virtual ::java::lang::Object * getClientProperty(::java::lang::Object *);
  78. virtual void putClientProperty(::java::lang::Object *, ::java::lang::Object *);
  79. virtual void removeAncestorListener(::javax::swing::event::AncestorListener *);
  80. virtual void removeVetoableChangeListener(::java::beans::VetoableChangeListener *);
  81. virtual void addAncestorListener(::javax::swing::event::AncestorListener *);
  82. virtual void addVetoableChangeListener(::java::beans::VetoableChangeListener *);
  83. virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
  84. virtual JArray< ::javax::swing::event::AncestorListener * > * getAncestorListeners();
  85. virtual JArray< ::java::beans::VetoableChangeListener * > * getVetoableChangeListeners();
  86. public: // actually protected
  87. virtual void fireVetoableChange(::java::lang::String *, ::java::lang::Object *, ::java::lang::Object *);
  88. public:
  89. virtual void firePropertyChange(::java::lang::String *, jint, jint);
  90. virtual void firePropertyChange(::java::lang::String *, jboolean, jboolean);
  91. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  92. virtual jfloat getAlignmentX();
  93. virtual jfloat getAlignmentY();
  94. virtual jboolean getAutoscrolls();
  95. virtual void setBorder(::javax::swing::border::Border *);
  96. virtual ::javax::swing::border::Border * getBorder();
  97. virtual ::java::awt::Rectangle * getBounds(::java::awt::Rectangle *);
  98. public: // actually protected
  99. virtual ::java::awt::Graphics * getComponentGraphics(::java::awt::Graphics *);
  100. public:
  101. virtual jint getDebugGraphicsOptions();
  102. virtual ::java::awt::Insets * getInsets();
  103. virtual ::java::awt::Insets * getInsets(::java::awt::Insets *);
  104. virtual ::java::awt::Point * getLocation(::java::awt::Point *);
  105. virtual ::java::awt::Dimension * getMaximumSize();
  106. virtual ::java::awt::Dimension * getMinimumSize();
  107. virtual ::java::awt::Dimension * getPreferredSize();
  108. virtual ::java::awt::Component * getNextFocusableComponent();
  109. virtual JArray< ::javax::swing::KeyStroke * > * getRegisteredKeyStrokes();
  110. virtual ::javax::swing::JRootPane * getRootPane();
  111. virtual ::java::awt::Dimension * getSize(::java::awt::Dimension *);
  112. virtual ::javax::swing::JToolTip * createToolTip();
  113. virtual ::java::awt::Point * getToolTipLocation(::java::awt::event::MouseEvent *);
  114. virtual void setToolTipText(::java::lang::String *);
  115. virtual ::java::lang::String * getToolTipText();
  116. virtual ::java::lang::String * getToolTipText(::java::awt::event::MouseEvent *);
  117. virtual jboolean getInheritsPopupMenu();
  118. virtual void setInheritsPopupMenu(jboolean);
  119. virtual ::javax::swing::JPopupMenu * getComponentPopupMenu();
  120. virtual void setComponentPopupMenu(::javax::swing::JPopupMenu *);
  121. virtual ::java::awt::Container * getTopLevelAncestor();
  122. virtual void computeVisibleRect(::java::awt::Rectangle *);
  123. virtual ::java::awt::Rectangle * getVisibleRect();
  124. virtual void grabFocus();
  125. virtual jboolean isDoubleBuffered();
  126. static jboolean isLightweightComponent(::java::awt::Component *);
  127. virtual jboolean isManagingFocus();
  128. virtual jboolean isOpaque();
  129. virtual jboolean isOptimizedDrawingEnabled();
  130. virtual jboolean isPaintingTile();
  131. virtual jboolean isRequestFocusEnabled();
  132. virtual jboolean isValidateRoot();
  133. virtual void paint(::java::awt::Graphics *);
  134. private:
  135. jboolean isOccupiedByChild(jint, jint, jint, jint);
  136. void initializeDragBuffer();
  137. public: // actually protected
  138. virtual void paintBorder(::java::awt::Graphics *);
  139. virtual void paintChildren(::java::awt::Graphics *);
  140. private:
  141. jboolean isCompletelyObscured(jint, jint, jint, jint, jint);
  142. jboolean isPartiallyObscured(jint, jint, jint, jint, jint);
  143. public: // actually protected
  144. virtual void paintComponent(::java::awt::Graphics *);
  145. public:
  146. virtual void paintImmediately(jint, jint, jint, jint);
  147. virtual void paintImmediately(::java::awt::Rectangle *);
  148. public: // actually package-private
  149. virtual void paintImmediately2(jint, jint, jint, jint);
  150. virtual jboolean onTop();
  151. virtual jboolean isPaintRoot();
  152. private:
  153. void paintDoubleBuffered(jint, jint, jint, jint);
  154. void clipAndTranslateGraphics(::java::awt::Component *, ::java::awt::Component *, ::java::awt::Graphics *);
  155. public: // actually package-private
  156. virtual void paintSimple(::java::awt::Rectangle *);
  157. public: // actually protected
  158. virtual ::java::lang::String * paramString();
  159. public:
  160. virtual void registerKeyboardAction(::java::awt::event::ActionListener *, ::javax::swing::KeyStroke *, jint);
  161. virtual void registerKeyboardAction(::java::awt::event::ActionListener *, ::java::lang::String *, ::javax::swing::KeyStroke *, jint);
  162. virtual void setInputMap(jint, ::javax::swing::InputMap *);
  163. virtual ::javax::swing::InputMap * getInputMap(jint);
  164. virtual ::javax::swing::InputMap * getInputMap();
  165. virtual ::javax::swing::ActionMap * getActionMap();
  166. virtual void setActionMap(::javax::swing::ActionMap *);
  167. virtual jint getConditionForKeyStroke(::javax::swing::KeyStroke *);
  168. virtual ::java::awt::event::ActionListener * getActionForKeyStroke(::javax::swing::KeyStroke *);
  169. public: // actually protected
  170. virtual void processComponentKeyEvent(::java::awt::event::KeyEvent *);
  171. virtual void processKeyEvent(::java::awt::event::KeyEvent *);
  172. virtual jboolean processKeyBinding(::javax::swing::KeyStroke *, ::java::awt::event::KeyEvent *, jint, jboolean);
  173. public:
  174. virtual void unregisterKeyboardAction(::javax::swing::KeyStroke *);
  175. virtual void resetKeyboardActions();
  176. virtual void repaint(jlong, jint, jint, jint, jint);
  177. virtual void repaint(::java::awt::Rectangle *);
  178. virtual jboolean requestDefaultFocus();
  179. virtual void revalidate();
  180. virtual void scrollRectToVisible(::java::awt::Rectangle *);
  181. virtual void setAlignmentX(jfloat);
  182. virtual void setAlignmentY(jfloat);
  183. virtual void setAutoscrolls(jboolean);
  184. virtual void setDebugGraphicsOptions(jint);
  185. virtual void setDoubleBuffered(jboolean);
  186. virtual void setEnabled(jboolean);
  187. virtual void setFont(::java::awt::Font *);
  188. virtual void setBackground(::java::awt::Color *);
  189. virtual void setForeground(::java::awt::Color *);
  190. virtual void setNextFocusableComponent(::java::awt::Component *);
  191. virtual void setRequestFocusEnabled(jboolean);
  192. virtual ::javax::swing::TransferHandler * getTransferHandler();
  193. virtual void setTransferHandler(::javax::swing::TransferHandler *);
  194. virtual void setOpaque(jboolean);
  195. virtual void setVisible(jboolean);
  196. virtual void update(::java::awt::Graphics *);
  197. virtual ::java::lang::String * getUIClassID();
  198. public: // actually protected
  199. virtual void setUI(::javax::swing::plaf::ComponentUI *);
  200. public:
  201. virtual void updateUI();
  202. static ::java::util::Locale * getDefaultLocale();
  203. static void setDefaultLocale(::java::util::Locale *);
  204. virtual ::javax::swing::InputVerifier * getInputVerifier();
  205. virtual void setInputVerifier(::javax::swing::InputVerifier *);
  206. virtual jboolean getVerifyInputWhenFocusTarget();
  207. virtual void setVerifyInputWhenFocusTarget(jboolean);
  208. virtual void requestFocus();
  209. virtual jboolean requestFocus(jboolean);
  210. virtual jboolean requestFocusInWindow();
  211. public: // actually protected
  212. virtual jboolean requestFocusInWindow(jboolean);
  213. public:
  214. virtual void addNotify();
  215. virtual void removeNotify();
  216. virtual jboolean contains(jint, jint);
  217. virtual void disable();
  218. virtual void enable();
  219. virtual ::java::awt::Graphics * getGraphics();
  220. virtual jint getX();
  221. virtual jint getY();
  222. virtual jint getHeight();
  223. virtual jint getWidth();
  224. virtual void print(::java::awt::Graphics *);
  225. virtual void printAll(::java::awt::Graphics *);
  226. public: // actually protected
  227. virtual void printComponent(::java::awt::Graphics *);
  228. virtual void printChildren(::java::awt::Graphics *);
  229. virtual void printBorder(::java::awt::Graphics *);
  230. virtual void processMouseMotionEvent(::java::awt::event::MouseEvent *);
  231. public:
  232. virtual void reshape(jint, jint, jint, jint);
  233. public: // actually package-private
  234. virtual void fireAncestorEvent(::javax::swing::JComponent *, jint);
  235. virtual void updateComponentInputMap(::javax::swing::ComponentInputMap *);
  236. virtual void setUIProperty(::java::lang::String *, ::java::lang::Object *);
  237. private:
  238. static const jlong serialVersionUID = -7908749299918704233LL;
  239. public: // actually protected
  240. ::javax::accessibility::AccessibleContext * __attribute__((aligned(__alignof__( ::java::awt::Container)))) accessibleContext;
  241. public: // actually package-private
  242. jfloat alignmentX;
  243. jfloat alignmentY;
  244. ::javax::swing::border::Border * border;
  245. ::javax::swing::JPopupMenu * componentPopupMenu;
  246. jboolean inheritsPopupMenu;
  247. jboolean doubleBuffered;
  248. jint debugGraphicsOptions;
  249. jboolean opaque;
  250. public: // actually protected
  251. ::javax::swing::plaf::ComponentUI * ui;
  252. public: // actually package-private
  253. jboolean requestFocusEnabled;
  254. jboolean autoscrolls;
  255. static jboolean paintingDoubleBuffered;
  256. static jboolean isRepainting;
  257. public: // actually protected
  258. ::javax::swing::event::EventListenerList * listenerList;
  259. private:
  260. ::java::beans::VetoableChangeSupport * vetoableChangeSupport;
  261. ::java::util::Hashtable * clientProperties;
  262. ::javax::swing::InputMap * inputMap_whenFocused;
  263. ::javax::swing::InputMap * inputMap_whenAncestorOfFocused;
  264. ::javax::swing::ComponentInputMap * inputMap_whenInFocusedWindow;
  265. ::javax::swing::ActionMap * actionMap;
  266. jboolean verifyInputWhenFocusTarget;
  267. ::javax::swing::InputVerifier * inputVerifier;
  268. ::javax::swing::TransferHandler * transferHandler;
  269. jboolean paintingTile;
  270. ::java::awt::Image * dragBuffer;
  271. jboolean dragBufferInitialized;
  272. static ::java::awt::Rectangle * rectCache;
  273. static ::java::util::Locale * defaultLocale;
  274. public:
  275. static ::java::lang::String * TOOL_TIP_TEXT_KEY;
  276. static const jint UNDEFINED_CONDITION = -1;
  277. static const jint WHEN_FOCUSED = 0;
  278. static const jint WHEN_ANCESTOR_OF_FOCUSED_COMPONENT = 1;
  279. static const jint WHEN_IN_FOCUSED_WINDOW = 2;
  280. public: // actually package-private
  281. ::java::awt::Component * paintChild;
  282. private:
  283. jboolean clientOpaqueSet;
  284. jboolean clientAutoscrollsSet;
  285. public:
  286. static ::java::lang::Class class$;
  287. };
  288. #endif // __javax_swing_JComponent__