FixedHeightLayoutCache.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_tree_FixedHeightLayoutCache__
  3. #define __javax_swing_tree_FixedHeightLayoutCache__
  4. #pragma interface
  5. #include <javax/swing/tree/VariableHeightLayoutCache.h>
  6. extern "Java"
  7. {
  8. namespace java
  9. {
  10. namespace awt
  11. {
  12. class Rectangle;
  13. }
  14. }
  15. namespace javax
  16. {
  17. namespace swing
  18. {
  19. namespace event
  20. {
  21. class TreeModelEvent;
  22. }
  23. namespace tree
  24. {
  25. class FixedHeightLayoutCache;
  26. class TreeModel;
  27. class TreePath;
  28. }
  29. }
  30. }
  31. }
  32. class javax::swing::tree::FixedHeightLayoutCache : public ::javax::swing::tree::VariableHeightLayoutCache
  33. {
  34. public:
  35. FixedHeightLayoutCache();
  36. virtual jint getRowCount();
  37. private:
  38. void update();
  39. void countRows(::java::lang::Object *, ::java::lang::Object *, jint);
  40. public:
  41. virtual void invalidatePathBounds(::javax::swing::tree::TreePath *);
  42. virtual void invalidateSizes();
  43. virtual void setExpandedState(::javax::swing::tree::TreePath *, jboolean);
  44. virtual jboolean isExpanded(::javax::swing::tree::TreePath *);
  45. virtual ::java::awt::Rectangle * getBounds(::javax::swing::tree::TreePath *, ::java::awt::Rectangle *);
  46. virtual ::javax::swing::tree::TreePath * getPathForRow(jint);
  47. virtual jint getRowForPath(::javax::swing::tree::TreePath *);
  48. virtual ::javax::swing::tree::TreePath * getPathClosestTo(jint, jint);
  49. public: // actually package-private
  50. virtual jint distance(::java::awt::Rectangle *, jint, jint);
  51. public:
  52. virtual jint getVisibleChildCount(::javax::swing::tree::TreePath *);
  53. virtual ::java::util::Enumeration * getVisiblePathsFrom(::javax::swing::tree::TreePath *);
  54. virtual jboolean getExpandedState(::javax::swing::tree::TreePath *);
  55. virtual void treeNodesChanged(::javax::swing::event::TreeModelEvent *);
  56. virtual void treeNodesInserted(::javax::swing::event::TreeModelEvent *);
  57. virtual void treeNodesRemoved(::javax::swing::event::TreeModelEvent *);
  58. virtual void treeStructureChanged(::javax::swing::event::TreeModelEvent *);
  59. virtual void setModel(::javax::swing::tree::TreeModel *);
  60. virtual void setRootVisible(jboolean);
  61. virtual jint getPreferredHeight();
  62. virtual jint getPreferredWidth(::java::awt::Rectangle *);
  63. public: // actually protected
  64. virtual jboolean isFixedRowHeight();
  65. public: // actually package-private
  66. ::java::util::Set * __attribute__((aligned(__alignof__( ::javax::swing::tree::VariableHeightLayoutCache)))) expanded;
  67. ::java::util::Hashtable * nodes;
  68. ::java::util::Hashtable * row2node;
  69. jboolean dirty;
  70. jint totalHeight;
  71. jint maximalWidth;
  72. public:
  73. static ::java::lang::Class class$;
  74. };
  75. #endif // __javax_swing_tree_FixedHeightLayoutCache__