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