summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/plaf/basic/BasicSliderUI.h
blob: cb35faa26b0c5eff3ae221c9c98564a58d2f7091 (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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_plaf_basic_BasicSliderUI__
#define __javax_swing_plaf_basic_BasicSliderUI__

#pragma interface

#include <javax/swing/plaf/SliderUI.h>
extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Color;
        class Component;
        class Dimension;
        class Graphics;
        class Insets;
        class Rectangle;
      namespace event
      {
          class ComponentListener;
          class FocusListener;
      }
    }
    namespace beans
    {
        class PropertyChangeListener;
    }
  }
  namespace javax
  {
    namespace swing
    {
        class ActionMap;
        class InputMap;
        class JComponent;
        class JSlider;
        class Timer;
      namespace event
      {
          class ChangeListener;
      }
      namespace plaf
      {
          class ComponentUI;
        namespace basic
        {
            class BasicSliderUI;
            class BasicSliderUI$ScrollListener;
            class BasicSliderUI$TrackListener;
        }
      }
    }
  }
}

class javax::swing::plaf::basic::BasicSliderUI : public ::javax::swing::plaf::SliderUI
{

public:
  BasicSliderUI(::javax::swing::JSlider *);
public: // actually protected
  virtual jboolean isDragging();
  virtual ::java::awt::Color * getShadowColor();
  virtual ::java::awt::Color * getHighlightColor();
  virtual ::java::awt::Color * getFocusColor();
public:
  static ::javax::swing::plaf::ComponentUI * createUI(::javax::swing::JComponent *);
  virtual void installUI(::javax::swing::JComponent *);
  virtual void uninstallUI(::javax::swing::JComponent *);
public: // actually protected
  virtual void installDefaults(::javax::swing::JSlider *);
  virtual ::javax::swing::plaf::basic::BasicSliderUI$TrackListener * createTrackListener(::javax::swing::JSlider *);
  virtual ::javax::swing::event::ChangeListener * createChangeListener(::javax::swing::JSlider *);
  virtual ::java::awt::event::ComponentListener * createComponentListener(::javax::swing::JSlider *);
  virtual ::java::awt::event::FocusListener * createFocusListener(::javax::swing::JSlider *);
  virtual ::javax::swing::plaf::basic::BasicSliderUI$ScrollListener * createScrollListener(::javax::swing::JSlider *);
  virtual ::java::beans::PropertyChangeListener * createPropertyChangeListener(::javax::swing::JSlider *);
  virtual void installListeners(::javax::swing::JSlider *);
  virtual void uninstallListeners(::javax::swing::JSlider *);
  virtual void installKeyboardActions(::javax::swing::JSlider *);
  virtual void uninstallKeyboardActions(::javax::swing::JSlider *);
public:
  virtual ::java::awt::Dimension * getPreferredHorizontalSize();
  virtual ::java::awt::Dimension * getPreferredVerticalSize();
  virtual ::java::awt::Dimension * getMinimumHorizontalSize();
  virtual ::java::awt::Dimension * getMinimumVerticalSize();
  virtual ::java::awt::Dimension * getPreferredSize(::javax::swing::JComponent *);
  virtual ::java::awt::Dimension * getMinimumSize(::javax::swing::JComponent *);
  virtual ::java::awt::Dimension * getMaximumSize(::javax::swing::JComponent *);
public: // actually protected
  virtual void calculateGeometry();
  virtual void calculateFocusRect();
  virtual void calculateThumbSize();
  virtual void calculateContentRect();
  virtual void calculateThumbLocation();
  virtual void calculateTrackBuffer();
  virtual ::java::awt::Dimension * getThumbSize();
  virtual void calculateTrackRect();
  virtual jint getTickLength();
  virtual void calculateTickRect();
  virtual void calculateLabelRect();
  virtual jint getWidthOfWidestLabel();
  virtual jint getHeightOfTallestLabel();
  virtual jint getWidthOfHighValueLabel();
  virtual jint getWidthOfLowValueLabel();
  virtual jint getHeightOfHighValueLabel();
  virtual jint getHeightOfLowValueLabel();
  virtual jboolean drawInverted();
  virtual ::java::awt::Component * getLowestValueLabel();
  virtual ::java::awt::Component * getHighestValueLabel();
public:
  virtual void paint(::java::awt::Graphics *, ::javax::swing::JComponent *);
public: // actually protected
  virtual void recalculateIfInsetsChanged();
  virtual void recalculateIfOrientationChanged();
public:
  virtual void paintFocus(::java::awt::Graphics *);
  virtual void paintTrack(::java::awt::Graphics *);
  virtual void paintTicks(::java::awt::Graphics *);
public: // actually protected
  virtual void paintMinorTickForHorizSlider(::java::awt::Graphics *, ::java::awt::Rectangle *, jint);
  virtual void paintMajorTickForHorizSlider(::java::awt::Graphics *, ::java::awt::Rectangle *, jint);
  virtual void paintMinorTickForVertSlider(::java::awt::Graphics *, ::java::awt::Rectangle *, jint);
  virtual void paintMajorTickForVertSlider(::java::awt::Graphics *, ::java::awt::Rectangle *, jint);
public:
  virtual void paintLabels(::java::awt::Graphics *);
public: // actually protected
  virtual void paintHorizontalLabel(::java::awt::Graphics *, jint, ::java::awt::Component *);
  virtual void paintVerticalLabel(::java::awt::Graphics *, jint, ::java::awt::Component *);
public:
  virtual void paintThumb(::java::awt::Graphics *);
  virtual void setThumbLocation(jint, jint);
  virtual void scrollByBlock(jint);
  virtual void scrollByUnit(jint);
public: // actually protected
  virtual void scrollDueToClickInTrack(jint);
  virtual jint xPositionForValue(jint);
  virtual jint yPositionForValue(jint);
public:
  virtual jint valueForYPosition(jint);
  virtual jint valueForXPosition(jint);
public: // actually package-private
  virtual jint findClosestTick(jint);
  virtual ::javax::swing::InputMap * getInputMap(jint);
  virtual ::javax::swing::ActionMap * getActionMap();
  virtual ::javax::swing::ActionMap * createActionMap();
private:
  jboolean hitClip(::java::awt::Graphics *, ::java::awt::Rectangle *);
public: // actually protected
  ::javax::swing::event::ChangeListener * __attribute__((aligned(__alignof__( ::javax::swing::plaf::SliderUI)))) changeListener;
  ::java::beans::PropertyChangeListener * propertyChangeListener;
  ::javax::swing::plaf::basic::BasicSliderUI$ScrollListener * scrollListener;
  ::java::awt::event::ComponentListener * componentListener;
  ::java::awt::event::FocusListener * focusListener;
  ::javax::swing::plaf::basic::BasicSliderUI$TrackListener * trackListener;
  ::java::awt::Insets * focusInsets;
  ::java::awt::Insets * insetCache;
  ::java::awt::Rectangle * contentRect;
  ::java::awt::Rectangle * focusRect;
  ::java::awt::Rectangle * thumbRect;
  ::java::awt::Rectangle * tickRect;
  ::java::awt::Rectangle * labelRect;
  ::java::awt::Rectangle * trackRect;
public:
  static const jint MAX_SCROLL = 2;
  static const jint MIN_SCROLL = -2;
  static const jint NEGATIVE_SCROLL = -1;
  static const jint POSITIVE_SCROLL = 1;
public: // actually protected
  jint trackBuffer;
  jboolean leftToRightCache;
  ::javax::swing::Timer * scrollTimer;
  ::javax::swing::JSlider * slider;
private:
  ::java::awt::Color * shadowColor;
  ::java::awt::Color * highlightColor;
  ::java::awt::Color * focusColor;
public: // actually package-private
  jboolean dragging;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_plaf_basic_BasicSliderUI__