GridBagLayout.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_awt_GridBagLayout__
  3. #define __java_awt_GridBagLayout__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Component;
  14. class Container;
  15. class Dimension;
  16. class GridBagConstraints;
  17. class GridBagLayout;
  18. class GridBagLayoutInfo;
  19. class Point;
  20. class Rectangle;
  21. }
  22. }
  23. }
  24. class java::awt::GridBagLayout : public ::java::lang::Object
  25. {
  26. public:
  27. GridBagLayout();
  28. private:
  29. jint sumIntArray(JArray< jint > *, jint);
  30. jint sumIntArray(JArray< jint > *);
  31. jdouble sumDoubleArray(JArray< jdouble > *);
  32. public:
  33. virtual void addLayoutComponent(::java::lang::String *, ::java::awt::Component *);
  34. virtual void removeLayoutComponent(::java::awt::Component *);
  35. virtual void addLayoutComponent(::java::awt::Component *, ::java::lang::Object *);
  36. virtual ::java::awt::Dimension * preferredLayoutSize(::java::awt::Container *);
  37. virtual ::java::awt::Dimension * minimumLayoutSize(::java::awt::Container *);
  38. virtual ::java::awt::Dimension * maximumLayoutSize(::java::awt::Container *);
  39. virtual void layoutContainer(::java::awt::Container *);
  40. virtual jfloat getLayoutAlignmentX(::java::awt::Container *);
  41. virtual jfloat getLayoutAlignmentY(::java::awt::Container *);
  42. virtual void invalidateLayout(::java::awt::Container *);
  43. virtual void setConstraints(::java::awt::Component *, ::java::awt::GridBagConstraints *);
  44. virtual ::java::awt::GridBagConstraints * getConstraints(::java::awt::Component *);
  45. public: // actually protected
  46. virtual ::java::awt::GridBagConstraints * lookupConstraints(::java::awt::Component *);
  47. private:
  48. ::java::awt::GridBagConstraints * lookupInternalConstraints(::java::awt::Component *);
  49. public:
  50. virtual ::java::awt::Point * getLayoutOrigin();
  51. virtual JArray< JArray< jint > * > * getLayoutDimensions();
  52. virtual JArray< JArray< jdouble > * > * getLayoutWeights();
  53. virtual ::java::awt::Point * location(jint, jint);
  54. virtual ::java::lang::String * toString();
  55. public: // actually protected
  56. virtual void AdjustForGravity(::java::awt::GridBagConstraints *, ::java::awt::Rectangle *);
  57. virtual void ArrangeGrid(::java::awt::Container *);
  58. virtual ::java::awt::GridBagLayoutInfo * GetLayoutInfo(::java::awt::Container *, jint);
  59. virtual ::java::awt::Dimension * GetMinSize(::java::awt::Container *, ::java::awt::GridBagLayoutInfo *);
  60. virtual ::java::awt::Dimension * getMinSize(::java::awt::Container *, ::java::awt::GridBagLayoutInfo *);
  61. private:
  62. void sortBySpan(::java::awt::Component *, jint, ::java::util::ArrayList *, jboolean);
  63. void distributeSizeAndWeight(jint, jdouble, jint, jint, JArray< jint > *, JArray< jdouble > *);
  64. void calcCellWeights(jdouble, JArray< jdouble > *, jint, jint);
  65. void calcCellSizes(JArray< jint > *, JArray< jdouble > *, jint);
  66. void dumpLayoutInfo(::java::awt::GridBagLayoutInfo *);
  67. void dumpArray(JArray< jint > *);
  68. void dumpArray(JArray< jdouble > *);
  69. public: // actually protected
  70. virtual void arrangeGrid(::java::awt::Container *);
  71. virtual ::java::awt::GridBagLayoutInfo * getLayoutInfo(::java::awt::Container *, jint);
  72. virtual void adjustForGravity(::java::awt::GridBagConstraints *, ::java::awt::Rectangle *);
  73. private:
  74. static const jlong serialVersionUID = 8838754796412211005LL;
  75. public: // actually protected
  76. static const jint MINSIZE = 1;
  77. static const jint PREFERREDSIZE = 2;
  78. static const jint MAXGRIDSIZE = 512;
  79. ::java::util::Hashtable * __attribute__((aligned(__alignof__( ::java::lang::Object)))) comptable;
  80. private:
  81. ::java::util::Hashtable * internalcomptable;
  82. public: // actually protected
  83. ::java::awt::GridBagLayoutInfo * layoutInfo;
  84. ::java::awt::GridBagConstraints * defaultConstraints;
  85. public:
  86. JArray< jdouble > * columnWeights;
  87. JArray< jint > * columnWidths;
  88. JArray< jdouble > * rowWeights;
  89. JArray< jint > * rowHeights;
  90. static ::java::lang::Class class$;
  91. };
  92. #endif // __java_awt_GridBagLayout__