summaryrefslogtreecommitdiff
path: root/libjava/java/awt/GridBagLayout.h
blob: b553aff4eb34eb60aaed0b6e36b1bc8144251b2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
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__