summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/border/TitledBorder.h
blob: 42d6b599dae32872d44053c496607247915b96b0 (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
101
102
103
104
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_border_TitledBorder__
#define __javax_swing_border_TitledBorder__

#pragma interface

#include <javax/swing/border/AbstractBorder.h>
extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Color;
        class Component;
        class Dimension;
        class Font;
        class FontMetrics;
        class Graphics;
        class Insets;
        class Point;
        class Rectangle;
    }
  }
  namespace javax
  {
    namespace swing
    {
      namespace border
      {
          class Border;
          class TitledBorder;
      }
    }
  }
}

class javax::swing::border::TitledBorder : public ::javax::swing::border::AbstractBorder
{

public:
  TitledBorder(::java::lang::String *);
  TitledBorder(::javax::swing::border::Border *);
  TitledBorder(::javax::swing::border::Border *, ::java::lang::String *);
  TitledBorder(::javax::swing::border::Border *, ::java::lang::String *, jint, jint);
  TitledBorder(::javax::swing::border::Border *, ::java::lang::String *, jint, jint, ::java::awt::Font *);
  TitledBorder(::javax::swing::border::Border *, ::java::lang::String *, jint, jint, ::java::awt::Font *, ::java::awt::Color *);
  virtual void paintBorder(::java::awt::Component *, ::java::awt::Graphics *, jint, jint, jint, jint);
private:
  void layoutBorderWithTitle(::java::awt::Component *, ::java::awt::FontMetrics *, ::java::awt::Rectangle *, ::java::awt::Point *);
  void paintBorderWithTitle(::java::awt::Component *, ::java::awt::Graphics *, jint, jint, jint, jint, ::java::awt::Rectangle *, ::java::awt::Point *, ::java::awt::FontMetrics *);
public:
  virtual ::java::awt::Insets * getBorderInsets(::java::awt::Component *);
  virtual ::java::awt::Insets * getBorderInsets(::java::awt::Component *, ::java::awt::Insets *);
  virtual jboolean isBorderOpaque();
  virtual ::java::lang::String * getTitle();
  virtual ::javax::swing::border::Border * getBorder();
  virtual jint getTitlePosition();
  virtual jint getTitleJustification();
  virtual ::java::awt::Font * getTitleFont();
  virtual ::java::awt::Color * getTitleColor();
  virtual void setTitle(::java::lang::String *);
  virtual void setBorder(::javax::swing::border::Border *);
  virtual void setTitlePosition(jint);
  virtual void setTitleJustification(jint);
  virtual void setTitleFont(::java::awt::Font *);
  virtual void setTitleColor(::java::awt::Color *);
  virtual ::java::awt::Dimension * getMinimumSize(::java::awt::Component *);
public: // actually protected
  virtual ::java::awt::Font * getFont(::java::awt::Component *);
public:
  static const jint DEFAULT_POSITION = 0;
  static const jint ABOVE_TOP = 1;
  static const jint TOP = 2;
  static const jint BELOW_TOP = 3;
  static const jint ABOVE_BOTTOM = 4;
  static const jint BOTTOM = 5;
  static const jint BELOW_BOTTOM = 6;
  static const jint DEFAULT_JUSTIFICATION = 0;
  static const jint LEFT = 1;
  static const jint CENTER = 2;
  static const jint RIGHT = 3;
  static const jint LEADING = 4;
  static const jint TRAILING = 5;
public: // actually protected
  static const jint EDGE_SPACING = 2;
  static const jint TEXT_INSET_H = 5;
  static const jint TEXT_SPACING = 2;
public: // actually package-private
  static const jlong serialVersionUID = 8012999415147721601LL;
public: // actually protected
  ::java::lang::String * __attribute__((aligned(__alignof__( ::javax::swing::border::AbstractBorder)))) title;
  ::javax::swing::border::Border * border;
  jint titlePosition;
  jint titleJustification;
  ::java::awt::Font * titleFont;
  ::java::awt::Color * titleColor;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_border_TitledBorder__