1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_plaf_basic_BasicTabbedPaneUI__
|
5 |
|
|
#define __javax_swing_plaf_basic_BasicTabbedPaneUI__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/plaf/TabbedPaneUI.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Color;
|
19 |
|
|
class Component;
|
20 |
|
|
class Dimension;
|
21 |
|
|
class Font;
|
22 |
|
|
class FontMetrics;
|
23 |
|
|
class Graphics;
|
24 |
|
|
class Insets;
|
25 |
|
|
class LayoutManager;
|
26 |
|
|
class Point;
|
27 |
|
|
class Rectangle;
|
28 |
|
|
namespace event
|
29 |
|
|
{
|
30 |
|
|
class FocusListener;
|
31 |
|
|
class MouseListener;
|
32 |
|
|
}
|
33 |
|
|
}
|
34 |
|
|
namespace beans
|
35 |
|
|
{
|
36 |
|
|
class PropertyChangeListener;
|
37 |
|
|
}
|
38 |
|
|
}
|
39 |
|
|
namespace javax
|
40 |
|
|
{
|
41 |
|
|
namespace swing
|
42 |
|
|
{
|
43 |
|
|
class ActionMap;
|
44 |
|
|
class Icon;
|
45 |
|
|
class JComponent;
|
46 |
|
|
class JTabbedPane;
|
47 |
|
|
class KeyStroke;
|
48 |
|
|
namespace event
|
49 |
|
|
{
|
50 |
|
|
class ChangeListener;
|
51 |
|
|
}
|
52 |
|
|
namespace plaf
|
53 |
|
|
{
|
54 |
|
|
class ComponentUI;
|
55 |
|
|
namespace basic
|
56 |
|
|
{
|
57 |
|
|
class BasicTabbedPaneUI;
|
58 |
|
|
class BasicTabbedPaneUI$ScrollingButton;
|
59 |
|
|
class BasicTabbedPaneUI$ScrollingPanel;
|
60 |
|
|
class BasicTabbedPaneUI$ScrollingViewport;
|
61 |
|
|
}
|
62 |
|
|
}
|
63 |
|
|
namespace text
|
64 |
|
|
{
|
65 |
|
|
class View;
|
66 |
|
|
}
|
67 |
|
|
}
|
68 |
|
|
}
|
69 |
|
|
}
|
70 |
|
|
|
71 |
|
|
class javax::swing::plaf::basic::BasicTabbedPaneUI : public ::javax::swing::plaf::TabbedPaneUI
|
72 |
|
|
{
|
73 |
|
|
|
74 |
|
|
public:
|
75 |
|
|
BasicTabbedPaneUI();
|
76 |
|
|
public: // actually package-private
|
77 |
|
|
virtual ::javax::swing::plaf::basic::BasicTabbedPaneUI$ScrollingButton * createIncreaseButton();
|
78 |
|
|
virtual ::javax::swing::plaf::basic::BasicTabbedPaneUI$ScrollingButton * createDecreaseButton();
|
79 |
|
|
virtual ::java::awt::Point * findPointForIndex(jint);
|
80 |
|
|
virtual void scrollTab(jint, jint);
|
81 |
|
|
virtual void updateButtons();
|
82 |
|
|
virtual void updateViewPosition();
|
83 |
|
|
public:
|
84 |
|
|
static ::javax::swing::plaf::ComponentUI * createUI(::javax::swing::JComponent *);
|
85 |
|
|
virtual void installUI(::javax::swing::JComponent *);
|
86 |
|
|
virtual void uninstallUI(::javax::swing::JComponent *);
|
87 |
|
|
public: // actually protected
|
88 |
|
|
virtual ::java::awt::LayoutManager * createLayoutManager();
|
89 |
|
|
virtual void installComponents();
|
90 |
|
|
virtual void uninstallComponents();
|
91 |
|
|
virtual void installDefaults();
|
92 |
|
|
virtual void uninstallDefaults();
|
93 |
|
|
virtual void installListeners();
|
94 |
|
|
virtual void uninstallListeners();
|
95 |
|
|
virtual ::java::awt::event::MouseListener * createMouseListener();
|
96 |
|
|
virtual ::java::awt::event::FocusListener * createFocusListener();
|
97 |
|
|
virtual ::javax::swing::event::ChangeListener * createChangeListener();
|
98 |
|
|
virtual ::java::beans::PropertyChangeListener * createPropertyChangeListener();
|
99 |
|
|
virtual void installKeyboardActions();
|
100 |
|
|
virtual void uninstallKeyboardActions();
|
101 |
|
|
public:
|
102 |
|
|
virtual ::java::awt::Dimension * getMinimumSize(::javax::swing::JComponent *);
|
103 |
|
|
virtual ::java::awt::Dimension * getMaximumSize(::javax::swing::JComponent *);
|
104 |
|
|
virtual void paint(::java::awt::Graphics *, ::javax::swing::JComponent *);
|
105 |
|
|
public: // actually protected
|
106 |
|
|
virtual void paintTabArea(::java::awt::Graphics *, jint, jint);
|
107 |
|
|
virtual void paintTab(::java::awt::Graphics *, jint, JArray< ::java::awt::Rectangle * > *, jint, ::java::awt::Rectangle *, ::java::awt::Rectangle *);
|
108 |
|
|
virtual void layoutLabel(jint, ::java::awt::FontMetrics *, jint, ::java::lang::String *, ::javax::swing::Icon *, ::java::awt::Rectangle *, ::java::awt::Rectangle *, ::java::awt::Rectangle *, jboolean);
|
109 |
|
|
virtual void paintIcon(::java::awt::Graphics *, jint, jint, ::javax::swing::Icon *, ::java::awt::Rectangle *, jboolean);
|
110 |
|
|
virtual void paintText(::java::awt::Graphics *, jint, ::java::awt::Font *, ::java::awt::FontMetrics *, jint, ::java::lang::String *, ::java::awt::Rectangle *, jboolean);
|
111 |
|
|
virtual jint getTabLabelShiftX(jint, jint, jboolean);
|
112 |
|
|
virtual jint getTabLabelShiftY(jint, jint, jboolean);
|
113 |
|
|
virtual void paintFocusIndicator(::java::awt::Graphics *, jint, JArray< ::java::awt::Rectangle * > *, jint, ::java::awt::Rectangle *, ::java::awt::Rectangle *, jboolean);
|
114 |
|
|
virtual void paintTabBorder(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint, jboolean);
|
115 |
|
|
virtual void paintTabBackground(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint, jboolean);
|
116 |
|
|
virtual void paintContentBorder(::java::awt::Graphics *, jint, jint);
|
117 |
|
|
virtual void paintContentBorderTopEdge(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint);
|
118 |
|
|
virtual void paintContentBorderLeftEdge(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint);
|
119 |
|
|
virtual void paintContentBorderBottomEdge(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint);
|
120 |
|
|
virtual void paintContentBorderRightEdge(::java::awt::Graphics *, jint, jint, jint, jint, jint, jint);
|
121 |
|
|
public:
|
122 |
|
|
virtual ::java::awt::Rectangle * getTabBounds(::javax::swing::JTabbedPane *, jint);
|
123 |
|
|
virtual jint getTabRunCount(::javax::swing::JTabbedPane *);
|
124 |
|
|
virtual jint tabForCoordinate(::javax::swing::JTabbedPane *, jint, jint);
|
125 |
|
|
public: // actually protected
|
126 |
|
|
virtual ::java::awt::Rectangle * getTabBounds(jint, ::java::awt::Rectangle *);
|
127 |
|
|
virtual ::java::awt::Component * getVisibleComponent();
|
128 |
|
|
virtual void setVisibleComponent(::java::awt::Component *);
|
129 |
|
|
virtual void assureRectsCreated(jint);
|
130 |
|
|
virtual void expandTabRunsArray();
|
131 |
|
|
virtual jint getRunForTab(jint, jint);
|
132 |
|
|
virtual jint lastTabInRun(jint, jint);
|
133 |
|
|
virtual jint getTabRunOverlay(jint);
|
134 |
|
|
virtual jint getTabRunIndent(jint, jint);
|
135 |
|
|
virtual jboolean shouldPadTabRun(jint, jint);
|
136 |
|
|
virtual jboolean shouldRotateTabRuns(jint);
|
137 |
|
|
virtual ::javax::swing::Icon * getIconForTab(jint);
|
138 |
|
|
virtual ::javax::swing::text::View * getTextViewForTab(jint);
|
139 |
|
|
virtual jint calculateTabHeight(jint, jint, jint);
|
140 |
|
|
virtual jint calculateMaxTabHeight(jint);
|
141 |
|
|
virtual jint calculateTabWidth(jint, jint, ::java::awt::FontMetrics *);
|
142 |
|
|
virtual jint calculateMaxTabWidth(jint);
|
143 |
|
|
virtual jint calculateTabAreaHeight(jint, jint, jint);
|
144 |
|
|
virtual jint calculateTabAreaWidth(jint, jint, jint);
|
145 |
|
|
virtual ::java::awt::Insets * getTabInsets(jint, jint);
|
146 |
|
|
virtual ::java::awt::Insets * getSelectedTabPadInsets(jint);
|
147 |
|
|
virtual ::java::awt::Insets * getTabAreaInsets(jint);
|
148 |
|
|
virtual ::java::awt::Insets * getContentBorderInsets(jint);
|
149 |
|
|
virtual ::java::awt::FontMetrics * getFontMetrics();
|
150 |
|
|
virtual void navigateSelectedTab(jint);
|
151 |
|
|
virtual void selectNextTabInRun(jint);
|
152 |
|
|
virtual void selectPreviousTabInRun(jint);
|
153 |
|
|
virtual void selectNextTab(jint);
|
154 |
|
|
virtual void selectPreviousTab(jint);
|
155 |
|
|
virtual void selectAdjacentRunTab(jint, jint, jint);
|
156 |
|
|
virtual jint getTabRunOffset(jint, jint, jint, jboolean);
|
157 |
|
|
virtual jint getPreviousTabIndex(jint);
|
158 |
|
|
virtual jint getNextTabIndex(jint);
|
159 |
|
|
virtual jint getNextTabIndexInRun(jint, jint);
|
160 |
|
|
virtual jint getPreviousTabIndexInRun(jint, jint);
|
161 |
|
|
virtual jint getPreviousTabRun(jint);
|
162 |
|
|
virtual jint getNextTabRun(jint);
|
163 |
|
|
static void rotateInsets(::java::awt::Insets *, ::java::awt::Insets *, jint);
|
164 |
|
|
public: // actually package-private
|
165 |
|
|
virtual ::javax::swing::ActionMap * getActionMap();
|
166 |
|
|
virtual ::javax::swing::ActionMap * createActionMap();
|
167 |
|
|
public: // actually protected
|
168 |
|
|
virtual void setRolloverTab(jint);
|
169 |
|
|
virtual jint getRolloverTab();
|
170 |
|
|
public: // actually package-private
|
171 |
|
|
::javax::swing::plaf::basic::BasicTabbedPaneUI$ScrollingButton * __attribute__((aligned(__alignof__( ::javax::swing::plaf::TabbedPaneUI)))) incrButton;
|
172 |
|
|
::javax::swing::plaf::basic::BasicTabbedPaneUI$ScrollingButton * decrButton;
|
173 |
|
|
::javax::swing::plaf::basic::BasicTabbedPaneUI$ScrollingViewport * viewport;
|
174 |
|
|
::javax::swing::plaf::basic::BasicTabbedPaneUI$ScrollingPanel * panel;
|
175 |
|
|
jint currentScrollLocation;
|
176 |
|
|
jint currentScrollOffset;
|
177 |
|
|
public: // actually protected
|
178 |
|
|
::java::awt::Rectangle * calcRect;
|
179 |
|
|
JArray< ::java::awt::Rectangle * > * rects;
|
180 |
|
|
::java::awt::Insets * contentBorderInsets;
|
181 |
|
|
::java::awt::Insets * selectedTabPadInsets;
|
182 |
|
|
::java::awt::Insets * tabAreaInsets;
|
183 |
|
|
::java::awt::Insets * tabInsets;
|
184 |
|
|
::java::awt::Color * darkShadow;
|
185 |
|
|
::java::awt::Color * focus;
|
186 |
|
|
::java::awt::Color * highlight;
|
187 |
|
|
::java::awt::Color * lightHighlight;
|
188 |
|
|
::java::awt::Color * shadow;
|
189 |
|
|
jint maxTabHeight;
|
190 |
|
|
jint maxTabWidth;
|
191 |
|
|
jint runCount;
|
192 |
|
|
jint selectedRun;
|
193 |
|
|
jint tabRunOverlay;
|
194 |
|
|
jint textIconGap;
|
195 |
|
|
JArray< jint > * tabRuns;
|
196 |
|
|
public: // actually package-private
|
197 |
|
|
jboolean tabRunsDirty;
|
198 |
|
|
public: // actually protected
|
199 |
|
|
::javax::swing::KeyStroke * downKey;
|
200 |
|
|
::javax::swing::KeyStroke * leftKey;
|
201 |
|
|
::javax::swing::KeyStroke * rightKey;
|
202 |
|
|
::javax::swing::KeyStroke * upKey;
|
203 |
|
|
::java::awt::event::FocusListener * focusListener;
|
204 |
|
|
::java::awt::event::MouseListener * mouseListener;
|
205 |
|
|
::java::beans::PropertyChangeListener * propertyChangeListener;
|
206 |
|
|
::javax::swing::event::ChangeListener * tabChangeListener;
|
207 |
|
|
::javax::swing::JTabbedPane * tabPane;
|
208 |
|
|
public: // actually package-private
|
209 |
|
|
::java::awt::LayoutManager * layoutManager;
|
210 |
|
|
::java::awt::Rectangle * tabAreaRect;
|
211 |
|
|
::java::awt::Rectangle * contentRect;
|
212 |
|
|
private:
|
213 |
|
|
jint rolloverTab;
|
214 |
|
|
jboolean tabsOpaque;
|
215 |
|
|
::java::awt::Component * visibleComponent;
|
216 |
|
|
::java::awt::Color * selectedColor;
|
217 |
|
|
::java::awt::Rectangle * tempTextRect;
|
218 |
|
|
::java::awt::Rectangle * tempIconRect;
|
219 |
|
|
public:
|
220 |
|
|
static ::java::lang::Class class$;
|
221 |
|
|
};
|
222 |
|
|
|
223 |
|
|
#endif // __javax_swing_plaf_basic_BasicTabbedPaneUI__
|