1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_border_TitledBorder__
|
5 |
|
|
#define __javax_swing_border_TitledBorder__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/border/AbstractBorder.h>
|
10 |
|
|
extern "Java"
|
11 |
|
|
{
|
12 |
|
|
namespace java
|
13 |
|
|
{
|
14 |
|
|
namespace awt
|
15 |
|
|
{
|
16 |
|
|
class Color;
|
17 |
|
|
class Component;
|
18 |
|
|
class Dimension;
|
19 |
|
|
class Font;
|
20 |
|
|
class FontMetrics;
|
21 |
|
|
class Graphics;
|
22 |
|
|
class Insets;
|
23 |
|
|
class Point;
|
24 |
|
|
class Rectangle;
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
namespace javax
|
28 |
|
|
{
|
29 |
|
|
namespace swing
|
30 |
|
|
{
|
31 |
|
|
namespace border
|
32 |
|
|
{
|
33 |
|
|
class Border;
|
34 |
|
|
class TitledBorder;
|
35 |
|
|
}
|
36 |
|
|
}
|
37 |
|
|
}
|
38 |
|
|
}
|
39 |
|
|
|
40 |
|
|
class javax::swing::border::TitledBorder : public ::javax::swing::border::AbstractBorder
|
41 |
|
|
{
|
42 |
|
|
|
43 |
|
|
public:
|
44 |
|
|
TitledBorder(::java::lang::String *);
|
45 |
|
|
TitledBorder(::javax::swing::border::Border *);
|
46 |
|
|
TitledBorder(::javax::swing::border::Border *, ::java::lang::String *);
|
47 |
|
|
TitledBorder(::javax::swing::border::Border *, ::java::lang::String *, jint, jint);
|
48 |
|
|
TitledBorder(::javax::swing::border::Border *, ::java::lang::String *, jint, jint, ::java::awt::Font *);
|
49 |
|
|
TitledBorder(::javax::swing::border::Border *, ::java::lang::String *, jint, jint, ::java::awt::Font *, ::java::awt::Color *);
|
50 |
|
|
virtual void paintBorder(::java::awt::Component *, ::java::awt::Graphics *, jint, jint, jint, jint);
|
51 |
|
|
private:
|
52 |
|
|
void layoutBorderWithTitle(::java::awt::Component *, ::java::awt::FontMetrics *, ::java::awt::Rectangle *, ::java::awt::Point *);
|
53 |
|
|
void paintBorderWithTitle(::java::awt::Component *, ::java::awt::Graphics *, jint, jint, jint, jint, ::java::awt::Rectangle *, ::java::awt::Point *, ::java::awt::FontMetrics *);
|
54 |
|
|
public:
|
55 |
|
|
virtual ::java::awt::Insets * getBorderInsets(::java::awt::Component *);
|
56 |
|
|
virtual ::java::awt::Insets * getBorderInsets(::java::awt::Component *, ::java::awt::Insets *);
|
57 |
|
|
virtual jboolean isBorderOpaque();
|
58 |
|
|
virtual ::java::lang::String * getTitle();
|
59 |
|
|
virtual ::javax::swing::border::Border * getBorder();
|
60 |
|
|
virtual jint getTitlePosition();
|
61 |
|
|
virtual jint getTitleJustification();
|
62 |
|
|
virtual ::java::awt::Font * getTitleFont();
|
63 |
|
|
virtual ::java::awt::Color * getTitleColor();
|
64 |
|
|
virtual void setTitle(::java::lang::String *);
|
65 |
|
|
virtual void setBorder(::javax::swing::border::Border *);
|
66 |
|
|
virtual void setTitlePosition(jint);
|
67 |
|
|
virtual void setTitleJustification(jint);
|
68 |
|
|
virtual void setTitleFont(::java::awt::Font *);
|
69 |
|
|
virtual void setTitleColor(::java::awt::Color *);
|
70 |
|
|
virtual ::java::awt::Dimension * getMinimumSize(::java::awt::Component *);
|
71 |
|
|
public: // actually protected
|
72 |
|
|
virtual ::java::awt::Font * getFont(::java::awt::Component *);
|
73 |
|
|
public:
|
74 |
|
|
static const jint DEFAULT_POSITION = 0;
|
75 |
|
|
static const jint ABOVE_TOP = 1;
|
76 |
|
|
static const jint TOP = 2;
|
77 |
|
|
static const jint BELOW_TOP = 3;
|
78 |
|
|
static const jint ABOVE_BOTTOM = 4;
|
79 |
|
|
static const jint BOTTOM = 5;
|
80 |
|
|
static const jint BELOW_BOTTOM = 6;
|
81 |
|
|
static const jint DEFAULT_JUSTIFICATION = 0;
|
82 |
|
|
static const jint LEFT = 1;
|
83 |
|
|
static const jint CENTER = 2;
|
84 |
|
|
static const jint RIGHT = 3;
|
85 |
|
|
static const jint LEADING = 4;
|
86 |
|
|
static const jint TRAILING = 5;
|
87 |
|
|
public: // actually protected
|
88 |
|
|
static const jint EDGE_SPACING = 2;
|
89 |
|
|
static const jint TEXT_INSET_H = 5;
|
90 |
|
|
static const jint TEXT_SPACING = 2;
|
91 |
|
|
public: // actually package-private
|
92 |
|
|
static const jlong serialVersionUID = 8012999415147721601LL;
|
93 |
|
|
public: // actually protected
|
94 |
|
|
::java::lang::String * __attribute__((aligned(__alignof__( ::javax::swing::border::AbstractBorder)))) title;
|
95 |
|
|
::javax::swing::border::Border * border;
|
96 |
|
|
jint titlePosition;
|
97 |
|
|
jint titleJustification;
|
98 |
|
|
::java::awt::Font * titleFont;
|
99 |
|
|
::java::awt::Color * titleColor;
|
100 |
|
|
public:
|
101 |
|
|
static ::java::lang::Class class$;
|
102 |
|
|
};
|
103 |
|
|
|
104 |
|
|
#endif // __javax_swing_border_TitledBorder__
|