summaryrefslogtreecommitdiff
path: root/libjava/java/awt/GridBagLayout.h
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/GridBagLayout.h')
-rw-r--r--libjava/java/awt/GridBagLayout.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/libjava/java/awt/GridBagLayout.h b/libjava/java/awt/GridBagLayout.h
new file mode 100644
index 00000000000..b553aff4eb3
--- /dev/null
+++ b/libjava/java/awt/GridBagLayout.h
@@ -0,0 +1,100 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __java_awt_GridBagLayout__
+#define __java_awt_GridBagLayout__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace java
+ {
+ namespace awt
+ {
+ class Component;
+ class Container;
+ class Dimension;
+ class GridBagConstraints;
+ class GridBagLayout;
+ class GridBagLayoutInfo;
+ class Point;
+ class Rectangle;
+ }
+ }
+}
+
+class java::awt::GridBagLayout : public ::java::lang::Object
+{
+
+public:
+ GridBagLayout();
+private:
+ jint sumIntArray(JArray< jint > *, jint);
+ jint sumIntArray(JArray< jint > *);
+ jdouble sumDoubleArray(JArray< jdouble > *);
+public:
+ virtual void addLayoutComponent(::java::lang::String *, ::java::awt::Component *);
+ virtual void removeLayoutComponent(::java::awt::Component *);
+ virtual void addLayoutComponent(::java::awt::Component *, ::java::lang::Object *);
+ virtual ::java::awt::Dimension * preferredLayoutSize(::java::awt::Container *);
+ virtual ::java::awt::Dimension * minimumLayoutSize(::java::awt::Container *);
+ virtual ::java::awt::Dimension * maximumLayoutSize(::java::awt::Container *);
+ virtual void layoutContainer(::java::awt::Container *);
+ virtual jfloat getLayoutAlignmentX(::java::awt::Container *);
+ virtual jfloat getLayoutAlignmentY(::java::awt::Container *);
+ virtual void invalidateLayout(::java::awt::Container *);
+ virtual void setConstraints(::java::awt::Component *, ::java::awt::GridBagConstraints *);
+ virtual ::java::awt::GridBagConstraints * getConstraints(::java::awt::Component *);
+public: // actually protected
+ virtual ::java::awt::GridBagConstraints * lookupConstraints(::java::awt::Component *);
+private:
+ ::java::awt::GridBagConstraints * lookupInternalConstraints(::java::awt::Component *);
+public:
+ virtual ::java::awt::Point * getLayoutOrigin();
+ virtual JArray< JArray< jint > * > * getLayoutDimensions();
+ virtual JArray< JArray< jdouble > * > * getLayoutWeights();
+ virtual ::java::awt::Point * location(jint, jint);
+ virtual ::java::lang::String * toString();
+public: // actually protected
+ virtual void AdjustForGravity(::java::awt::GridBagConstraints *, ::java::awt::Rectangle *);
+ virtual void ArrangeGrid(::java::awt::Container *);
+ virtual ::java::awt::GridBagLayoutInfo * GetLayoutInfo(::java::awt::Container *, jint);
+ virtual ::java::awt::Dimension * GetMinSize(::java::awt::Container *, ::java::awt::GridBagLayoutInfo *);
+ virtual ::java::awt::Dimension * getMinSize(::java::awt::Container *, ::java::awt::GridBagLayoutInfo *);
+private:
+ void sortBySpan(::java::awt::Component *, jint, ::java::util::ArrayList *, jboolean);
+ void distributeSizeAndWeight(jint, jdouble, jint, jint, JArray< jint > *, JArray< jdouble > *);
+ void calcCellWeights(jdouble, JArray< jdouble > *, jint, jint);
+ void calcCellSizes(JArray< jint > *, JArray< jdouble > *, jint);
+ void dumpLayoutInfo(::java::awt::GridBagLayoutInfo *);
+ void dumpArray(JArray< jint > *);
+ void dumpArray(JArray< jdouble > *);
+public: // actually protected
+ virtual void arrangeGrid(::java::awt::Container *);
+ virtual ::java::awt::GridBagLayoutInfo * getLayoutInfo(::java::awt::Container *, jint);
+ virtual void adjustForGravity(::java::awt::GridBagConstraints *, ::java::awt::Rectangle *);
+private:
+ static const jlong serialVersionUID = 8838754796412211005LL;
+public: // actually protected
+ static const jint MINSIZE = 1;
+ static const jint PREFERREDSIZE = 2;
+ static const jint MAXGRIDSIZE = 512;
+ ::java::util::Hashtable * __attribute__((aligned(__alignof__( ::java::lang::Object)))) comptable;
+private:
+ ::java::util::Hashtable * internalcomptable;
+public: // actually protected
+ ::java::awt::GridBagLayoutInfo * layoutInfo;
+ ::java::awt::GridBagConstraints * defaultConstraints;
+public:
+ JArray< jdouble > * columnWeights;
+ JArray< jint > * columnWidths;
+ JArray< jdouble > * rowWeights;
+ JArray< jint > * rowHeights;
+ static ::java::lang::Class class$;
+};
+
+#endif // __java_awt_GridBagLayout__