1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_plaf_metal_MetalTabbedPaneUI__
|
5 |
|
|
#define __javax_swing_plaf_metal_MetalTabbedPaneUI__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/plaf/basic/BasicTabbedPaneUI.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Color;
|
19 |
|
|
class Graphics;
|
20 |
|
|
class LayoutManager;
|
21 |
|
|
class Rectangle;
|
22 |
|
|
}
|
23 |
|
|
}
|
24 |
|
|
namespace javax
|
25 |
|
|
{
|
26 |
|
|
namespace swing
|
27 |
|
|
{
|
28 |
|
|
class JComponent;
|
29 |
|
|
namespace plaf
|
30 |
|
|
{
|
31 |
|
|
class ComponentUI;
|
32 |
|
|
namespace metal
|
33 |
|
|
{
|
34 |
|
|
class MetalTabbedPaneUI;
|
35 |
|
|
}
|
36 |
|
|
}
|
37 |
|
|
}
|
38 |
|
|
}
|
39 |
|
|
}
|
40 |
|
|
|
41 |
|
|
class javax::swing::plaf::metal::MetalTabbedPaneUI : public ::javax::swing::plaf::basic::BasicTabbedPaneUI
|
42 |
|
|
{
|
43 |
|
|
|
44 |
|
|
public:
|
45 |
|
|
MetalTabbedPaneUI();
|
46 |
|
|
static ::javax::swing::plaf::ComponentUI * createUI(::javax::swing::JComponent *);
|
47 |
|
|
public: // actually protected
|
48 |
|
|
virtual ::java::awt::LayoutManager * createLayoutManager();
|
49 |
|
|
virtual void paintTabBorder(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint, jboolean);
|
50 |
|
|
virtual void paintTopTabBorder(jint, ::java::awt::Graphics *, jint, jint, jint, jint, jint, jint, jboolean);
|
51 |
|
|
virtual void paintLeftTabBorder(jint, ::java::awt::Graphics *, jint, jint, jint, jint, jint, jint, jboolean);
|
52 |
|
|
virtual void paintRightTabBorder(jint, ::java::awt::Graphics *, jint, jint, jint, jint, jint, jint, jboolean);
|
53 |
|
|
virtual void paintBottomTabBorder(jint, ::java::awt::Graphics *, jint, jint, jint, jint, jint, jint, jboolean);
|
54 |
|
|
virtual void paintTabBackground(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint, jboolean);
|
55 |
|
|
virtual void paintFocusIndicator(::java::awt::Graphics *, jint, JArray< ::java::awt::Rectangle * > *, jint, ::java::awt::Rectangle *, ::java::awt::Rectangle *, jboolean);
|
56 |
|
|
virtual jboolean shouldPadTabRun(jint, jint);
|
57 |
|
|
virtual void installDefaults();
|
58 |
|
|
virtual ::java::awt::Color * getColorForGap(jint, jint, jint);
|
59 |
|
|
virtual jboolean shouldFillGap(jint, jint, jint, jint);
|
60 |
|
|
virtual void paintHighlightBelowTab();
|
61 |
|
|
virtual jboolean shouldRotateTabRuns(jint, jint);
|
62 |
|
|
virtual jint calculateMaxTabHeight(jint);
|
63 |
|
|
virtual jint getTabRunOverlay(jint);
|
64 |
|
|
virtual void paintContentBorderTopEdge(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint);
|
65 |
|
|
virtual void paintContentBorderBottomEdge(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint);
|
66 |
|
|
virtual void paintContentBorderLeftEdge(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint);
|
67 |
|
|
virtual void paintContentBorderRightEdge(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint);
|
68 |
|
|
private:
|
69 |
|
|
jboolean isLastTabInRun(jint);
|
70 |
|
|
::java::awt::Color * getUnselectedBackground(jint);
|
71 |
|
|
public: // actually protected
|
72 |
|
|
virtual jint getTabLabelShiftX(jint, jint, jboolean);
|
73 |
|
|
virtual jint getTabLabelShiftY(jint, jint, jboolean);
|
74 |
|
|
jint __attribute__((aligned(__alignof__( ::javax::swing::plaf::basic::BasicTabbedPaneUI)))) minTabWidth;
|
75 |
|
|
::java::awt::Color * selectColor;
|
76 |
|
|
::java::awt::Color * selectHighlight;
|
77 |
|
|
::java::awt::Color * tabAreaBackground;
|
78 |
|
|
private:
|
79 |
|
|
::java::awt::Graphics * hg;
|
80 |
|
|
jboolean tabsOpaque;
|
81 |
|
|
public:
|
82 |
|
|
static ::java::lang::Class class$;
|
83 |
|
|
};
|
84 |
|
|
|
85 |
|
|
#endif // __javax_swing_plaf_metal_MetalTabbedPaneUI__
|