VariableHeightLayoutCache.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_tree_VariableHeightLayoutCache__
  3. #define __javax_swing_tree_VariableHeightLayoutCache__
  4. #pragma interface
  5. #include <javax/swing/tree/AbstractLayoutCache.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 AbstractLayoutCache$NodeDimensions;
  26. class TreeModel;
  27. class TreePath;
  28. class VariableHeightLayoutCache;
  29. }
  30. }
  31. }
  32. }
  33. class javax::swing::tree::VariableHeightLayoutCache : public ::javax::swing::tree::AbstractLayoutCache
  34. {
  35. public:
  36. VariableHeightLayoutCache();
  37. virtual jint getRowCount();
  38. private:
  39. void update();
  40. jint countRows(::java::lang::Object *, ::java::lang::Object *, jint, jint);
  41. public:
  42. virtual void invalidatePathBounds(::javax::swing::tree::TreePath *);
  43. virtual void invalidateSizes();
  44. virtual void setExpandedState(::javax::swing::tree::TreePath *, jboolean);
  45. virtual jboolean isExpanded(::javax::swing::tree::TreePath *);
  46. virtual ::java::awt::Rectangle * getBounds(::javax::swing::tree::TreePath *, ::java::awt::Rectangle *);
  47. virtual ::javax::swing::tree::TreePath * getPathForRow(jint);
  48. virtual jint getRowForPath(::javax::swing::tree::TreePath *);
  49. virtual ::javax::swing::tree::TreePath * getPathClosestTo(jint, jint);
  50. public: // actually package-private
  51. virtual jint distance(::java::awt::Rectangle *, jint, jint);
  52. public:
  53. virtual jint getVisibleChildCount(::javax::swing::tree::TreePath *);
  54. virtual ::java::util::Enumeration * getVisiblePathsFrom(::javax::swing::tree::TreePath *);
  55. virtual jboolean getExpandedState(::javax::swing::tree::TreePath *);
  56. virtual void treeNodesChanged(::javax::swing::event::TreeModelEvent *);
  57. virtual void treeNodesInserted(::javax::swing::event::TreeModelEvent *);
  58. virtual void treeNodesRemoved(::javax::swing::event::TreeModelEvent *);
  59. virtual void treeStructureChanged(::javax::swing::event::TreeModelEvent *);
  60. virtual void setModel(::javax::swing::tree::TreeModel *);
  61. virtual void setRootVisible(jboolean);
  62. virtual jint getPreferredHeight();
  63. virtual jint getPreferredWidth(::java::awt::Rectangle *);
  64. virtual void setNodeDimensions(::javax::swing::tree::AbstractLayoutCache$NodeDimensions *);
  65. virtual void setRowHeight(jint);
  66. private:
  67. static ::java::awt::Rectangle * RECT_CACHE;
  68. public: // actually package-private
  69. ::java::util::Set * __attribute__((aligned(__alignof__( ::javax::swing::tree::AbstractLayoutCache)))) expanded;
  70. ::java::util::Hashtable * nodes;
  71. ::java::util::ArrayList * row2node;
  72. jboolean dirty;
  73. jint totalHeight;
  74. jint maximalWidth;
  75. public:
  76. static ::java::lang::Class class$;
  77. };
  78. #endif // __javax_swing_tree_VariableHeightLayoutCache__